Skip to content

Commit

Permalink
Revert "Inlined schema for timeseries instead of referencing it"
Browse files Browse the repository at this point in the history
This reverts commit 86bb3da.
It also breaks the ability to use dredd unless the OAS is dereferenced
first! Compare apiaryio/dredd#676
  • Loading branch information
MoritzStueber committed Nov 29, 2018
1 parent aa4bc60 commit 4dd68b6
Showing 1 changed file with 4 additions and 74 deletions.
78 changes: 4 additions & 74 deletions specifications/simaas_oas2.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,43 +119,8 @@
"input_timeseries": {
"type": "array",
"items": {
"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",
"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"
},
"value": {
"type": "number",
"description": "The value of the timeseries at the timestamp (unit as specified above)"
}
}
}
}
}
}
"$ref": "https://raw.githubusercontent.com/UdSAES/designetz_schemata/master/schemata/timeseries/schema_v1.2.0-oas2.json#/Timeseries"
}
}
},
"parameters": {
Expand Down Expand Up @@ -205,43 +170,8 @@
"result": {
"type": "array",
"items": {
"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",
"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"
},
"value": {
"type": "number",
"description": "The value of the timeseries at the timestamp (unit as specified above)"
}
}
}
}
}
}
"$ref": "https://raw.githubusercontent.com/UdSAES/designetz_schemata/master/schemata/timeseries/schema_v1.2.0-oas2.json#/Timeseries"
}
}
}
},
Expand Down

0 comments on commit 4dd68b6

Please sign in to comment.