- private String schema1 = "{\"$schema\": " //
- + "\"http://json-schema.org/draft-07/schema#\"," //
- + "\"title\": \"ANR\"," //
- + "\"description\": \"ANR Neighbour Cell Relation Policy\"," //
- + "\"type\": \"object\"," //
- + "\"properties\": " //
- + "{ \"servingCellNrcgi\": {" //
- + "\"type\": \"string\"," //
- + "\"description\" : \"Serving Cell Identifier (NR CGI)\"}," //
- + "\"neighborCellNrpci\": {" //
- + "\"type\": \"string\"," //
- + "\"description\": \"Neighbor Cell Identifier (NR PCI)\"}," //
- + "\"neighborCellNrcgi\": {" //
- + "\"type\": \"string\"," //
- + "\"description\": \"Neighbor Cell Identifier (NR CGI)\"}," //
- + "\"flagNoHo\": {" //
- + "\"type\": \"boolean\"," //
- + "\"description\": \"Flag for HANDOVER NOT ALLOWED\"}," //
- + "\"flagNoXn\": {" //
- + "\"type\": \"boolean\"," //
- + "\"description\": \"Flag for Xn CONNECTION NOT ALLOWED\"}," //
- + "\"flagNoRemove\": {" //
- + "\"type\": \"boolean\"," //
- + "\"description\": \"Flag for DELETION NOT ALLOWED\"}}, " //
- + "\"required\": [ \"servingCellNrcgi\",\"neighborCellNrpci\",\"neighborCellNrcgi\",\"flagNoHo\",\"flagNoXn\",\"flagNoRemove\" ]}";
- private PolicyType policy1 = new PolicyType(1, "ANR", "ANR Neighbour Cell Relation Policy", schema1);
-
- private String policyInstance1 = "{\"servingCellNrcgi\": \"Cell1\",\r\n" + //
- "\"neighborCellNrpci\": \"NCell1\",\r\n" + //
- "\"neighborCellNrcgi\": \"Ncell1\",\r\n" + //
- "\"flagNoHo\": true,\r\n" + //
- "\"flagNoXn\": true,\r\n" + //
- "\"flagNoRemove\": true}";
-
- private String schema2 = "{\n" + " \"type\": \"object\",\n" + //
- " \"title\": \"Car\",\n" + //
- " \"properties\": {\n" + //
- " \"make\": {\n" + //
- " \"type\": \"string\",\n" + //
- " \"enum\": [\n" + //
- " \"Toyota\",\n" + //
- " \"BMW\",\n" + //
- " \"Honda\",\n" + //
- " \"Ford\",\n" + //
- " \"Chevy\",\n" + //
- " \"VW\"\n" + //
- " ]\n" + //
- " },\n" + //
- " \"model\": {\n" + //
- " \"type\": \"string\"\n" + //
- " },\n" + //
- " \"year\": {\n" + //
- " \"type\": \"integer\",\n" + //
- " \"enum\": [\n" + //
- " 1995,1996,1997,1998,1999,\n" + //
- " 2000,2001,2002,2003,2004,\n" + //
- " 2005,2006,2007,2008,2009,\n" + //
- " 2010,2011,2012,2013,2014\n" + //
- " ],\n" + //
- " \"default\": 2008\n" + //
- " },\n" + //
- " \"safety\": {\n" + //
- " \"type\": \"integer\",\n" + //
- " \"format\": \"rating\",\n" + //
- " \"maximum\": 5,\n" + //
- " \"exclusiveMaximum\": false,\n" + //
- " \"readonly\": false\n" + //
- " }\n" + //
- " }\n" + //
- " }\n";
- private PolicyType policy2 = new PolicyType(2, "type2", "Type2 description", schema2);
-
- private String schema3 = "{\n" + //
- " \"$id\": \"https://example.com/person.schema.json\",\n" + //
- " \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n" + //
- " \"title\": \"Person\",\n" + //
- " \"type\": \"object\",\n" + //
- " \"properties\": {\n" + //
- " \"firstName\": {\n" + //
- " \"type\": \"string\",\n" + //
- " \"description\": \"The person's first name.\"\n" + //
- " },\n" + //
- " \"lastName\": {\n" + //
- " \"type\": \"string\",\n" + //
- " \"description\": \"The person's last name.\"\n" + //
- " },\n" + //
- " \"age\": {\n" + //
- " \"description\": \"Age in years which must be equal to or greater than zero.\",\n" + //
- " \"type\": \"integer\",\n" + //
- " \"minimum\": 0\n" + //
- " }\n" + //
- " }\n" + //
- "}";
- private PolicyType policy3 = new PolicyType(3, "type3", "Type3 description", schema3);
-
- private String schema4 = "{" + //
- " \"$id\": \"https://example.com/arrays.schema.json\"," + //
- " \"$schema\": \"http://json-schema.org/draft-07/schema#\"," + //
- " \"description\": \"A representation of a person, company, organization, or place\"," + //
- " \"type\": \"object\"," + //
- " \"properties\": {" + //
- " \"fruits\": {" + //
- " \"type\": \"array\"," + //
- " \"items\": {" + //
- " \"type\": \"string\"" + //
- " }" + //
- " }," + //
- " \"vegetables\": {" + //
- " \"type\": \"array\"," + //
- " \"items\": { \"$ref\": \"#/definitions/veggie\" }" + //
- " }" + //
- " }," + //
- " \"definitions\": {" + //
- " \"veggie\": {" + //
- " \"type\": \"object\"," + //
- " \"required\": [ \"veggieName\", \"veggieLike\" ]," + //
- " \"properties\": {" + //
- " \"veggieName\": {" + //
- " \"type\": \"string\"," + //
- " \"description\": \"The name of the vegetable.\"" + //
- " }," + //
- " \"veggieLike\": {" + //
- " \"type\": \"boolean\"," + //
- " \"description\": \"Do I like this vegetable?\"" + //
- " }" + //
- " }" + //
- " }" + //
- " }" + //
- " }";
- private PolicyType policy4 = new PolicyType(4, "type4", "Type4 description", schema4);
-