Skip to content

Commit

Permalink
Merge pull request #122 from nls-jajuko/121-output-format-fixes-for-s…
Browse files Browse the repository at this point in the history
…chema

output format fixes for schema
  • Loading branch information
nls-jajuko authored Nov 6, 2024
2 parents 1b1b4e6 + bd3b4f7 commit 33d9da0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ public SchemaDefinition handle(
} else {
Schema<?> schema = p.getSchema();
if (schema != null) {
properties.addProperties(p.getName(), OAS30toJsonSchema.toJsonSchema(schema));
schema = OAS30toJsonSchema.toJsonSchema(schema).nullable(p.nullable());
properties.addProperty(p.getName(), schema);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ public SchemaDefinition handle(
} else {
Schema<?> schema = p.getSchema();
if (schema != null) {
properties.addProperties(p.getName(), OAS30toJsonSchema.toJsonSchema(schema));
schema = OAS30toJsonSchema.toJsonSchema(schema).nullable(p.nullable());
properties.addProperty(p.getName(), schema);
}
}
}
Expand Down

0 comments on commit 33d9da0

Please sign in to comment.