This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 183
Boolean not recognized correctly when using required fields #81
Comments
The raml definition
|
The reported issue is not related to a Boolean not recognized but to the handling of JSON Schema
Instead of Try adding:
to your schemas to see if it switches the JSON parser to |
Thanks a lot David. And yep adding $schema should work. Please let me know if it does not works for you. Regards, |
Thanks a lot guys, by default it looks for draft 3 I guess... |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have a raml file and am trying to generate the POJO's using 1.3.4 SNAPSHOT plugin.
The plugin works perfectly if there are no required fields, but when I add the required fields it throws the below mentioned exception
Failed to execute goal org.raml.plugins:raml-jaxrs-maven-plugin:1.3.4-SNAPSHOT:generate (default) on project webs-order-quotes-raml-jaxrs: Error generating Java classes from: /Users/rramakrishnan/spring/websworkspace/webs-order-quotes-raml-jaxrs/src/main/resources/raml/webs-subscription-signup.raml: Invalid RAML definition:
[ERROR] ERROR invalid JSON schema (preOrderQuoteRequest):
[ERROR] error: value has incorrect type (found array, expected one of [boolean])
[ERROR] level: "error"
[ERROR] domain: "syntax"
[ERROR] schema: {"loadingURI":"#","pointer":""}
[ERROR] keyword: "required"
[ERROR] found: "array"
[ERROR] expected: ["boolean"]
The text was updated successfully, but these errors were encountered: