Commit 6b6b4cd9 authored by Jaden's avatar Jaden Committed by Samuel GAIST

[schema] Move df-specific types into df schema

Complex numbers as parameter types are only supported in
dataformats

See #74
parent fee7ca1b
...@@ -23,8 +23,6 @@ ...@@ -23,8 +23,6 @@
"uint64", "uint64",
"float32", "float32",
"float64", "float64",
"complex64",
"complex128",
"bool", "bool",
"string" "string"
] ]
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
"^[a-zA-Z_][a-zA-Z0-9_-]*$": { "^[a-zA-Z_][a-zA-Z0-9_-]*$": {
"oneOf": [ "oneOf": [
{ "$ref": "../common/1.json#/definitions/basetype" }, { "$ref": "../common/1.json#/definitions/basetype" },
{ "$ref": "#/definitions/complextypes" },
{ "$ref": "#/definitions/array1d" }, { "$ref": "#/definitions/array1d" },
{ "$ref": "#/definitions/array2d" }, { "$ref": "#/definitions/array2d" },
{ "$ref": "#/definitions/array3d" }, { "$ref": "#/definitions/array3d" },
...@@ -29,6 +30,13 @@ ...@@ -29,6 +30,13 @@
"additionalProperties": false, "additionalProperties": false,
"definitions": { "definitions": {
"complextypes": {
"type": "string",
"enum": [
"complex64",
"complex128"
]
},
"array1d": { "array1d": {
"type": "array", "type": "array",
......
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