Commit fafb7441 authored by Jaden's avatar Jaden Committed by Samuel GAIST

[schema][algorithm] fix bad "range" keyword for choice params

Fixes failed plotter tests as well
parent 2cc97d37
...@@ -122,11 +122,11 @@ ...@@ -122,11 +122,11 @@
"type": { "$ref": "../common/1.json#/definitions/basetype" }, "type": { "$ref": "../common/1.json#/definitions/basetype" },
"default": true, "default": true,
"description": { "type": "string" }, "description": { "type": "string" },
"range": true "choice": true
}, },
"required": [ "required": [
"type", "type",
"range" "choice"
], ],
"not": { "not": {
"properties": { "properties": {
...@@ -143,12 +143,12 @@ ...@@ -143,12 +143,12 @@
"else": { "properties": { "default": { "type": "number" } } }, "else": { "properties": { "default": { "type": "number" } } },
"if": { "properties": { "type": { "const": "string" } } }, "if": { "properties": { "type": { "const": "string" } } },
"then": { "properties": { "range": { "then": { "properties": { "choice": {
"type": "array", "type": "array",
"items": { "type": "string" }, "items": { "type": "string" },
"minItems": 3 "minItems": 3
} } }, } } },
"else": { "properties": { "range": { "else": { "properties": { "choice": {
"type": "array", "type": "array",
"items": { "type": "number" }, "items": { "type": "number" },
"minItems": 3 "minItems": 3
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
"language": "python", "language": "python",
"parameters": { "parameters": {
"testparam": { "testparam": {
"range": [ "choice": [
0 0
], ],
"type": "float32" "type": "float32"
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
"language": "python", "language": "python",
"parameters": { "parameters": {
"testparam": { "testparam": {
"range": [ "choice": [
0, 0,
1, 1,
"a" "a"
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
"language": "python", "language": "python",
"parameters": { "parameters": {
"testparam": { "testparam": {
"range": [ "choice": [
"a", "a",
"b", "b",
"c" "c"
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
"language": "python", "language": "python",
"parameters": { "parameters": {
"testparam": { "testparam": {
"range": [ "choice": [
0, 0,
1, 1,
2 2
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
"language": "python", "language": "python",
"parameters": { "parameters": {
"testparam": { "testparam": {
"range": [ "choice": [
0, 0,
1, 1,
2 2
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
"language": "python", "language": "python",
"parameters": { "parameters": {
"testparam": { "testparam": {
"range": [ "choice": [
0, 0,
1, 1,
2 2
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
"language": "python", "language": "python",
"parameters": { "parameters": {
"testparam": { "testparam": {
"range": [ "choice": [
"a", "a",
"b", "b",
"c" "c"
......
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