Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Json Schema file extension

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)?

like image 328
Fresa Avatar asked Feb 22 '12 08:02

Fresa


People also ask

What is the extension of a JSON Schema file?

schema. json, but there is no official file extension. The official mime type however is "application/schema+json".

Which data format is a JSON Schema?

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).

Is there an XSD for JSON?

Result: The XSD to JSON Schema dialog box is now available and can be selected from the Tools > JSON Tools menu.

Does JSON have a schema like XML?

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.


2 Answers

From Gary Court:

I personally use .schema.json, but there is no official file extension. The official mime type however is "application/schema+json".

like image 75
Eric Hartford Avatar answered Oct 19 '22 20:10

Eric Hartford


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.

like image 21
jruizaranguren Avatar answered Oct 19 '22 19:10

jruizaranguren