-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bug where I accidentally shredded all the testdata
- Loading branch information
Showing
13 changed files
with
94 additions
and
5 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
types/testdata/json/TestPresetForm_JSONMarshalling/blank_input_object/input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"v": 1, | ||
"fields": [{ | ||
"title": "Hello World!", | ||
"required": true, | ||
"input": {}, | ||
"map_to": [] | ||
}] | ||
} |
4 changes: 4 additions & 0 deletions
4
types/testdata/json/TestPresetForm_JSONMarshalling/check_marshal_also_uses_schema/input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"v": 1, | ||
"fields": [] | ||
} |
4 changes: 4 additions & 0 deletions
4
types/testdata/json/TestPresetForm_JSONMarshalling/fields_empty_object/input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"v": 1, | ||
"fields": [{}] | ||
} |
13 changes: 13 additions & 0 deletions
13
types/testdata/json/TestPresetForm_JSONMarshalling/invalid_autogen_input_object/input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"v": 1, | ||
"fields": [{ | ||
"title": "Hello World!", | ||
"required": true, | ||
"input": { | ||
"type": "string", | ||
"default": "Hello World!", | ||
"autogen": "xD" | ||
}, | ||
"map_to": [] | ||
}] | ||
} |
12 changes: 12 additions & 0 deletions
12
types/testdata/json/TestPresetForm_JSONMarshalling/invalid_field_map_to/input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"v": 1, | ||
"fields": [{ | ||
"title": "Hello World!", | ||
"required": true, | ||
"input": { | ||
"type": "string", | ||
"default": "Hello World!" | ||
}, | ||
"map_to": [{}] | ||
}] | ||
} |
4 changes: 4 additions & 0 deletions
4
types/testdata/json/TestPresetForm_JSONMarshalling/invalid_version_unmarshal/input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"v": 100, | ||
"fields": [] | ||
} |
1 change: 1 addition & 0 deletions
1
types/testdata/json/TestPresetForm_JSONMarshalling/root_fields_missing/input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
18 changes: 18 additions & 0 deletions
18
types/testdata/json/TestPresetForm_JSONMarshalling/valid/input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"v": 1, | ||
"fields": [{ | ||
"title": "Hello World!", | ||
"required": true, | ||
"input": { | ||
"type": "string", | ||
"default": "Hello World!", | ||
"autogen": "PROJECT_NAMESPACE" | ||
}, | ||
"map_to": [ | ||
{ | ||
"type": "env", | ||
"key": "HELLO_WORLD" | ||
} | ||
] | ||
}] | ||
} |
18 changes: 18 additions & 0 deletions
18
types/testdata/json/TestPresetForm_JSONMarshalling/valid/output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"v": 1, | ||
"fields": [{ | ||
"title": "Hello World!", | ||
"required": true, | ||
"input": { | ||
"type": "string", | ||
"default": "Hello World!", | ||
"autogen": "PROJECT_NAMESPACE" | ||
}, | ||
"map_to": [ | ||
{ | ||
"type": "env", | ||
"key": "HELLO_WORLD" | ||
} | ||
] | ||
}] | ||
} |
4 changes: 4 additions & 0 deletions
4
types/testdata/json/TestPresetForm_JSONMarshalling/version_defaults/input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"v": 1, | ||
"fields": [] | ||
} |
4 changes: 4 additions & 0 deletions
4
types/testdata/json/TestPresetForm_JSONMarshalling/version_defaults/output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"v": 1, | ||
"fields": [] | ||
} |
3 changes: 3 additions & 0 deletions
3
types/testdata/json/TestPresetForm_JSONMarshalling/version_wrong/input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"fields": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters