Merge pull request #3432 from jspsych/fix-complex-data

fix COMPLEX type metadata syntax
This commit is contained in:
Josh de Leeuw 2024-11-13 08:32:48 -05:00 committed by GitHub
commit b2b104bf20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 17 additions and 8 deletions

View 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

View File

@ -65,7 +65,7 @@ const info = <const>{
animation_sequence: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
stimulus: {
type: ParameterType.STRING,
},
@ -83,7 +83,7 @@ const info = <const>{
response: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
stimulus: {
type: ParameterType.STRING,
},

View File

@ -134,7 +134,7 @@ const info = <const>{
moves: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
src: {
type: ParameterType.STRING,
},
@ -150,7 +150,7 @@ const info = <const>{
final_locations: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
src: {
type: ParameterType.STRING,
},

View File

@ -78,7 +78,7 @@ const info = <const>{
view_history: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
page_index: {
type: ParameterType.INT,
},

View File

@ -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. */
labels: {
type: ParameterType.COMPLEX,
parameters: {
nested: {
left: {
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. */
response: {
type: ParameterType.COMPLEX,
parameters: {
nested: {
left: {
type: ParameterType.STRING,
},

View File

@ -232,7 +232,7 @@ const info = <const>{
strokes: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
action: {
type: ParameterType.STRING,
},