Fixes #4664 - Introduce a type for markdown text (#4666)

This commit is contained in:
Suresh Srinivas 2022-05-21 21:56:12 -07:00 committed by GitHub
parent ec755f1187
commit 6f60a019fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
62 changed files with 70 additions and 70 deletions

View File

@ -17,7 +17,7 @@
},
"description": {
"description": "Description of the chart instance. What it has and how to use it.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"chartType": {
"$ref": "../../entity/data/chart.json#/definitions/chartType"

View File

@ -17,7 +17,7 @@
},
"description": {
"description": "Description of the database instance. What it has and how to use it.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"dashboardUrl": {
"description": "Dashboard URL",

View File

@ -18,7 +18,7 @@
},
"description": {
"description": "Description of the database instance. What it has and how to use it.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"owner": {
"description": "Owner of this database",

View File

@ -18,7 +18,7 @@
},
"description": {
"description": "Description of the schema instance. What it has and how to use it.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"owner": {
"description": "Owner of this schema",

View File

@ -18,7 +18,7 @@
},
"description": {
"description": "Description of the glossary instance.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"reviewers": {
"description": "User references of the reviewers for this glossary.",

View File

@ -26,7 +26,7 @@
},
"description": {
"description": "Description of the glossary term.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"synonyms": {
"description": "Alternate names that are synonyms or near-synonyms for the glossary term.",

View File

@ -22,7 +22,7 @@
},
"description": {
"description": "Description of the location instance.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"locationType": {
"$ref": "../../entity/data/location.json#/definitions/locationType"

View File

@ -18,7 +18,7 @@
},
"description": {
"description": "Description of the ML model instance. How it was trained and for what it is used.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"algorithm": {
"description": "Algorithm used to train the ML Model",

View File

@ -18,7 +18,7 @@
},
"description": {
"description": "Description of the pipeline instance. What it has and how to use it.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"pipelineUrl": {
"description": "Pipeline URL to visit/manage. This URL points to respective pipeline service UI",

View File

@ -18,7 +18,7 @@
},
"description": {
"description": "Description of entity instance.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"tableType": {
"$ref": "../../entity/data/table.json#/definitions/tableType"

View File

@ -18,7 +18,7 @@
},
"description": {
"description": "Description of the topic instance. What it has and how to use it.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"service": {
"description": "Link to the messaging service where this topic is hosted in",

View File

@ -18,7 +18,7 @@
},
"description": {
"description": "Description of the application",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"endpoint": {
"description": "Endpoint to receive the webhook events over POST requests.",

View File

@ -7,7 +7,7 @@
"properties": {
"description": {
"description": "User provided description of the lineage details.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"edge": {
"description": "Lineage edge details.",

View File

@ -18,7 +18,7 @@
},
"description": {
"description": "A short description of the Policy, comprehensible to regular users.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"owner": {
"description": "Owner of this Policy.",

View File

@ -18,7 +18,7 @@
},
"description": {
"description": "Description of dashboard service entity.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"serviceType": {
"$ref": "../../entity/services/dashboardService.json#/definitions/dashboardServiceType"

View File

@ -18,7 +18,7 @@
},
"description": {
"description": "Description of Database entity.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"serviceType": {
"$ref": "../../entity/services/databaseService.json#/definitions/databaseServiceType"

View File

@ -18,7 +18,7 @@
},
"description": {
"description": "Description of messaging service entity.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"serviceType": {
"$ref": "../../entity/services/messagingService.json#/definitions/messagingServiceType"

View File

@ -18,7 +18,7 @@
},
"description": {
"description": "Description of pipeline service entity.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"serviceType": {
"$ref": "../../entity/services/pipelineService.json#/definitions/pipelineServiceType"

View File

@ -18,7 +18,7 @@
},
"description": {
"description": "Description of Storage entity.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"serviceType": {
"$ref": "../../type/storage.json#/definitions/storageServiceType"

View File

@ -17,7 +17,7 @@
},
"description": {
"description": "Description of the pipeline.",
"type": "string"
"$ref": "../../../type/basic.json#/definitions/markdown"
},
"pipelineType": {
"$ref": "../../../entity/services/ingestionPipelines/ingestionPipeline.json#/definitions/pipelineType"

View File

@ -17,7 +17,7 @@
},
"description": {
"description": "Unique name of the tag category",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"associatedTags": {
"description": "Fully qualified names of tags associated with this tag",

View File

@ -17,7 +17,7 @@
},
"description": {
"description": "Description of the tag category",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"categoryType": {
"$ref": "../../entity/tags/tagCategory.json#/definitions/tagCategoryType"

View File

@ -17,7 +17,7 @@
},
"description": {
"description": "Optional description of the role",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"policies": {
"description": "Policies that is attached to this role. At least one policy is required.",

View File

@ -17,7 +17,7 @@
},
"description": {
"description": "Optional description of the team.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"profile": {
"description": "Optional team profile information.",

View File

@ -13,7 +13,7 @@
},
"description": {
"description": "Used for user biography.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"displayName": {
"description": "Name used for display purposes. Example 'FirstName LastName'",

View File

@ -7,7 +7,7 @@
"properties": {
"description": {
"description": "Description of the testcase.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"columnName": {
"description": "Name of the column in a table.",

View File

@ -7,7 +7,7 @@
"properties": {
"description": {
"description": "Description of the custom metric.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"name": {
"description": "Name that identifies this Custom Metric.",

View File

@ -7,7 +7,7 @@
"properties": {
"description": {
"description": "Description of the testcase.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"testCase": {
"$ref": "../../tests/tableTest.json#/definitions/tableTestCase"

View File

@ -26,7 +26,7 @@
},
"description": {
"description": "Description of the bot.",
"type": "string"
"$ref": "../type/basic.json#/definitions/markdown"
},
"botUser" : {
"description": "Bot user created for this bot on behalf of which the bot performs all the operations, such as updating description, responding on the conversation threads, etc.",

View File

@ -76,7 +76,7 @@
},
"description": {
"description": "Description of the dashboard, what it is, and how to use it.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"version": {
"description": "Metadata version of the entity.",

View File

@ -25,7 +25,7 @@
},
"description": {
"description": "Description of the dashboard, what it is, and how to use it.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"version": {
"description": "Metadata version of the entity.",

View File

@ -25,7 +25,7 @@
},
"description": {
"description": "Description of the database instance.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"version": {
"description": "Metadata version of the entity.",

View File

@ -25,7 +25,7 @@
},
"description": {
"description": "Description of the schema instance.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"version": {
"description": "Metadata version of the entity.",

View File

@ -32,7 +32,7 @@
},
"description": {
"description": "Description of the glossary.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"version": {
"description": "Metadata version of the entity.",

View File

@ -47,7 +47,7 @@
},
"description": {
"description": "Description of the glossary term.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"fullyQualifiedName": {
"description": "A unique name that identifies a glossary term. It captures name hierarchy of glossary of terms in the form of `glossaryName.parentTerm.childTerm`.",

View File

@ -54,7 +54,7 @@
},
"description": {
"description": "Description of a location.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"version": {
"description": "Metadata version of the entity.",

View File

@ -25,7 +25,7 @@
},
"description": {
"description": "Description of metrics instance, what it is, and how to use it.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"version": {
"description": "Metadata version of the entity.",

View File

@ -51,7 +51,7 @@
},
"description": {
"description": "Description of the feature source.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"fullyQualifiedName": {
"$ref": "../../type/basic.json#/definitions/fullyQualifiedEntityName"
@ -85,7 +85,7 @@
},
"description": {
"description": "Description of the ML Feature.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"fullyQualifiedName": {
"$ref": "../../type/basic.json#/definitions/fullyQualifiedEntityName"
@ -128,7 +128,7 @@
},
"description": {
"description": "Description of the Hyper Parameter.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
}
}
},
@ -168,7 +168,7 @@
},
"description": {
"description": "Description of the ML Model, what it is, and how to use it.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"algorithm": {
"description": "Algorithm used to train the ML Model.",

View File

@ -58,7 +58,7 @@
},
"description": {
"description": "Description of this Task.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"taskUrl": {
"description": "Task URL to visit/manage. This URL points to respective pipeline service UI.",
@ -144,7 +144,7 @@
},
"description": {
"description": "Description of this Pipeline.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"version": {
"description": "Metadata version of the entity.",

View File

@ -25,7 +25,7 @@
},
"description": {
"description": "Description of this report instance.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"version": {
"description": "Metadata version of the entity.",

View File

@ -190,7 +190,7 @@
},
"description": {
"description": "Description of the column.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"fullyQualifiedName": {
"$ref": "#/definitions/fullyQualifiedColumnName"
@ -531,7 +531,7 @@
},
"description": {
"description": "Description of the Table from the model.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"path": {
"description": "Path to sql definition file.",
@ -587,7 +587,7 @@
},
"description": {
"description": "Description of a table.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"version": {
"description": "Metadata version of the entity.",

View File

@ -71,7 +71,7 @@
},
"description": {
"description": "Description of the topic instance.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"version": {
"description": "Metadata version of the entity.",

View File

@ -25,7 +25,7 @@
},
"description": {
"description": "Description of the application.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"endpoint": {
"description": "Endpoint to receive the webhook events over POST requests.",

View File

@ -55,7 +55,7 @@
},
"description": {
"description": "A short description of the Policy, comprehensible to regular users.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"owner": {
"description": "Owner of this Policy.",

View File

@ -93,7 +93,7 @@
},
"description": {
"description": "Description of a dashboard service instance.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"connection": {
"$ref": "#/definitions/dashboardConnection"

View File

@ -232,7 +232,7 @@
},
"description": {
"description": "Description of a database service instance.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"connection": {
"$ref": "#/definitions/databaseConnection"

View File

@ -133,7 +133,7 @@
},
"description": {
"description": "Description of the Pipeline.",
"type": "string"
"$ref": "../../../type/basic.json#/definitions/markdown"
},
"pipelineType": {
"$ref": "#/definitions/pipelineType"

View File

@ -66,7 +66,7 @@
},
"description": {
"description": "Description of a messaging service instance.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"displayName": {
"description": "Display Name that identifies this messaging service. It could be title or label from the source services.",

View File

@ -65,7 +65,7 @@
},
"description": {
"description": "Description of a database service instance.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"connection": {
"$ref": "#/definitions/metadataConnection"

View File

@ -47,7 +47,7 @@
},
"description": {
"description": "Description of a pipeline service instance.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"displayName": {
"description": "Display Name that identifies this pipeline service. It could be title or label from the source services.",

View File

@ -29,7 +29,7 @@
},
"description": {
"description": "Description of a storage service instance.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"version": {
"description": "Metadata version of the entity.",

View File

@ -50,7 +50,7 @@
},
"description": {
"description": "Unique name of the tag category.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"version": {
"description": "Metadata version of the entity.",
@ -116,7 +116,7 @@
},
"description": {
"description": "Description of the tag category.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"version": {
"description": "Metadata version of the entity.",

View File

@ -29,7 +29,7 @@
},
"description": {
"description": "Description of the role.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"version": {
"description": "Metadata version of the entity.",

View File

@ -24,7 +24,7 @@
},
"description": {
"description": "Description of the team.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"version": {
"description": "Metadata version of the entity.",

View File

@ -43,7 +43,7 @@
},
"description": {
"description": "Used for user biography.",
"type": "string"
"$ref": "../../type/basic.json#/definitions/markdown"
},
"displayName": {
"description": "Name used for display purposes. Example 'FirstName LastName'.",

View File

@ -62,7 +62,7 @@
},
"description": {
"description": "Description of the testcase.",
"type": "string"
"$ref": "../type/basic.json#/definitions/markdown"
},
"columnName": {
"description": "Name of the column in a table.",

View File

@ -16,7 +16,7 @@
},
"description": {
"description": "Description of the Metric.",
"type": "string"
"$ref": "../type/basic.json#/definitions/markdown"
},
"columnName": {
"description": "Name of the column in a table.",

View File

@ -46,7 +46,7 @@
},
"description": {
"description": "Description of the testcase.",
"type": "string"
"$ref": "../type/basic.json#/definitions/markdown"
},
"testCase": {
"$ref": "#/definitions/tableTestCase"

View File

@ -20,7 +20,7 @@
"$ref": "basic.json#/definitions/uuid"
},
"description": {
"type": "string"
"$ref": "basic.json#/definitions/markdown"
}
},
"additionalProperties": false
@ -39,7 +39,7 @@
"$ref": "entityReference.json"
},
"description": {
"type": "string"
"$ref": "basic.json#/definitions/markdown"
}
},
"additionalProperties": false

View File

@ -33,7 +33,7 @@
},
"description": {
"description": "Optional description of entity.",
"type": "string"
"$ref": "basic.json#/definitions/markdown"
},
"displayName": {
"description": "Display Name that identifies this entity.",

View File

@ -17,7 +17,7 @@
},
"description": {
"description": "Unique name of the tag category.",
"type": "string"
"$ref": "../type/basic.json#/definitions/markdown"
},
"source": {
"description": "Label is from Tags or Glossary.",

View File

@ -1167,7 +1167,7 @@ public abstract class EntityResourceTest<T extends EntityInterface, K extends Cr
K create = createRequest(test).withExtension(jsonNode);
createAndCheckEntity(create, ADMIN_AUTH_HEADERS);
// Now set the entity custom field with an unknown field
// Now set the entity custom field with an unknown field name
jsonNode.set("stringC", mapper.convertValue("string", JsonNode.class)); // Unknown field
assertResponse(
() -> createEntity(createRequest(test, 1).withExtension(jsonNode), ADMIN_AUTH_HEADERS),