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

moved shema files

parent 1fdf0eb0
......@@ -128,7 +128,7 @@
<artifactId>commons-io</artifactId>
<version>2.6</version>
<type>jar</type>
</dependency>
</dependency>
</dependencies>
......@@ -148,21 +148,25 @@
</executions>
</plugin>
<plugin>
<groupId>org.jsonschema2pojo</groupId>
<artifactId>jsonschema2pojo-maven-plugin</artifactId>
<version>1.0.1</version>
<configuration>
<sourceDirectory>${basedir}/../openAPI/schema</sourceDirectory>
<targetPackage>nl.uva.sne.drip.model</targetPackage>
</configuration>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>4.2.2</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${basedir}/../openAPI/schema</inputSpec>
<generatorName>java</generatorName>
<configOptions>
<sourceFolder>src/gen/java/main</sourceFolder>
</configOptions>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
......@@ -4,4 +4,4 @@ CloudsStormSubTopology:
VMs:
type: array
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:
topologies:
type: array
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 @@
node_templates:
type: object
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:
type: object
additionalProperties:
......
......@@ -8,7 +8,7 @@
template_name:
type: "string"
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:
type: "string"
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