Skip to content

Commit

Permalink
updated pom version 1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
gcornacchia committed Oct 4, 2024
1 parent 25c3c8b commit deee75c
Show file tree
Hide file tree
Showing 7 changed files with 1,604 additions and 1,486 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

1.0.8 .
- fix bug when handling generation of composed model with inline definitions

1.0.7 - 30/05/2024
- fix bug while handling generation of oneOf construct inside json schema
- fix issue preventing generation of schemas in case of objects without properties, forcing generation with additionalProperties enabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class DraftV4JsonSchemaGenerator extends BaseJsonSchemaGenerator implemen
private static final String EXTERNALDOCS = "externalDocs";
private static final String DEPRECATED = "deprecated";

private static final String ALLOF = "anyOf";
private static final String ALLOF = "allOf";
private static final String ONEOF = "oneOf";
private static final String ANYOF = "anyOf";

Expand Down Expand Up @@ -206,7 +206,9 @@ private void navigateModel(String originalRef, List<String> usedDefinition, Map<
private void lookComposedModel(List<Schema> schema, List<String> usedDefinition, Map<String, Object> res) {
if (schema!=null)
for (Schema m : schema) {
navigateModel(m.get$ref(), usedDefinition,res,null);
if (m.get$ref()!=null) {
navigateModel(m.get$ref(), usedDefinition, res, null);
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ public void testPetStoreWithStrict() {
testForSwagger("petstore.json");
}

@Test
public void testPetStoreWithRegex() {
testForSwagger("petstoreInvalidRegex.json");
}


@Test
public void testPetStoreWithStrictAndDateFormatAndPattern() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ public class TestGenerationFromOAS3 extends AbstractIT {

@Test
public void testOAS3WithComponentsInline() { testForSwagger("petstoreoas3ObjectInline.json"); }

@Test
public void testOAS3WithAllOf() { testForSwagger("petstoreoas3Allof.json"); }
}
Loading

0 comments on commit deee75c

Please sign in to comment.