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,10 +1,10 @@
{ {
"$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"
@ -20,7 +20,7 @@
"reviewers": { "reviewers": {
"description": "User names of the reviewers for this glossary.", "description": "User names of the reviewers for this glossary.",
"type": "array", "type": "array",
"items" : { "items": {
"type": "string" "type": "string"
} }
}, },
@ -38,4 +38,4 @@
} }
}, },
"required": ["name"] "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"
]
} }