File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/test/java/com/fasterxml/jackson/module/jsonSchema Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,12 @@ static class Name {
28
28
29
29
public void testUnwrapping () throws Exception
30
30
{
31
- MAPPER .configure (MapperFeature .SORT_PROPERTIES_ALPHABETICALLY , true );
32
- JsonSchemaGenerator generator = new JsonSchemaGenerator (MAPPER );
31
+ ObjectMapper mapper = new ObjectMapper ();
32
+ mapper .configure (MapperFeature .SORT_PROPERTIES_ALPHABETICALLY , true );
33
+ JsonSchemaGenerator generator = new JsonSchemaGenerator (mapper );
33
34
JsonSchema schema = generator .generateSchema (UnwrappingRoot .class );
34
35
35
- String json = MAPPER .writeValueAsString (schema ).replace ('"' , '\'' );
36
+ String json = mapper .writeValueAsString (schema ).replace ('"' , '\'' );
36
37
37
38
String EXP = "{'type':'object'," +
38
39
"'id':'urn:jsonschema:com:fasterxml:jackson:module:jsonSchema:TestUnwrapping:UnwrappingRoot'," +
You can’t perform that action at this time.
0 commit comments