Json-schema-for-humans

Latest version: v1.0.2

Safety actively analyzes 683322 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.48

(Issue 190) Now correctly display elements next to a `$ref` with reused nodes, e.g.:

json
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"type": "object",
"title": "Example",
"properties": {
"prop1": {
"$ref": "/$defs/a",
"description": "Prop1",
"examples": ["1"]
},
"prop2": {
"$ref": "/$defs/a",
"description": "Prop2",
"examples": ["2"]
}
},
"$defs": {
"a": {
"type": "string",
"maxLength": 5
}
}
}


Previously, `prop2` would have been a link to `prop1`, hiding the different example for `prop2`.

This may increase the size of rendered schemas in certain situations.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.