1
0
Fork 0
forked from wry/wry

Merge pull request #667 from kotarac/master

toml-spec: compliant $id in schema
This commit is contained in:
mahkoh 2025-11-27 13:38:36 +01:00 committed by GitHub
commit e81b31b452
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
{ {
"$id": "jay_toml_schema", "$id": "urn:jay_toml_schema",
"$schema": "https://json-schema.org/draft/2020-12/schema", "$schema": "https://json-schema.org/draft/2020-12/schema",
"$ref": "#/$defs/Config", "$ref": "#/$defs/Config",
"$defs": { "$defs": {

View file

@ -16,7 +16,7 @@ pub fn generate_json_schema(
} }
let json = json!({ let json = json!({
"$id": "jay_toml_schema", "$id": "urn:jay_toml_schema",
"$schema": "https://json-schema.org/draft/2020-12/schema", "$schema": "https://json-schema.org/draft/2020-12/schema",
"$ref": "#/$defs/Config", "$ref": "#/$defs/Config",
"$defs": types, "$defs": types,