Loading src/main/scala/com/kjetland/jackson/jsonSchema/JsonSchemaGenerator.scala +0 −1 Original line number Diff line number Diff line Loading @@ -507,7 +507,6 @@ class JsonSchemaGenerator } } private def getRequiredArrayNode(objectNode:ObjectNode):ArrayNode = { Option(objectNode.get("required")).map(_.asInstanceOf[ArrayNode]).getOrElse { val rn = JsonNodeFactory.instance.arrayNode() Loading src/test/scala/com/kjetland/jackson/jsonSchema/JsonSchemaGeneratorTest.scala +0 −10 Original line number Diff line number Diff line Loading @@ -61,14 +61,7 @@ class JsonSchemaGeneratorTest extends FunSuite with Matchers { val jsonSchemaGeneratorWithIds = new JsonSchemaGenerator(_objectMapperScala, null, debug = true, vanillaJsonSchemaDraft4WithIds) val properties = new util.HashMap[String, Object](); properties.put("ACTIVITYBASE", "/operator/activities/"); properties.put("ACCESSIBILITY", "/operator/accessibilities/"); properties.put("SCOPE", "/operator/scopes/"); properties.put("ACTIVITYTYPE", "/operator/activitytypes"); properties.put("ACTIVITYDOCUMENT", "/operator/documents/"); properties.put("ACTIVITYPLATFORMROLE", "/operator/contactroles/"); properties.put("CONTACTORGANISATIONROLE", "/operator/contactroles/"); properties.put("ORGANISATIONROLE", "/operator/organisationroles/"); val jsonSchemaGeneratorWithResources = new JsonSchemaGenerator(_objectMapperScala, JsonSchemaResources.setResources(properties), debug = true, vanillaJsonSchemaDraft4WithIds) Loading Loading @@ -178,12 +171,9 @@ class JsonSchemaGeneratorTest extends FunSuite with Matchers { test("Generate scheme for @JsonUrl") { { val schema = jsonSchemaGeneratorWithResources.generateJsonSchema(classOf[ClassWithRelation]); println("dentrooooooooooooooooooooo") println(schema) } } Loading Loading
src/main/scala/com/kjetland/jackson/jsonSchema/JsonSchemaGenerator.scala +0 −1 Original line number Diff line number Diff line Loading @@ -507,7 +507,6 @@ class JsonSchemaGenerator } } private def getRequiredArrayNode(objectNode:ObjectNode):ArrayNode = { Option(objectNode.get("required")).map(_.asInstanceOf[ArrayNode]).getOrElse { val rn = JsonNodeFactory.instance.arrayNode() Loading
src/test/scala/com/kjetland/jackson/jsonSchema/JsonSchemaGeneratorTest.scala +0 −10 Original line number Diff line number Diff line Loading @@ -61,14 +61,7 @@ class JsonSchemaGeneratorTest extends FunSuite with Matchers { val jsonSchemaGeneratorWithIds = new JsonSchemaGenerator(_objectMapperScala, null, debug = true, vanillaJsonSchemaDraft4WithIds) val properties = new util.HashMap[String, Object](); properties.put("ACTIVITYBASE", "/operator/activities/"); properties.put("ACCESSIBILITY", "/operator/accessibilities/"); properties.put("SCOPE", "/operator/scopes/"); properties.put("ACTIVITYTYPE", "/operator/activitytypes"); properties.put("ACTIVITYDOCUMENT", "/operator/documents/"); properties.put("ACTIVITYPLATFORMROLE", "/operator/contactroles/"); properties.put("CONTACTORGANISATIONROLE", "/operator/contactroles/"); properties.put("ORGANISATIONROLE", "/operator/organisationroles/"); val jsonSchemaGeneratorWithResources = new JsonSchemaGenerator(_objectMapperScala, JsonSchemaResources.setResources(properties), debug = true, vanillaJsonSchemaDraft4WithIds) Loading Loading @@ -178,12 +171,9 @@ class JsonSchemaGeneratorTest extends FunSuite with Matchers { test("Generate scheme for @JsonUrl") { { val schema = jsonSchemaGeneratorWithResources.generateJsonSchema(classOf[ClassWithRelation]); println("dentrooooooooooooooooooooo") println(schema) } } Loading