Loading src/test/java/es/redmic/test/unit/jsonschema/JsonSchemaGenerationTest.java +1 −0 Original line number Diff line number Diff line Loading @@ -81,6 +81,7 @@ public class JsonSchemaGenerationTest { properties.put("controller.mapping.SPECIES", "/operator/taxons/species"); properties.put("controller.mapping.MISIDENTIFICATION", "/operator/taxons/misidentification"); properties.put("controller.mapping.THEME_INSPIRE", "/operator/themeinspire"); properties.put("controller.mapping.RESOURCE_TYPE", "/operator/resourcetype"); Whitebox.setInternalState(jsonSchemaUtil, HashMap.class, properties); Whitebox.invokeMethod(jsonSchemaUtil, "jsonSchemaGeneratorInit"); Loading src/test/resources/data/jsonschema/activityJsonschema.json +4 −18 Original line number Diff line number Diff line Loading @@ -166,22 +166,11 @@ "type": "object", "properties": { "id": { "type": [ "integer", "null" ] "type": ["integer", "null"] }, "name": { "resourceType": { "type": "string", "minLength": 1, "maxLength": 100 }, "description": { "type": [ "string", "null" ], "maxLength": 1500 "url": "/operator/resourcetype" }, "urlResource": { "type": "string", Loading @@ -189,10 +178,7 @@ "maxLength": 500 } }, "required": [ "name", "urlResource" ] "required": ["resourceType", "urlResource"] }, "ActivityDocumentDTO": { "type": "object", Loading Loading
src/test/java/es/redmic/test/unit/jsonschema/JsonSchemaGenerationTest.java +1 −0 Original line number Diff line number Diff line Loading @@ -81,6 +81,7 @@ public class JsonSchemaGenerationTest { properties.put("controller.mapping.SPECIES", "/operator/taxons/species"); properties.put("controller.mapping.MISIDENTIFICATION", "/operator/taxons/misidentification"); properties.put("controller.mapping.THEME_INSPIRE", "/operator/themeinspire"); properties.put("controller.mapping.RESOURCE_TYPE", "/operator/resourcetype"); Whitebox.setInternalState(jsonSchemaUtil, HashMap.class, properties); Whitebox.invokeMethod(jsonSchemaUtil, "jsonSchemaGeneratorInit"); Loading
src/test/resources/data/jsonschema/activityJsonschema.json +4 −18 Original line number Diff line number Diff line Loading @@ -166,22 +166,11 @@ "type": "object", "properties": { "id": { "type": [ "integer", "null" ] "type": ["integer", "null"] }, "name": { "resourceType": { "type": "string", "minLength": 1, "maxLength": 100 }, "description": { "type": [ "string", "null" ], "maxLength": 1500 "url": "/operator/resourcetype" }, "urlResource": { "type": "string", Loading @@ -189,10 +178,7 @@ "maxLength": 500 } }, "required": [ "name", "urlResource" ] "required": ["resourceType", "urlResource"] }, "ActivityDocumentDTO": { "type": "object", Loading