From 2e4af1e0c0611851f450b2e215485064f6795958 Mon Sep 17 00:00:00 2001 From: vasraz Date: Wed, 28 Jun 2023 15:34:47 +0100 Subject: Implement YAML Validator Signed-off-by: Vasyl Razinkov Change-Id: I0365d4160984e4d68906959fb801ec7da5449b77 Issue-ID: SDC-4537 --- catalog-ui/src/app/utils/service-data-type-reader.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'catalog-ui') diff --git a/catalog-ui/src/app/utils/service-data-type-reader.ts b/catalog-ui/src/app/utils/service-data-type-reader.ts index 9686f3d40e..dbb550894a 100644 --- a/catalog-ui/src/app/utils/service-data-type-reader.ts +++ b/catalog-ui/src/app/utils/service-data-type-reader.ts @@ -35,10 +35,11 @@ export class ServiceDataTypeReader { const result = reader.result; const loadedContent = load(result); console.log("Readed content: " + loadedContent); - this.readName(this.getDataType(loadedContent)); - this.readDerivedFrom(this.getDataType(loadedContent)); - this.readDescription(this.getDataType(loadedContent)); - this.readProperties(this.getDataType(loadedContent)); + const dataType = this.getDataType(loadedContent); + this.readName(dataType); + this.readDerivedFrom(dataType); + this.readDescription(dataType); + this.readProperties(dataType); resolve(this.serviceDataType); } catch (error) { reject(error); @@ -201,4 +202,4 @@ export class ServiceDataTypeReader { value:constraintValue } } -} \ No newline at end of file +} -- cgit 1.2.3-korg