Is there any naming convention for a json schema file extension? XML has .xsd (XML Schema Definition), what should json schema files have, .jsd (JSON Schema Definition)?
schema. json, but there is no official file extension. The official mime type however is "application/schema+json".
You may have noticed that the JSON Schema itself is written in JSON. It is data itself, not a computer program. It's just a declarative format for “describing the structure of other data”. This is both its strength and its weakness (which it shares with other similar schema languages).
Result: The XSD to JSON Schema dialog box is now available and can be selected from the Tools > JSON Tools menu.
Though not yet an official standard, the JSON schema project provides a solution to a scope of requirements that is similar to the XML schema specification. With the JSON schema vocabulary, developers can define the logical and structural rules and constraints of JSON documents.
From Gary Court:
I personally use .schema.json, but there is no official file extension. The official mime type however is "application/schema+json".
According to the last draft (v4), there is not a new extension proposed for files storing json-schemas. .json extension is used profusely within that document. .json is also the preferred extension in validators (PHP, Ruby, Python).
So I think that .json should be the preferred option in absence of an official/standard new extension.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With