Commit 2598b4a0 authored by Spiros Koulouzis's avatar Spiros Koulouzis

moved shema files

parent 1fdf0eb0
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
<artifactId>commons-io</artifactId> <artifactId>commons-io</artifactId>
<version>2.6</version> <version>2.6</version>
<type>jar</type> <type>jar</type>
</dependency> </dependency>
</dependencies> </dependencies>
...@@ -148,21 +148,25 @@ ...@@ -148,21 +148,25 @@
</executions> </executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.jsonschema2pojo</groupId> <groupId>org.openapitools</groupId>
<artifactId>jsonschema2pojo-maven-plugin</artifactId> <artifactId>openapi-generator-maven-plugin</artifactId>
<version>1.0.1</version> <version>4.2.2</version>
<configuration> <executions>
<sourceDirectory>${basedir}/../openAPI/schema</sourceDirectory> <execution>
<targetPackage>nl.uva.sne.drip.model</targetPackage> <goals>
</configuration> <goal>generate</goal>
<executions> </goals>
<execution> <configuration>
<goals> <inputSpec>${basedir}/../openAPI/schema</inputSpec>
<goal>generate</goal> <generatorName>java</generatorName>
</goals> <configOptions>
</execution> <sourceFolder>src/gen/java/main</sourceFolder>
</executions> </configOptions>
</plugin> </configuration>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
</project> </project>
\ No newline at end of file
...@@ -4,4 +4,4 @@ CloudsStormSubTopology: ...@@ -4,4 +4,4 @@ CloudsStormSubTopology:
VMs: VMs:
type: array type: array
items: items:
$ref: 'https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/openAPI/CloudsStormVM.yml#/CloudsStormVM' $ref: 'https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudsStormVM.yml'
...@@ -8,4 +8,4 @@ CloudsStormTopTopology: ...@@ -8,4 +8,4 @@ CloudsStormTopTopology:
topologies: topologies:
type: array type: array
items: items:
$ref: 'https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/openAPI/CloudsStormSubTopology.yml#/CloudsStormSubTopology' $ref: 'https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudsStormSubTopology.yml#/CloudsStormSubTopology'
{
"definitions": {
"docsoasisopenorgtoscans201112:OutputParameters": {
"required": [
"OutputParameter"
],
"type": "object",
"properties": {
"OutputParameter": {
"type": "array",
"items": {
"$ref": "#/definitions/docsoasisopenorgtoscans201112:tParameter"
},
"minItems": 1
}
}
},
"docsoasisopenorgtoscans201112:tParameter": {
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"required": {
"$ref": "#/definitions/docsoasisopenorgtoscans201112:tBoolean"
}
},
"required": [
"name",
"type"
],
"type": "object"
},
"lang": {
"type": "string"
},
"space": {
"enum": [
"default",
"preserve"
],
"type": "string"
}
},
"$ref": "#/definitions/docsoasisopenorgtoscans201112:OutputParameters"
}
---
definitions:
Output:
properties:
name:
type: string
type:
type: string
description:
type: string
required:
type: boolean
value:
type: $ref: "#/definitions/Value"
Value:
properties:
name:
type: string
{
"definitions": {
"docsoasisopenorgtoscans201112:maxInstances": {
"type": "string"
},
"docsoasisopenorgtoscans201112:upperBound": {
"type": "string"
},
"docsoasisopenorgtoscans201112:tBoolean": {
"enum": [
"yes",
"no"
],
"type": "string"
},
"docsoasisopenorgtoscans201112:tTags": {
"required": [
"Tag"
],
"type": "object",
"properties": {
"Tag": {
"type": "array",
"items": {
"type": "docsoasisopenorgtoscans201112:tTag"
},
"minItems": 1
}
}
},
"docsoasisopenorgtoscans201112:tBoundaryDefinitions": {
"type": "object",
"properties": {
"Properties": {
"type": "docsoasisopenorgtoscans201112:Properties"
},
"PropertyConstraints": {
"$ref": "#/definitions/docsoasisopenorgtoscans201112:PropertyConstraints"
},
"Requirements": {
"$ref": "#/definitions/docsoasisopenorgtoscans201112:Requirements"
},
"Capabilities": {
"$ref": "#/definitions/docsoasisopenorgtoscans201112:Capabilities"
},
"Policies": {
"$ref": "#/definitions/docsoasisopenorgtoscans201112:Policies"
},
"Interfaces": {
"$ref": "#/definitions/docsoasisopenorgtoscans201112:Interfaces"
}
}
},
"docsoasisopenorgtoscans201112:tDeploymentArtifacts": {
"required": [
"DeploymentArtifact"
],
"type": "object",
"properties": {
"DeploymentArtifact": {
"type": "array",
"items": {
"type": "docsoasisopenorgtoscans201112:tDeploymentArtifact"
},
"minItems": 1
}
}
},
"docsoasisopenorgtoscans201112:tImplementationArtifacts": {
"required": [
"ImplementationArtifact"
],
"type": "object",
"properties": {
"ImplementationArtifact": {
"type": "array",
"items": {
"type": "docsoasisopenorgtoscans201112:ImplementationArtifact"
},
"minItems": 1
}
}
},
"docsoasisopenorgtoscans201112:tAppliesTo": {
"required": [
"NodeTypeReference"
],
"type": "object",
"properties": {
"NodeTypeReference": {
"type": "array",
"items": {
"type": "docsoasisopenorgtoscans201112:NodeTypeReference"
},
"minItems": 1
}
}
},
"docsoasisopenorgtoscans201112:tTopologyElementInstanceStates": {
"required": [
"InstanceState"
],
"type": "object",
"properties": {
"InstanceState": {
"type": "array",
"items": {
"type": "docsoasisopenorgtoscans201112:InstanceState"
},
"minItems": 1
}
}
},
"docsoasisopenorgtoscans201112:tRequiredContainerFeatures": {
"required": [
"RequiredContainerFeature"
],
"type": "object",
"properties": {
"RequiredContainerFeature": {
"type": "array",
"items": {
"type": "docsoasisopenorgtoscans201112:tRequiredContainerFeature"
},
"minItems": 1
}
}
},
"docsoasisopenorgtoscans201112:Extensions": {
"required": [
"Extension"
],
"type": "object",
"properties": {
"Extension": {
"type": "array",
"items": {
"type": "docsoasisopenorgtoscans201112:tExtension"
},
"minItems": 1
}
}
},
"docsoasisopenorgtoscans201112:PropertyConstraints": {
"required": [
"PropertyConstraint"
],
"type": "object",
"properties": {
"PropertyConstraint": {
"type": "array",
"items": {
"type": "docsoasisopenorgtoscans201112:tPropertyConstraint"
},
"minItems": 1
}
}
},
"docsoasisopenorgtoscans201112:Requirements": {
"required": [
"Requirement"
],
"type": "object",
"properties": {
"Requirement": {
"type": "array",
"items": {
"type": "docsoasisopenorgtoscans201112:tRequirementRef"
},
"minItems": 1
}
}
},
"docsoasisopenorgtoscans201112:Capabilities": {
"required": [
"Capability"
],
"type": "object",
"properties": {
"Capability": {
"type": "array",
"items": {
"type": "docsoasisopenorgtoscans201112:tCapabilityRef"
},
"minItems": 1
}
}
},
"docsoasisopenorgtoscans201112:Policies": {
"required": [
"Policy"
],
"type": "object",
"properties": {
"Policy": {
"type": "array",
"items": {
"type": "docsoasisopenorgtoscans201112:tPolicy"
},
"minItems": 1
}
}
},
"docsoasisopenorgtoscans201112:Interfaces": {
"required": [
"Interface"
],
"type": "object",
"properties": {
"Interface": {
"type": "array",
"items": {
"type": "docsoasisopenorgtoscans201112:tExportedInterface"
},
"minItems": 1
}
}
},
"lang": {
"type": "string"
},
"space": {
"enum": [
"default",
"preserve"
],
"type": "string"
}
}
}
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
node_templates: node_templates:
type: object type: object
additionalProperties: additionalProperties:
$ref: 'https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/openAPI/TOSCA/NodeTemplate.yml#/NodeTemplate' $ref: 'https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/TOSCA/NodeTemplate.yml#/NodeTemplate'
relationship_templates: relationship_templates:
type: object type: object
additionalProperties: additionalProperties:
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
template_name: template_name:
type: "string" type: "string"
topology_template: topology_template:
$ref: "https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/openAPI/TOSCA/TopologyTemplate.yml#/TopologyTemplate" $ref: "https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/TOSCA/TopologyTemplate.yml#/TopologyTemplate"
template_author: template_author:
type: "string" type: "string"
template_version: template_version:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment