schema/entity.json in adiwg-mdjson_schemas-2.0.0.pre.alpha.1 vs schema/entity.json in adiwg-mdjson_schemas-2.0.0.pre.alpha.2
- old
+ new
@@ -4,11 +4,11 @@
"type": "object",
"title": "entity",
"translation": {
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType"]
},
- "example": "",
+ "example": "../examples/entity.json",
"required": ["codeName", "definition"],
"additionalProperties": true,
"properties": {
"entityId": {
"type": "string",
@@ -82,17 +82,19 @@
"type": "array",
"description": "An array of objects describing attributes whose values are restricted to values found in the domain of an attribute belonging to another table or dataset",
"translation": {
"ISO 19115-2": ["Note: the foreign key is written as a text description into FC_FeatureCatalogue > featureType > FC_FeatureType > constrainedBy > FC_Constraint"]
},
- "items": {}
+ "items": {
+ "$ref": "#/definitions/foreignKey"
+ }
}
},
"definitions": {
"index": {
"type": "object",
- "example": "",
+ "example": "../examples/entityIndex.json",
"required": ["codeName", "allowDuplicates", "attributeCodeName"],
"additionalProperties": true,
"properties": {
"codeName": {
"type": "string",
@@ -119,13 +121,12 @@
}
}
}
},
"attribute": {
-
"type": "object",
- "example": "",
+ "example": "../examples/entityAttribute.json",
"required": ["codeName", "dataType", "definition", "allowNull"],
"additionalProperties": true,
"properties": {
"commonName": {
"type": "string",
@@ -170,12 +171,11 @@
}
},
"allowMany": {
"type": "boolean",
"description": "Indicates whether null values are allowed for the attribute",
- "translation": {
- }
+ "translation": {}
},
"units": {
"type": "string",
"description": "A unit-of-measure for the attribute. E.g. 'meters', 'atmospheres', 'liters'",
"translation": {
@@ -196,10 +196,10 @@
}
}
},
"foreignKey": {
"type": "object",
- "example": "",
+ "example": "../examples/entityForeignKey.json",
"required": ["localAttributeCodeName", "referencedEntityCodeName", "referencedAttributeCodeName"],
"additionalProperties": true,
"properties": {
"localAttributeCodeName": {
"type": "array",