Skip to content

Add '$schema' property into root object. #351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
IvanGoncharov opened this issue May 5, 2015 · 1 comment
Closed

Add '$schema' property into root object. #351

IvanGoncharov opened this issue May 5, 2015 · 1 comment

Comments

@IvanGoncharov
Copy link
Contributor

According to JSON Schema spec:

When extending JSON Schema with custom keywords, schema authors SHOULD define a custom URI for $schema.

$schema value could be http://swagger.io/v2/schema.json#

It simple feature which enhance JSON Schema compatibility.
For e.g. it will allow automatic validation of Swagger file by JSON Schema validator.
Also it will motivate creation of schemes for Swagger extension.

On the negative side, it partly duplicate info from swagger field.
Which isn't a big problem, because it occur once per Swagger file.

@IvanGoncharov
Copy link
Contributor Author

Duplicate of #496

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant