From f0a648cc89cb870a4053d47a06fe2a4a54cc3f1c Mon Sep 17 00:00:00 2001 From: WeberLaurent Date: Thu, 6 Feb 2020 10:23:01 +0100 Subject: Rework tosca converter New code to convert the Policy Tosca Yaml to Json Schema for the Clamp UI Issue-ID: CLAMP-253 Change-Id: I10c1d3d81c5feae402773de94bd88c190ec68645 Signed-off-by: WeberLaurent --- src/main/resources/application.properties | 3 +++ src/main/resources/clds/tosca_update/templates.properties | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/main/resources/clds/tosca_update/templates.properties (limited to 'src/main/resources') diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 4422156fd..695319d5b 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -220,3 +220,6 @@ clamp.config.cadi.oauthIntrospectUrll=https://AAF_LOCATE_URL/locate/onap.org.osa clamp.config.cadi.aafEnv=DEV clamp.config.cadi.aafUrl=https://AAF_LOCATE_URL/onap.org.osaaf.aaf.service:2.1 clamp.config.cadi.cadiX509Issuers=CN=intermediateCA_1, OU=OSAAF, O=ONAP, C=US:CN=intermediateCA_7, OU=OSAAF, O=ONAP, C=US:CN=intermediateCA_9, OU=OSAAF, O=ONAP, C=US + +## Tosca converter +clamp.config.tosca.converter.templates=classpath:/clds/tosca_updates/templates.properties diff --git a/src/main/resources/clds/tosca_update/templates.properties b/src/main/resources/clds/tosca_update/templates.properties new file mode 100644 index 000000000..5da239b1f --- /dev/null +++ b/src/main/resources/clds/tosca_update/templates.properties @@ -0,0 +1,15 @@ +#Numeric types +integer=type,description,title,deprecated,default,enum,const,multipleOf,maximum,exclusiveMaximum,minimum,exclusiveMinimum +number=type,description,title,deprecated,default,enum,const,multipleOf,maximum,exclusiveMaximum,minimum,exclusiveMinimum +range=type,description,title,deprecated,default,enum,const,multipleOf,maximum,exclusiveMaximum,minimum,exclusiveMinimum +# +boolean=type,description,title,deprecated,default,enum,const,readOnly,writeOnly +#String types +string=type,description,title,deprecated,default,enum,const,minLength,maxLength,pattern,format +timestamp=type,description,title,deprecated,default,enum,const,minLength,maxLength,pattern,format +scalar-unit.time=type,description,title,deprecated,default,enum,const,minLength,maxLength,pattern,format +scalar-unit.frequency=type,description,title,deprecated,default,enum,const,minLength,maxLength,pattern,format +scalar-unit.size=type,description,title,deprecated,default,enum,const,minLength,maxLength,pattern,format +#Complex types +array=type,description,title,deprecated,default,enum,const,minItems,maxItems,uniqueItems,minContains,maxContains +object=type,description,title,deprecated,default,enum,const,properties,minProperties,maxProperties,required,dependentRequired,dependencies,readOnly,writeOnly -- cgit 1.2.3-korg