mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
Merge pull request #3432 from jspsych/fix-complex-data
fix COMPLEX type metadata syntax
This commit is contained in:
commit
b2b104bf20
9
.changeset/ten-walls-double.md
Normal file
9
.changeset/ten-walls-double.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
"@jspsych/plugin-animation": patch
|
||||||
|
"@jspsych/plugin-free-sort": patch
|
||||||
|
"@jspsych/plugin-instructions": patch
|
||||||
|
"@jspsych/plugin-maxdiff": patch
|
||||||
|
"@jspsych/plugin-sketchpad": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix data values with `COMPLEX` type to use proper metadata syntax
|
@ -65,7 +65,7 @@ const info = <const>{
|
|||||||
animation_sequence: {
|
animation_sequence: {
|
||||||
type: ParameterType.COMPLEX,
|
type: ParameterType.COMPLEX,
|
||||||
array: true,
|
array: true,
|
||||||
parameters: {
|
nested: {
|
||||||
stimulus: {
|
stimulus: {
|
||||||
type: ParameterType.STRING,
|
type: ParameterType.STRING,
|
||||||
},
|
},
|
||||||
@ -83,7 +83,7 @@ const info = <const>{
|
|||||||
response: {
|
response: {
|
||||||
type: ParameterType.COMPLEX,
|
type: ParameterType.COMPLEX,
|
||||||
array: true,
|
array: true,
|
||||||
parameters: {
|
nested: {
|
||||||
stimulus: {
|
stimulus: {
|
||||||
type: ParameterType.STRING,
|
type: ParameterType.STRING,
|
||||||
},
|
},
|
||||||
|
@ -134,7 +134,7 @@ const info = <const>{
|
|||||||
moves: {
|
moves: {
|
||||||
type: ParameterType.COMPLEX,
|
type: ParameterType.COMPLEX,
|
||||||
array: true,
|
array: true,
|
||||||
parameters: {
|
nested: {
|
||||||
src: {
|
src: {
|
||||||
type: ParameterType.STRING,
|
type: ParameterType.STRING,
|
||||||
},
|
},
|
||||||
@ -150,7 +150,7 @@ const info = <const>{
|
|||||||
final_locations: {
|
final_locations: {
|
||||||
type: ParameterType.COMPLEX,
|
type: ParameterType.COMPLEX,
|
||||||
array: true,
|
array: true,
|
||||||
parameters: {
|
nested: {
|
||||||
src: {
|
src: {
|
||||||
type: ParameterType.STRING,
|
type: ParameterType.STRING,
|
||||||
},
|
},
|
||||||
|
@ -78,7 +78,7 @@ const info = <const>{
|
|||||||
view_history: {
|
view_history: {
|
||||||
type: ParameterType.COMPLEX,
|
type: ParameterType.COMPLEX,
|
||||||
array: true,
|
array: true,
|
||||||
parameters: {
|
nested: {
|
||||||
page_index: {
|
page_index: {
|
||||||
type: ParameterType.INT,
|
type: ParameterType.INT,
|
||||||
},
|
},
|
||||||
|
@ -52,7 +52,7 @@ const info = <const>{
|
|||||||
* columns. This will be encoded as a JSON string when data is saved using the `.json()` or `.csv()` functions. */
|
* columns. This will be encoded as a JSON string when data is saved using the `.json()` or `.csv()` functions. */
|
||||||
labels: {
|
labels: {
|
||||||
type: ParameterType.COMPLEX,
|
type: ParameterType.COMPLEX,
|
||||||
parameters: {
|
nested: {
|
||||||
left: {
|
left: {
|
||||||
type: ParameterType.STRING,
|
type: ParameterType.STRING,
|
||||||
},
|
},
|
||||||
@ -65,7 +65,7 @@ const info = <const>{
|
|||||||
* This will be encoded as a JSON string when data is saved using the `.json()` or `.csv()` functions. */
|
* This will be encoded as a JSON string when data is saved using the `.json()` or `.csv()` functions. */
|
||||||
response: {
|
response: {
|
||||||
type: ParameterType.COMPLEX,
|
type: ParameterType.COMPLEX,
|
||||||
parameters: {
|
nested: {
|
||||||
left: {
|
left: {
|
||||||
type: ParameterType.STRING,
|
type: ParameterType.STRING,
|
||||||
},
|
},
|
||||||
|
@ -232,7 +232,7 @@ const info = <const>{
|
|||||||
strokes: {
|
strokes: {
|
||||||
type: ParameterType.COMPLEX,
|
type: ParameterType.COMPLEX,
|
||||||
array: true,
|
array: true,
|
||||||
parameters: {
|
nested: {
|
||||||
action: {
|
action: {
|
||||||
type: ParameterType.STRING,
|
type: ParameterType.STRING,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user