[CI] Make JSON output tests less likely to fail (#17859)

Signed-off-by: Russell Bryant <rbryant@redhat.com>
This commit is contained in:
Russell Bryant
2025-05-12 18:31:54 -04:00
committed by GitHub
parent 2b0db9b0e2
commit ebab1ac37c
2 changed files with 27 additions and 11 deletions

View File

@@ -72,12 +72,14 @@ def sample_json_schema():
"type": "string"
}
},
"required": ["company", "duration", "position"]
"required": ["company", "duration", "position"],
"additionalProperties": False
}
}
},
"required":
["name", "age", "skills", "grade", "email", "work_history"]
["name", "age", "skills", "grade", "email", "work_history"],
"additionalProperties": False
}
@@ -100,7 +102,8 @@ def unsupported_json_schema():
}
}
},
"required": ["score", "tags"]
"required": ["score", "tags"],
"additionalProperties": False
}
@@ -139,7 +142,8 @@ def sample_definition_json_schema():
},
'required': ['steps', 'final_answer'],
'title': 'MathReasoning',
'type': 'object'
'type': 'object',
"additionalProperties": False
}