mistral_common.utils.json_utils
validate_json_schema_by_draft7(value)
Validate that a dict is a valid Draft 7 JSON Schema.
Callers add their own context to the error message.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
dict[str, Any]
|
The candidate JSON schema. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the value is not a valid Draft 7 JSON Schema, with the schema error as message. |