-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not so minor adjustments to JSON #1
base: json-standard
Are you sure you want to change the base?
Conversation
Also updated the question types to use underscores, and changed the booleans to proper booleans instead of strings. |
Oh right, I guess I did use objen now that you mention it - that's an online JSON formatter here: http://www.objgen.com/json (and I just saved the input format to a file for reference) |
Updated the objgen file to print out the same JSON I created. |
I think the choices could also be simplified to a simple key -> value, for example, with age:
which produces
instead of this style:
which produces
|
I also removed the "self-identify" choices from the choice lists because that should be coming from the |
Initial implementation with these changes in D7: https://cgit.drupalcode.org/open_demographics/tree/ Needs a lot of work still, but it's a strong start, I think. |
We should probably do the same thing with the |
I think does_not_apply may not make sense here - we'll already be able to control whether fields are required are not on the implementation level - so it seems like that should be removed. Agree with inverting the the prefer_not_to_answer logic in the same way you changed the self-identify property. |
Looks good to me. |
I don't know how to update the .obgjen file reliably - I made the changes by writing a script that recurses over the data and changes the keys. Simple find/replace changes some of the values, too.
Any ideas?