summaryrefslogtreecommitdiffstats
path: root/catalog-ui
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2023-06-28 15:34:47 +0100
committerVasyl Razinkov <vasyl.razinkov@est.tech>2023-06-29 10:31:23 +0000
commit2e4af1e0c0611851f450b2e215485064f6795958 (patch)
tree2c766e17841c24dc40faa98ff260234ea2cfa80a /catalog-ui
parent6d4057b032a30daa8388f9f1a323eae1581eb91c (diff)
Implement YAML Validator
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I0365d4160984e4d68906959fb801ec7da5449b77 Issue-ID: SDC-4537
Diffstat (limited to 'catalog-ui')
-rw-r--r--catalog-ui/src/app/utils/service-data-type-reader.ts11
1 files changed, 6 insertions, 5 deletions
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 = <String>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
+}