You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
But since 1.1.48 all schemas without $schema property are assumed to be in Draft 3, which result in the following parser error when used with rejectOnErrors: true:
{
"code": "REQUIRED_MUST_BE_BOOLEAN_IN_DRAFT_3",
"message": "Draft 3 schema must have boolean as 'required' property value"
}
Additionally, specifying draft-07 schema results in being treated like draft 3 and having complaints about "required" being non-boolean (though only in some uses of "required").
Note that raml-js-parser-2 has been deprecated, the new official parser is webapi-parser. Feel free to attempt to reproduce this issue with webapi-parser and report any issue you may have on that repository.
In
1.1.48
you've updatedraml-definition-system
package, which resulted in a breaking change.Before
1.1.48
the following Draft 4 schema was considered valid:But since
1.1.48
all schemas without$schema
property are assumed to be in Draft 3, which result in the following parser error when used withrejectOnErrors: true
:Related to raml-org/raml-typesystem#113
The text was updated successfully, but these errors were encountered: