Skip to content

Commit

Permalink
Merge pull request #3432 from jspsych/fix-complex-data
Browse files Browse the repository at this point in the history
fix COMPLEX type metadata syntax
  • Loading branch information
jodeleeuw authored Nov 13, 2024
2 parents 8ae8ac3 + 484300c commit b2b104b
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 8 deletions.
9 changes: 9 additions & 0 deletions .changeset/ten-walls-double.md
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions packages/plugin-animation/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const info = <const>{
animation_sequence: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
stimulus: {
type: ParameterType.STRING,
},
Expand All @@ -83,7 +83,7 @@ const info = <const>{
response: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
stimulus: {
type: ParameterType.STRING,
},
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-free-sort/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const info = <const>{
moves: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
src: {
type: ParameterType.STRING,
},
Expand All @@ -150,7 +150,7 @@ const info = <const>{
final_locations: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
src: {
type: ParameterType.STRING,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-instructions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const info = <const>{
view_history: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
page_index: {
type: ParameterType.INT,
},
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-maxdiff/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand All @@ -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,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-sketchpad/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ const info = <const>{
strokes: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
action: {
type: ParameterType.STRING,
},
Expand Down

0 comments on commit b2b104b

Please sign in to comment.