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: { 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,
}, },

View File

@ -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,
}, },

View File

@ -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,
}, },

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. */ * 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,
}, },

View File

@ -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,
}, },