mirror of
https://github.com/openai/codex.git
synced 2026-09-06 15:29:32 +00:00
Export enum config warning helper
This commit is contained in:
@@ -40,7 +40,7 @@ enum CurrentNodeWarning {
|
||||
/// without changing the TOML that will be deserialized. Startup loading keeps
|
||||
/// these warnings non-blocking; config write paths may use the same signal to
|
||||
/// reject newly provided invalid enum values.
|
||||
pub(crate) fn enum_value_warnings(value: &TomlValue) -> Vec<String> {
|
||||
pub fn enum_value_warnings(value: &TomlValue) -> Vec<String> {
|
||||
// Startup warnings should never make config loading fail. If schema
|
||||
// generation or traversal panics, the typed config load still proceeds.
|
||||
catch_unwind(AssertUnwindSafe(|| {
|
||||
|
||||
Reference in New Issue
Block a user