-
-
Save thewatts/8d7802af38c1a05ff2e4 to your computer and use it in GitHub Desktop.
json validator anyof
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
{ | |
"id":1, | |
"href":"http://www.example.com/api/events/1", | |
"name":"Pray First", | |
"starts_at":"2016-01-27T14:56:35.473Z", | |
"ends_at":"2016-01-28T14:56:35.473Z", | |
"location":{ | |
"id":1, | |
"href":"http://www.example.com/api/campuses/%23%3CBuildingRecord:0x007fbdbdd6a830%3E", | |
"name":"South Building" | |
}, | |
"event_type":"service", | |
"description":"The Best Thing EVAR", | |
"childcare":true, | |
"volunteers":true, | |
"church_wide":true, | |
"featured":true, | |
"audiences":[ | |
], | |
"registered":true, | |
"registerable":true, | |
"registration":{ | |
"id":1, | |
"href":"http://www.example.com/api/events/1/registrations/1", | |
"role":"attendee", | |
"checked_in":false | |
} | |
} |
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
{ | |
"title":"Record - Base", | |
"type":"object", | |
"required":[ | |
"id", | |
"href", | |
"name", | |
"starts_at", | |
"ends_at", | |
"location", | |
"event_type", | |
"description", | |
"childcare", | |
"volunteers", | |
"church_wide", | |
"featured", | |
"audiences", | |
"registered", | |
"registerable", | |
"registration" | |
], | |
"properties":{ | |
"id":{ | |
"type":"integer" | |
}, | |
"href":{ | |
"title":"HREF", | |
"type":"string", | |
"pattern":"(https?:\\/\\/(?:www\\.|(?!www))[^\\s\\.]+\\.[^\\s]{2,}|www\\.[^\\s]+\\.[^\\s]{2,})" | |
}, | |
"name":{ | |
"type":"string" | |
}, | |
"starts_at":{ | |
"type":"string" | |
}, | |
"ends_at":{ | |
"type":"string" | |
}, | |
"location":{ | |
"title":"Record - Base", | |
"type":"object", | |
"required":[ | |
"id", | |
"href", | |
"name" | |
], | |
"properties":{ | |
"id":{ | |
"type":"integer" | |
}, | |
"href":{ | |
"title":"HREF", | |
"type":"string", | |
"pattern":"(https?:\\/\\/(?:www\\.|(?!www))[^\\s\\.]+\\.[^\\s]{2,}|www\\.[^\\s]+\\.[^\\s]{2,})" | |
}, | |
"name":{ | |
"type":"string" | |
} | |
}, | |
"additionalProperties":false | |
}, | |
"event_type":{ | |
"type":"string", | |
"pattern":"generic|tier_1|tier_2|tier_3|service" | |
}, | |
"description":{ | |
"type":"string" | |
}, | |
"childcare":{ | |
"type":"boolean" | |
}, | |
"volunteers":{ | |
"type":"boolean" | |
}, | |
"church_wide":{ | |
"type":"boolean" | |
}, | |
"featured":{ | |
"type":"boolean" | |
}, | |
"audiences":{ | |
"type":"array", | |
"items":{ | |
"title":"Record - Base", | |
"type":"object", | |
"required":[ | |
"id", | |
"href", | |
"name" | |
], | |
"properties":{ | |
"id":{ | |
"type":"integer" | |
}, | |
"href":{ | |
"title":"HREF", | |
"type":"string", | |
"pattern":"(https?:\\/\\/(?:www\\.|(?!www))[^\\s\\.]+\\.[^\\s]{2,}|www\\.[^\\s]+\\.[^\\s]{2,})" | |
}, | |
"name":{ | |
"type":"string" | |
} | |
}, | |
"additionalProperties":false | |
} | |
}, | |
"registered":{ | |
"type":"boolean" | |
}, | |
"registerable":{ | |
"type":"boolean" | |
}, | |
"registration":{ | |
"oneOf":[ | |
{ | |
"type":"null" | |
}, | |
{ | |
"title":"Record - Base", | |
"type":"object", | |
"required":[ | |
"id", | |
"href", | |
"role", | |
"check_in" | |
], | |
"properties":{ | |
"id":{ | |
"type":"integer" | |
}, | |
"href":{ | |
"title":"HREF", | |
"type":"string", | |
"pattern":"(https?:\\/\\/(?:www\\.|(?!www))[^\\s\\.]+\\.[^\\s]{2,}|www\\.[^\\s]+\\.[^\\s]{2,})" | |
}, | |
"role":{ | |
"type":"string", | |
"pattern":"attendee|volunteer|staff" | |
}, | |
"checked_in":{ | |
"type":"boolean" | |
} | |
}, | |
"additionalProperties":false | |
} | |
] | |
} | |
}, | |
"additionalProperties":false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment