Created
June 9, 2016 12:07
-
-
Save llaine/cf5522758a07f98da05bf4e842bf1526 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| [ | |
| { | |
| "required":true, | |
| "input_name":"address", | |
| "input_type":"text_input", | |
| "validations":{ | |
| "max":100, | |
| "min":2 | |
| } | |
| }, | |
| { | |
| "required":true, | |
| "input_name":"city", | |
| "input_type":"text_input", | |
| "validations":{ | |
| "max":100, | |
| "min":2 | |
| } | |
| } | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@llaine
looks like schema.
a bit a weird design. but interesting problem.
is the list of input_name types known and can they be modeled as separate structs?
otherwise its ok to just parse it as
stringAbove.deserialize!InputField[]and