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