-
Notifications
You must be signed in to change notification settings - Fork 46
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
JSON Schema Validator always gives an error in the license field #91
Comments
Hi, thanks for the feedback. I went to these two site: It looks our current schema and values are valid. @KelSolaar Hi Thomas, can you take a look? maybe we should need to change it to ""type": ["string", "null"]" |
I've opened a pull request for this as a license to use spec sens data doesn't appear to be mandatory and I can't see any potential issues. |
Sorry for missing that one! I would argue that putting a license is mandatory at least from a technical perspective. The first thing a company does when using public open source software (or data) is usually to check the license in order to know if the software can be used. If a software has no license, it is typically avoided like highly dangerous plague :) That was the thinking for having the license property mandatory. |
I don't disagree :) I was looking at it from the perspective of current JSON, non of which specifies a license and therefore does not validate using the schema provided in README.md |
I think we talked about it already on Slack. Dragging @aforsythe to the convo as it is important :) |
Using the provided schema in the JSON Schema Validator gives a single error. 'License' type is expected to be a string, however a license may not necessarily be issued or needed. Changing the type to String/Null allows for either option.
I get a Null/String error for the 'license' field when validating JSON with custom and the provided specsens data. It can be ignored but obviously is not validating.
Message: Invalid type. Expected String but got Null. Schema path: properties/header/properties/license#/type
Maybe the field type should be:
"type": ["string", "null"]
The text was updated successfully, but these errors were encountered: