Fix datamodel generate issue for 3.8 (#11934)

This commit is contained in:
Mayur Singal 2023-06-09 12:33:21 +05:30 committed by GitHub
parent caabe89f9c
commit 175093d93e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,31 +1,31 @@
{ {
"$id": "https://open-metadata.org/security/credentials/gcpCredentials.json", "$id": "https://open-metadata.org/security/credentials/gcpCredentials.json",
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
"title": "GCPCredentials", "title": "GCPCredentials",
"description": "GCP credentials configs.", "description": "GCP credentials configs.",
"type": "object", "type": "object",
"javaType": "org.openmetadata.schema.security.credentials.GCPCredentials", "javaType": "org.openmetadata.schema.security.credentials.GCPCredentials",
"definitions": { "definitions": {
"gcpCredentialsPath": { "gcpCredentialsPath": {
"title": "GCP Credentials Path", "title": "GCP Credentials Path",
"description": "Pass the path of file containing the GCP credentials info", "description": "Pass the path of file containing the GCP credentials info",
"type": "string" "type": "string"
} }
}, },
"properties": { "properties": {
"gcpConfig": { "gcpConfig": {
"title": "GCP Credentials Configuration", "title": "GCP Credentials Configuration",
"description": "We support two ways of authenticating to GCP i.e via GCP Credentials Values or GCP Credentials Path", "description": "We support two ways of authenticating to GCP i.e via GCP Credentials Values or GCP Credentials Path",
"oneOf": [ "oneOf": [
{ {
"$ref": "gcpValues.json" "$ref": "gcpValues.json"
}, },
{ {
"$ref": "#/definitions/gcpCredentialsPath" "$ref": "#/definitions/gcpCredentialsPath"
} }
] ]
} }
}, },
"additionalProperties": false, "additionalProperties": false,
"required": ["gcpConfig"] "required": ["gcpConfig"]
} }