Skip to content

Commit

Permalink
removing setAutoPutSchemaVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
nilportugues committed Dec 4, 2017
1 parent 1ecf2fe commit 73691a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ public static class ConfigurationStep {
this.generator = generator;
}

public ConfigurationStep setAutoPutSchemaVersion(boolean autoPutVersion) {
generator.autoPutVersion = autoPutVersion;
return this;
}

public ConfigurationStep sortProperties(boolean sortProperties) {
generator.sortProperties = sortProperties;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
public class JavaRESTfulTest extends TestCase {

private ObjectWriter om = new ObjectMapper().writerWithDefaultPrettyPrinter();
private JsonSchemaGenerator v4hyperGenerator = SchemaGeneratorBuilder.draftV4HyperSchema().setAutoPutSchemaVersion(false).build();
private JsonSchemaGenerator v4hyperGenerator = SchemaGeneratorBuilder.draftV4HyperSchema().build();

public void testHyperSchema() throws JsonProcessingException, TypeException {
JsonNode userHyperSchema = v4hyperGenerator.generateSchema(User.class);
Expand Down

0 comments on commit 73691a2

Please sign in to comment.