-
Notifications
You must be signed in to change notification settings - Fork 30
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
Improve documents validation message #832
Comments
I believe We needed to do this for OkCupid so that we stop tracking it but still keep track that it ever existed here. |
After discussion, the best option seems to be to load both history files and declaration files so that closed and suspended services are made available. However, this has important consequences. For example, the Instead of allowing a double declaration, the best way to improve the error messages seems to reformat it in the testing code instead of displaying to the contributor the message provided by the validator. Indeed, the error is: {
keyword: 'additionalProperties',
dataPath: '',
schemaPath: '#/additionalProperties',
params: { additionalProperty: 'Terms of Service' },
message: 'should NOT have additional properties'
} …we could thus give additional details on how to fix this error. |
Declaration validation does not consider an empty
documents
key as an error.What happened
I tried to validate with
npm run validate Example
this malformed declaration:I got the following error:
What I expected
An error in the style of:
The text was updated successfully, but these errors were encountered: