diff --git a/oas/location_schema_v0.1.0_oas2.json b/oas/location_schema_v0.1.0_oas2.json deleted file mode 100644 index 7842b56..0000000 --- a/oas/location_schema_v0.1.0_oas2.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "unitOfParameter": { - "type": "object", - "required": [ - "unit" - ], - "properties": { - "unit": { - "type": "string", - "description": "Unit of the value, formatted as defined in the [Modelica Specification v3.4](https://www.modelica.org/documents/ModelicaSpec34.pdf), Chapter 19", - } - } - }, - "Location": { - "type": "object", - "description": "A location on earth expressed as latitude, longitude and elevation", - "required": [ - "latitude", - "longitude" - ], - "properties": { - "latitude": { - "type": "object", - "description": "Latitude in [decimal degrees](https://en.wikipedia.org/wiki/Decimal_degrees)", - "required": [ - "value" - ], - "allOf": [ - { "$ref": "#/unitOfParameter" }, - { - "type": "object", - "required": [ "value" ], - "properties": { - "unit": { - "pattern": "^deg$" - }, - "value": { - "type": "number", - "format": "double", - "minimum": -90, - "maximum": 90, - "example": 49.2553 - } - } - } - ] - }, - "longitude": { - "type": "object", - "description": "Longitude in [decimal degrees](https://en.wikipedia.org/wiki/Decimal_degrees)", - "required": [ - "value" - ], - "allOf": [ - { "$ref": "#/unitOfParameter" }, - { - "type": "object", - "required": [ "value" ], - "properties": { - "unit": { - "pattern": "^deg$" - }, - "value": { - "type": "number", - "format": "double", - "minimum": -180, - "maximum": 180, - "example": 7.0405 - } - } - } - ] - }, - "elevation": { - "type": "object", - "description": "Height above sea level (elevation) in metres", - "required": [ - "value" - ], - "allOf": [ - { "$ref": "#/unitOfParameter" }, - { - "type": "object", - "required": [ "value" ], - "properties": { - "unit": { - "pattern": "^m$" - }, - "value": { - "type": "number", - "format": "double", - "minimum": -424, - "maximum": 8848, - "example": 273 - } - } - } - ] - } - }, - "example": { - "latitude": { - "unit": "deg", - "value": 49.2553 - }, - "longitude": { - "unit": "deg", - "value": 7.0405 - }, - "elevation": { - "unit": "m", - "value": 273 - } - } - } -} diff --git a/oas/schema_v0.1.0_oas2.json b/oas/schema_v0.1.0_oas2.json deleted file mode 100644 index 47249c3..0000000 --- a/oas/schema_v0.1.0_oas2.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "ProblemDetail": { - "type": "object", - "description": "This schema attempts to formalize the guidelines on how to convey details about problems of HTTP API interactions by means of a _problem detail object_, as defined in [RFC 7807](https://tools.ietf.org/html/rfc7807). The descriptions of the individual members of such objects are copied verbatim from the RFC-document.", - "properties": { - "type": { - "type": "string", - "format": "uri", - "description": "A URI reference ([RFC3986](https://tools.ietf.org/html/rfc3986)) that identifies the problem type" - }, - "title": { - "type": "string", - "description": "A short, human-readable summary of the problem type" - }, - "status": { - "type": "integer", - "description": "The HTTP status code ([RFC7231](https://tools.ietf.org/html/rfc7231#section-6), Section 6) generated by the origin server for this occurrence of the problem" - }, - "detail": { - "type": "string", - "description": "A human-readable explanation specific to this occurrence of the problem" - }, - "instance": { - "type": "string", - "format": "uri", - "description": "A URI reference that identifies the specific occurrence of the problem" - } - } - } -} diff --git a/oas/schema_v1.3.0-oas2.json b/oas/schema_v1.3.0-oas2.json deleted file mode 100644 index e8de1cb..0000000 --- a/oas/schema_v1.3.0-oas2.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "Timeseries": { - "type": "object", - "required": [ - "unit", - "timeseries" - ], - "properties": { - "label": { - "type": "string", - "description": "Label of the timeseries" - }, - "unit": { - "type": "string", - "description": "Unit of the data, formatted as defined in the [Modelica Specification v3.4](https://www.modelica.org/documents/ModelicaSpec34.pdf), Chapter 19" - }, - "timeseries": { - "type": "array", - "items": { - "type": "object", - "required": [ - "timestamp", - "value" - ], - "properties": { - "timestamp": { - "type": "integer", - "format": "int64", - "minimum": 0, - "description": "The timestamp (as [unix timestamp](https://en.wikipedia.org/wiki/Unix_time) in ms resolution) of the timeseries to which the value refers to", - "example": 1526551590000 - }, - "value": { - "type": "number", - "format": "double", - "description": "The value of the timeseries at the timestamp (unit as specified above)" - } - } - } - } - } - } -} diff --git a/oas/simaas_oas3.json b/oas/simaas_oas3.json index 983d2a1..4db3029 100644 --- a/oas/simaas_oas3.json +++ b/oas/simaas_oas3.json @@ -425,7 +425,7 @@ "result": { "type": "array", "items": { - "$ref": "./schema_v1.3.0-oas2.json#/Timeseries" + "$ref": "https://raw.githubusercontent.com/UdSAES/designetz_schemata/dev/schemata/timeseries/schema_v1.3.0-oas2.json#/Timeseries" } } } @@ -498,7 +498,7 @@ } }, "ProblemDetail": { - "$ref": "./schema_v0.1.0_oas2.json#/ProblemDetail" + "$ref": "https://raw.githubusercontent.com/UdSAES/designetz_schemata/dev/schemata/problem-detail/schema_v0.1.0_oas2.json#/ProblemDetail" }, "ModelInstanceID": { "description": "The UUID of the model instance to be simulated", @@ -519,7 +519,7 @@ "description": "The parameter set that defines the model instance" }, { - "$ref": "./location_schema_v0.1.0_oas2.json#/Location" + "$ref": "https://raw.githubusercontent.com/UdSAES/designetz_schemata/dev/schemata/location/schema_v0.1.0_oas2.json#/Location" }, { "$ref": "./schema_pv_plant_oas2.json#/PVplant" @@ -598,7 +598,7 @@ { "allOf": [ { - "$ref": "./schema_v1.3.0-oas2.json#/Timeseries" + "$ref": "https://raw.githubusercontent.com/UdSAES/designetz_schemata/dev/schemata/timeseries/schema_v1.3.0-oas2.json#/Timeseries" }, { "required": ["label"] @@ -615,7 +615,7 @@ { "allOf": [ { - "$ref": "./schema_v1.3.0-oas2.json#/Timeseries" + "$ref": "https://raw.githubusercontent.com/UdSAES/designetz_schemata/dev/schemata/timeseries/schema_v1.3.0-oas2.json#/Timeseries" }, { "required": ["label"] @@ -632,7 +632,7 @@ { "allOf": [ { - "$ref": "./schema_v1.3.0-oas2.json#/Timeseries" + "$ref": "https://raw.githubusercontent.com/UdSAES/designetz_schemata/dev/schemata/timeseries/schema_v1.3.0-oas2.json#/Timeseries" }, { "required": ["label"] @@ -649,7 +649,7 @@ { "allOf": [ { - "$ref": "./schema_v1.3.0-oas2.json#/Timeseries" + "$ref": "https://raw.githubusercontent.com/UdSAES/designetz_schemata/dev/schemata/timeseries/schema_v1.3.0-oas2.json#/Timeseries" }, { "required": ["label"]