diff options
author | WeberLaurent <weberlaurent23@gmail.com> | 2020-02-06 10:23:01 +0100 |
---|---|---|
committer | sebdet <sebastien.determe@intl.att.com> | 2020-03-03 12:41:30 -0800 |
commit | f0a648cc89cb870a4053d47a06fe2a4a54cc3f1c (patch) | |
tree | 73943b8d2e363ff74393f60160f3d2d23f3c86ff /src/main/resources | |
parent | fb445e11abb3ad59e5e2305b023422e2b4796989 (diff) |
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 <weberlaurent23@gmail.com>
Diffstat (limited to 'src/main/resources')
-rw-r--r-- | src/main/resources/application.properties | 3 | ||||
-rw-r--r-- | src/main/resources/clds/tosca_update/templates.properties | 15 |
2 files changed, 18 insertions, 0 deletions
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
|