Fixes #2799 - Rename Glossary JSON schema title fields (#2804)

This commit is contained in:
Suresh Srinivas 2022-02-16 09:54:11 -08:00 committed by GitHub
parent 20594dd607
commit bc3032ea42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 44 additions and 47 deletions

View File

@ -1,41 +1,41 @@
{ {
"$id": "https://open-metadata.org/schema/api/data/createGlossary.json", "$id": "https://open-metadata.org/schema/api/data/createGlossary.json",
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
"title": "Create Glossary entity request", "title": "CreateGlossaryRequest",
"description": "Create Glossary entity request", "description": "Create Glossary entity request",
"type": "object", "type": "object",
"properties" : { "properties": {
"name": { "name": {
"description": "Name that identifies this glossary.", "description": "Name that identifies this glossary.",
"$ref": "../../entity/data/glossary.json#/definitions/name" "$ref": "../../entity/data/glossary.json#/definitions/name"
}, },
"displayName": { "displayName": {
"description": "Display Name that identifies this glossary.", "description": "Display Name that identifies this glossary.",
"type": "string"
},
"description": {
"description": "Description of the glossary instance.",
"type": "string"
},
"reviewers": {
"description": "User names of the reviewers for this glossary.",
"type": "array",
"items": {
"type": "string" "type": "string"
},
"description": {
"description": "Description of the glossary instance.",
"type": "string"
},
"reviewers": {
"description": "User names of the reviewers for this glossary.",
"type": "array",
"items" : {
"type": "string"
}
},
"owner": {
"description": "Owner of this glossary",
"$ref": "../../type/entityReference.json"
},
"tags": {
"description": "Tags for this glossary",
"type": "array",
"items": {
"$ref": "../../type/tagLabel.json"
},
"default": null
} }
}, },
"required": ["name"] "owner": {
} "description": "Owner of this glossary",
"$ref": "../../type/entityReference.json"
},
"tags": {
"description": "Tags for this glossary",
"type": "array",
"items": {
"$ref": "../../type/tagLabel.json"
},
"default": null
}
},
"required": ["name"]
}

View File

@ -1,15 +1,15 @@
{ {
"$id": "https://open-metadata.org/schema/api/data/createGlossary.json", "$id": "https://open-metadata.org/schema/api/data/createGlossaryTerm.json",
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
"title": "Create Glossary entity request", "title": "CreateGlossaryTermRequest",
"description": "Create Glossary entity request", "description": "Create Glossary term entity request",
"type": "object", "type": "object",
"properties": { "properties": {
"glossary" : { "glossary": {
"description": "Reference to the glossary that this term is part of.", "description": "Reference to the glossary that this term is part of.",
"$ref": "../../type/entityReference.json" "$ref": "../../type/entityReference.json"
}, },
"parent" : { "parent": {
"description": "Reference to the parent glossary term. When null, the term is at the root of the glossary.", "description": "Reference to the parent glossary term. When null, the term is at the root of the glossary.",
"$ref": "../../type/entityReference.json" "$ref": "../../type/entityReference.json"
}, },
@ -57,8 +57,5 @@
"default": null "default": null
} }
}, },
"required": [ "required": ["glossary", "name"]
"glossary", }
"name"
]
}