Loading src/test/java/es/redmic/test/unit/jsonschema/JsonSchemaGenerationTest.java +1 −0 Original line number Diff line number Diff line Loading @@ -79,6 +79,7 @@ public class JsonSchemaGenerationTest { properties.put("controller.mapping.CONFIDENCE", "/operator/confidences"); properties.put("controller.mapping.SPECIES", "/operator/taxons/species"); properties.put("controller.mapping.MISIDENTIFICATION", "/operator/taxons/misidentification"); properties.put("controller.mapping.THEME_INSPIRE", "/operator/themeinspire"); Whitebox.setInternalState(jsonSchemaUtil, HashMap.class, properties); Whitebox.invokeMethod(jsonSchemaUtil, "jsonSchemaGeneratorInit"); Loading src/test/resources/data/jsonschema/activityJsonschema.json +26 −0 Original line number Diff line number Diff line Loading @@ -119,6 +119,32 @@ "items": { "$ref": "#/definitions/OrganisationRoleDTO" } }, "license": { "type": [ "string", "null" ], "maxLength": 5000 }, "spatialExtension": { "type": [ "string", "null" ] }, "starred": { "type": [ "boolean", "null" ] }, "themeInspire": { "type": [ "string", "null" ], "url": "/operator/themeinspire" } }, "required": [ Loading Loading
src/test/java/es/redmic/test/unit/jsonschema/JsonSchemaGenerationTest.java +1 −0 Original line number Diff line number Diff line Loading @@ -79,6 +79,7 @@ public class JsonSchemaGenerationTest { properties.put("controller.mapping.CONFIDENCE", "/operator/confidences"); properties.put("controller.mapping.SPECIES", "/operator/taxons/species"); properties.put("controller.mapping.MISIDENTIFICATION", "/operator/taxons/misidentification"); properties.put("controller.mapping.THEME_INSPIRE", "/operator/themeinspire"); Whitebox.setInternalState(jsonSchemaUtil, HashMap.class, properties); Whitebox.invokeMethod(jsonSchemaUtil, "jsonSchemaGeneratorInit"); Loading
src/test/resources/data/jsonschema/activityJsonschema.json +26 −0 Original line number Diff line number Diff line Loading @@ -119,6 +119,32 @@ "items": { "$ref": "#/definitions/OrganisationRoleDTO" } }, "license": { "type": [ "string", "null" ], "maxLength": 5000 }, "spatialExtension": { "type": [ "string", "null" ] }, "starred": { "type": [ "boolean", "null" ] }, "themeInspire": { "type": [ "string", "null" ], "url": "/operator/themeinspire" } }, "required": [ Loading