From 21a30af25c167d748bd3378fc8ab785fc256eb15 Mon Sep 17 00:00:00 2001 From: Onkar Ravgan Date: Fri, 24 Feb 2023 22:17:38 +0530 Subject: [PATCH] Added uri in jsonchema for aws credentials (#10315) * Added uri in jsonchema * fixed sample data --- ingestion/examples/sample_data/glue/database_service.json | 2 +- .../json/schema/security/credentials/awsCredentials.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ingestion/examples/sample_data/glue/database_service.json b/ingestion/examples/sample_data/glue/database_service.json index 385ea94d639..4c8a25bdd4d 100644 --- a/ingestion/examples/sample_data/glue/database_service.json +++ b/ingestion/examples/sample_data/glue/database_service.json @@ -8,7 +8,7 @@ "awsAccessKeyId": "aws accessKey id", "awsSecretAccessKey": "aws secret access key", "awsRegion": "aws region", - "endPointURL": "https://glue..amazonaws.com/" + "endPointURL": "https://glue.region_name.amazonaws.com/" }, "storageServiceName": "glue_s3" } diff --git a/openmetadata-spec/src/main/resources/json/schema/security/credentials/awsCredentials.json b/openmetadata-spec/src/main/resources/json/schema/security/credentials/awsCredentials.json index acde386ec50..985c900827d 100644 --- a/openmetadata-spec/src/main/resources/json/schema/security/credentials/awsCredentials.json +++ b/openmetadata-spec/src/main/resources/json/schema/security/credentials/awsCredentials.json @@ -30,7 +30,8 @@ "endPointURL": { "title": "Endpoint URL", "description": "EndPoint URL for the AWS", - "type": "string" + "type": "string", + "format": "uri" } }, "additionalProperties": false,