Update JSON schema documentation for cleanup and consistency.

This commit is contained in:
sureshms 2021-08-09 15:57:30 -07:00
parent d5590ebf37
commit dc5aacd3e9
10 changed files with 33 additions and 25 deletions

View File

@ -7,7 +7,7 @@
"properties" : { "properties" : {
"name": { "name": {
"$ref": "../../entity/teams/team.json#/defintions/teamName" "$ref": "../../entity/teams/team.json#/definitions/teamName"
}, },
"displayName": { "displayName": {
"description": "Optional name used for display purposes. Example 'Marketing Team'", "description": "Optional name used for display purposes. Example 'Marketing Team'",

View File

@ -28,7 +28,7 @@
"type": "string" "type": "string"
}, },
"description": { "description": {
"description": "Description of the database instance. What it has and how to use it.", "description": "Description of the database instance.",
"type": "string" "type": "string"
}, },
"href": { "href": {

View File

@ -8,7 +8,7 @@
"definitions": { "definitions": {
"tableType": { "tableType": {
"javaType": "org.openmetadata.catalog.type.TableType", "javaType": "org.openmetadata.catalog.type.TableType",
"description": "Type for capturing a column in a table.", "description": "This schema defines the type for a column in a table.",
"type": "string", "type": "string",
"enum": [ "enum": [
"Regular", "Regular",
@ -37,7 +37,7 @@
}, },
"columnDataType": { "columnDataType": {
"javaType": "org.openmetadata.catalog.type.ColumnDataType", "javaType": "org.openmetadata.catalog.type.ColumnDataType",
"description": "Type for capturing a column in a table.", "description": "This enum defines the type for column data type.",
"type": "string", "type": "string",
"enum": [ "enum": [
"NUMBER", "NUMBER",
@ -77,7 +77,7 @@
}, },
"columnConstraint": { "columnConstraint": {
"javaType": "org.openmetadata.catalog.type.ColumnConstraint", "javaType": "org.openmetadata.catalog.type.ColumnConstraint",
"description": "Column constraint.", "description": "This enum defines the type for column constraint.",
"type": "string", "type": "string",
"enum": [ "enum": [
"NULL", "NULL",
@ -90,7 +90,7 @@
"tableConstraint": { "tableConstraint": {
"type": "object", "type": "object",
"javaType": "org.openmetadata.catalog.type.TableConstraint", "javaType": "org.openmetadata.catalog.type.TableConstraint",
"description": "Table constraint.", "description": "This enum defines the type for table constraint.",
"properties": { "properties": {
"constraintType": { "constraintType": {
"type": "string", "type": "string",
@ -124,7 +124,7 @@
"pattern": "^[^.]*$" "pattern": "^[^.]*$"
}, },
"fullyQualifiedColumnName": { "fullyQualifiedColumnName": {
"description": "Fully qualified name of the column that includes serviceName.databaseName.tableName.columnName.", "description": "Fully qualified name of the column that includes `serviceName.databaseName.tableName.columnName`.",
"type": "string", "type": "string",
"minLength": 1, "minLength": 1,
"maxLength": 256 "maxLength": 256
@ -132,7 +132,7 @@
"column": { "column": {
"type": "object", "type": "object",
"javaType": "org.openmetadata.catalog.type.Column", "javaType": "org.openmetadata.catalog.type.Column",
"description": "Type for capturing a column in a table.", "description": "This schema defines the type for a column in a table.",
"properties": { "properties": {
"name": { "name": {
"$ref": "#/definitions/columnName" "$ref": "#/definitions/columnName"
@ -173,7 +173,7 @@
"columnJoins": { "columnJoins": {
"type": "object", "type": "object",
"javaType": "org.openmetadata.catalog.type.ColumnJoin", "javaType": "org.openmetadata.catalog.type.ColumnJoin",
"description": "Information on other tables that this table column is frequently joined with.", "description": "This schema defines the type to capture how frequently a column in this table is joined with columns in the other tables.",
"properties": { "properties": {
"columnName": { "columnName": {
"$ref": "#/definitions/columnName" "$ref": "#/definitions/columnName"
@ -199,6 +199,7 @@
"tableJoins": { "tableJoins": {
"type": "object", "type": "object",
"javaType": "org.openmetadata.catalog.type.TableJoins", "javaType": "org.openmetadata.catalog.type.TableJoins",
"description": "This schema defines the type to capture how columns in this table is joined with columns in the other tables.",
"properties": { "properties": {
"startDate": { "startDate": {
"description": "Date can be only from today going back to last 29 days.", "description": "Date can be only from today going back to last 29 days.",
@ -220,7 +221,7 @@
"tableData": { "tableData": {
"type": "object", "type": "object",
"javaType": "org.openmetadata.catalog.type.TableData", "javaType": "org.openmetadata.catalog.type.TableData",
"description": "Information on other tables that this table column is frequently joined with.", "description": "This schema defines the type to capture rows of sample data for the table.",
"properties": { "properties": {
"columns": { "columns": {
"description": "List of local column names (not fully qualified column names) of the table.", "description": "List of local column names (not fully qualified column names) of the table.",
@ -243,7 +244,7 @@
}, },
"properties": { "properties": {
"id": { "id": {
"description": "Unique identifier that identifies this table instance.", "description": "Unique identifier of this table instance.",
"$ref": "../../type/basic.json#/definitions/uuid" "$ref": "../../type/basic.json#/definitions/uuid"
}, },
"name": { "name": {
@ -262,11 +263,11 @@
"$ref": "#/definitions/tableType" "$ref": "#/definitions/tableType"
}, },
"fullyQualifiedName": { "fullyQualifiedName": {
"description": "Fully qualified name of the table in the form serviceName.databaseName.tableName.", "description": "Fully qualified name of the table in the form `serviceName.databaseName.tableName`.",
"type": "string" "type": "string"
}, },
"columns": { "columns": {
"description": "Columns in the table.", "description": "Columns in this table.",
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/definitions/column" "$ref": "#/definitions/column"
@ -282,8 +283,8 @@
"default": null "default": null
}, },
"usageSummary": { "usageSummary": {
"$ref": "../../type/usageDetails.json",
"description": "Latest usage information for this table.", "description": "Latest usage information for this table.",
"$ref": "../../type/usageDetails.json",
"default": null "default": null
}, },
"owner": { "owner": {
@ -319,6 +320,7 @@
} }
}, },
"required": [ "required": [
"id",
"name", "name",
"columns" "columns"
] ]

View File

@ -44,16 +44,17 @@
}, },
"properties": { "properties": {
"id": { "id": {
"description": "Unique identifier that identifies an entity instance.", "description": "Unique identifier of this database service instance.",
"$ref": "../../type/basic.json#/definitions/uuid" "$ref": "../../type/basic.json#/definitions/uuid"
}, },
"name": { "name": {
"description": "Name that identifies the this entity instance uniquely. Same as id if when name is not unique.", "description": "Name that identifies this database service.",
"type": "string", "type": "string",
"minLength": 1, "minLength": 1,
"maxLength": 64 "maxLength": 64
}, },
"serviceType": { "serviceType": {
"description": "Type of database service such as MySQL, BigQuery, Snowflake, Redshift, Postgres...",
"$ref": "#/definitions/databaseServiceType" "$ref": "#/definitions/databaseServiceType"
}, },
"description": { "description": {
@ -61,10 +62,11 @@
"type": "string" "type": "string"
}, },
"href": { "href": {
"description": "Link to the resource corresponding to this entity.", "description": "Link to the resource corresponding to this database service.",
"$ref": "../../type/basic.json#/definitions/href" "$ref": "../../type/basic.json#/definitions/href"
}, },
"jdbc": { "jdbc": {
"description": "JDBC connection information",
"$ref": "../../type/jdbcConnection.json#/definitions/jdbcInfo" "$ref": "../../type/jdbcConnection.json#/definitions/jdbcInfo"
}, },
"ingestionSchedule": { "ingestionSchedule": {

View File

@ -5,7 +5,7 @@
"description": "This schema defines Team entity. A Team is a group of zero or more users. Team can have ownership of data assets.", "description": "This schema defines Team entity. A Team is a group of zero or more users. Team can have ownership of data assets.",
"type": "object", "type": "object",
"defintions" : { "definitions" : {
"teamName" : { "teamName" : {
"description": "Unique name of the team typically the team ID from the identify provider. Example - group Id from ldap.", "description": "Unique name of the team typically the team ID from the identify provider. Example - group Id from ldap.",
"type": "string", "type": "string",
@ -19,7 +19,7 @@
"$ref": "../../type/basic.json#/definitions/uuid" "$ref": "../../type/basic.json#/definitions/uuid"
}, },
"name": { "name": {
"$ref": "#/defintions/teamName" "$ref": "#/definitions/teamName"
}, },
"displayName": { "displayName": {
"description": "Name used for display purposes. Example 'Data Science team'.", "description": "Name used for display purposes. Example 'Data Science team'.",
@ -38,6 +38,7 @@
"$ref": "../../type/profile.json" "$ref": "../../type/profile.json"
}, },
"deleted" : { "deleted" : {
"description": "When true the team has been deleted.",
"type": "boolean" "type": "boolean"
}, },
"users" : { "users" : {
@ -45,7 +46,7 @@
"$ref": "../../type/entityReference.json#/definitions/entityReferenceList" "$ref": "../../type/entityReference.json#/definitions/entityReferenceList"
}, },
"owns" : { "owns" : {
"description": "Entities owned by the team.", "description": "List of entities owned by the team.",
"$ref": "../../type/entityReference.json#/definitions/entityReferenceList" "$ref": "../../type/entityReference.json#/definitions/entityReferenceList"
} }
}, },

View File

@ -54,6 +54,7 @@
"boolean" : false "boolean" : false
}, },
"profile": { "profile": {
"description": "Profile of the user.",
"$ref": "../../type/profile.json" "$ref": "../../type/profile.json"
}, },
"teams" : { "teams" : {
@ -61,11 +62,11 @@
"$ref": "../../type/entityReference.json#/definitions/entityReferenceList" "$ref": "../../type/entityReference.json#/definitions/entityReferenceList"
}, },
"owns" : { "owns" : {
"description": "Entities owned by the user.", "description": "List of entities owned by the user.",
"$ref": "../../type/entityReference.json#/definitions/entityReferenceList" "$ref": "../../type/entityReference.json#/definitions/entityReferenceList"
}, },
"follows" : { "follows" : {
"description": "Entities followed by the user.", "description": "List of entities followed by the user.",
"$ref": "../../type/entityReference.json#/definitions/entityReferenceList" "$ref": "../../type/entityReference.json#/definitions/entityReferenceList"
} }
}, },

View File

@ -18,7 +18,7 @@
"maxLength": 127 "maxLength": 127
}, },
"entityLink": { "entityLink": {
"description": "Link to an entity or field of an entity of format <#E/{enties}/{entityName}/{field}/{fieldValue}.", "description": "Link to an entity or field of an entity of format `<#E/{enties}/{entityName}/{field}/{fieldValue}`.",
"type": "string", "type": "string",
"pattern": "^<#E/\\S+/\\S+>$" "pattern": "^<#E/\\S+/\\S+>$"
}, },

View File

@ -20,7 +20,7 @@
"$ref": "basic.json#/definitions/uuid" "$ref": "basic.json#/definitions/uuid"
}, },
"type": { "type": {
"description": "Entity type/class name - Examples: database, table, metrics, redshift, mysql, bigquery, snowflake...", "description": "Entity type/class name - Examples: `database`, `table`, `metrics`, `redshift`, `mysql`, `bigquery`, `snowflake`...",
"type": "string" "type": "string"
}, },
"name": { "name": {

View File

@ -39,9 +39,11 @@
"description":"JDBC connection information", "description":"JDBC connection information",
"properties": { "properties": {
"driverClass": { "driverClass": {
"description": "JDBC driver class",
"$ref" : "#/definitions/driverClass" "$ref" : "#/definitions/driverClass"
}, },
"connectionUrl": { "connectionUrl": {
"description": "JDBC connection URL",
"$ref" : "#/definitions/connectionUrl" "$ref" : "#/definitions/connectionUrl"
}, },
"userName": { "userName": {

View File

@ -11,7 +11,7 @@
"$ref": "basic.json#/definitions/dateTime" "$ref": "basic.json#/definitions/dateTime"
}, },
"repeatFrequency": { "repeatFrequency": {
"description": "Repeat frequency in ISO 8601 duration format.", "description": "Repeat frequency in ISO 8601 duration format. Example - 'P23DT23H'",
"$ref": "basic.json#/definitions/duration" "$ref": "basic.json#/definitions/duration"
} }
} }