-
Notifications
You must be signed in to change notification settings - Fork 533
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
Fixing composedSchema deserializing and resolving, allof, anyOf, Oneof #516
Conversation
for(JsonNode n : allOfArray) { | ||
if(n.isObject()) { | ||
ComposedSchema allOfList = new ComposedSchema(); | ||
schema = getSchema((ObjectNode) n,location,result); | ||
allOfList.addAllOfItem(schema); | ||
schema = allOfList; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
schema = allOfList;
: this line should be outside the for
structure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are right
for(JsonNode n : anyOfArray) { | ||
if(n.isObject()) { | ||
ComposedSchema anyOfList = new ComposedSchema(); | ||
schema = getSchema((ObjectNode) n,location,result); | ||
anyOfList.addAnyOfItem(schema); | ||
schema = anyOfList; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
schema = anyOfList;
: this line should be outside the for
structure
I think the fixing of the |
hehe done! |
The deserializing of composedSchema was only returning the last object of the arrays, and there were some issues in the resolving of this schemas.