mirror of
https://github.com/openai/codex.git
synced 2026-04-24 06:35:50 +00:00
codex: fix CI failure on PR #13825
This commit is contained in:
@@ -59,9 +59,8 @@ pub fn write_config_schema(out_path: &Path) -> anyhow::Result<()> {
|
||||
}
|
||||
|
||||
fn preserve_schema_presentation(value: Value) -> anyhow::Result<Value> {
|
||||
let template_path = Path::new(env!("CARGO_MANIFEST_DIR")).join("../core/config.schema.json");
|
||||
let template = std::fs::read_to_string(template_path)?;
|
||||
let template = serde_json::from_str(&template)?;
|
||||
let template = include_str!("../../core/config.schema.json");
|
||||
let template = serde_json::from_str(template)?;
|
||||
Ok(preserve_schema_presentation_from_template(value, &template))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user