diff --git a/json-schema-catalog/catalog-core/src/main/resources/schema_catalog_schema.json b/json-schema-catalog/catalog-core/src/main/resources/schema_catalog_schema.json index 6e6861fd6..e620103d5 100644 --- a/json-schema-catalog/catalog-core/src/main/resources/schema_catalog_schema.json +++ b/json-schema-catalog/catalog-core/src/main/resources/schema_catalog_schema.json @@ -25,7 +25,7 @@ "type": "string" }, "location": { - "location": "string" + "type": "string" } }, "additionalProperties": false, @@ -40,7 +40,7 @@ "required": [ "baseLocation", "name", - "schema" + "schemas" ] } } @@ -48,6 +48,6 @@ "additionalProperties": false, "required": [ "name", - "group" + "groups" ] } diff --git a/json-schema-catalog/catalog-core/src/test/resources/catalog_test_valid.json b/json-schema-catalog/catalog-core/src/test/resources/catalog_test_valid.json index b8bec69db..866778556 100644 --- a/json-schema-catalog/catalog-core/src/test/resources/catalog_test_valid.json +++ b/json-schema-catalog/catalog-core/src/test/resources/catalog_test_valid.json @@ -1,31 +1,29 @@ { - "catalog": { - "name": "my catalog", - "groups": [ - { - "name": "standards", - "baseLocation": "jar://CommonSchemas.jar!//context/schemas", - "schemas": [ - { - "id": "http://justive.gov.uk/standards/complex_addressV1.json", - "location": "standards/complex_addressV1.json" - }, - { - "id": "http://justive.gov.uk/standards/person.json", - "location": "standards/person" - } - ] - }, - { - "name": "staging interface", - "baseLocation": "file:///context/schemas", - "schemas": [ - { - "id": "http://justive.gov.uk/context/exhibitV1.json", - "location": "context/eh.json" - } - ] - } - ] - } + "name": "my catalog", + "groups": [ + { + "name": "standards", + "baseLocation": "jar://CommonSchemas.jar!//context/schemas", + "schemas": [ + { + "id": "http://justive.gov.uk/standards/complex_addressV1.json", + "location": "standards/complex_addressV1.json" + }, + { + "id": "http://justive.gov.uk/standards/person.json", + "location": "standards/person" + } + ] + }, + { + "name": "staging interface", + "baseLocation": "file:///context/schemas", + "schemas": [ + { + "id": "http://justive.gov.uk/context/exhibitV1.json", + "location": "context/eh.json" + } + ] + } + ] }