jsonschema: marshal to bools (#247)

Marshal the empty schema to true, and its negation to false.

This is technically a breaking behavior change, but a properly written
consumer of JSON Schema will not notice.

For #244.

Fixes #230.
This commit is contained in:
Jonathan Amsterdam 2025-08-06 11:41:02 -04:00 • committed by GitHub
commit c132621eb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,9 +59,7 @@ greet
"type": "string"
}
},
"additionalProperties": {
"not": {}
}
"additionalProperties": false
},
"name": "greet"
}