Created
July 9, 2012 17:13
-
-
Save jdzak/3077704 to your computer and use it in GitHub Desktop.
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
diff --git a/fieldwork_schema.json b/fieldwork_schema.json | |
index e624942..7c4e5d5 100644 | |
--- a/fieldwork_schema.json | |
+++ b/fieldwork_schema.json | |
@@ -1,459 +1,452 @@ | |
{ | |
- "$schema": "http://json-schema.org/draft-03/schema#", | |
- "additionalProperties": false, | |
- "description": "Field contact set", | |
+ "$schema": "http://json-schema.org/draft-03/schema#", | |
+ "additionalProperties": false, | |
+ "description": "Field contact set", | |
"properties": { | |
"contacts": { | |
- "description": "Contacts in the contact set", | |
+ "description": "Contacts in the contact set", | |
"items": { | |
- "additionalProperties": false, | |
+ "additionalProperties": false, | |
"extends": { | |
"$ref": "http://download.nubic.northwestern.edu/ncs_navigator/versioned_entity_schema.json#" | |
- }, | |
+ }, | |
"properties": { | |
"comments": { | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"contact_date": { | |
- "format": "date", | |
- "required": true, | |
+ "format": "date", | |
+ "required": true, | |
"type": [ | |
"string" | |
] | |
- }, | |
+ }, | |
"contact_id": { | |
"$ref": "http://download.nubic.northwestern.edu/ncs_navigator/entity_id_schema.json#" | |
- }, | |
+ }, | |
"disposition": { | |
- "required": true, | |
"type": [ | |
- "integer", | |
+ "integer", | |
"null" | |
] | |
- }, | |
+ }, | |
"distance_traveled": { | |
"extends": { | |
"$ref": "http://download.nubic.northwestern.edu/ncs_navigator/decimal_as_string.json#" | |
- }, | |
+ }, | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"end_time": { | |
- "required": true, | |
"type": [ | |
- "string", | |
- "null" | |
+ "null", | |
+ "string" | |
] | |
- }, | |
+ }, | |
"events": { | |
"items": { | |
- "additionalProperties": false, | |
+ "additionalProperties": false, | |
"extends": { | |
"$ref": "http://download.nubic.northwestern.edu/ncs_navigator/versioned_entity_schema.json#" | |
- }, | |
+ }, | |
"properties": { | |
"break_off": { | |
"type": [ | |
- "integer", | |
+ "integer", | |
"null" | |
] | |
- }, | |
+ }, | |
"comments": { | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"disposition": { | |
- "required": true, | |
"type": [ | |
- "integer", | |
+ "integer", | |
"null" | |
] | |
- }, | |
+ }, | |
"disposition_category": { | |
- "required": true, | |
+ "required": true, | |
"type": "integer" | |
- }, | |
+ }, | |
"end_date": { | |
- "format": "date", | |
+ "format": "date", | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"end_time": { | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"event_id": { | |
"$ref": "http://download.nubic.northwestern.edu/ncs_navigator/entity_id_schema.json#" | |
- }, | |
+ }, | |
"incentive_cash": { | |
"extends": { | |
"$ref": "http://download.nubic.northwestern.edu/ncs_navigator/decimal_as_string.json#" | |
- }, | |
+ }, | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"incentive_type": { | |
"type": [ | |
- "integer", | |
+ "integer", | |
"null" | |
] | |
- }, | |
+ }, | |
"instruments": { | |
"items": { | |
- "additionalProperties": false, | |
+ "additionalProperties": false, | |
"properties": { | |
"break_off": { | |
"type": [ | |
- "integer", | |
+ "integer", | |
"null" | |
] | |
- }, | |
+ }, | |
"comments": { | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"data_problem": { | |
"type": [ | |
- "integer", | |
+ "integer", | |
"null" | |
] | |
- }, | |
+ }, | |
"end_date": { | |
- "format": "date", | |
+ "format": "date", | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"end_time": { | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"instrument_id": { | |
"$ref": "http://download.nubic.northwestern.edu/ncs_navigator/entity_id_schema.json#" | |
- }, | |
+ }, | |
"instrument_template_id": { | |
"$ref": "http://download.nubic.northwestern.edu/ncs_navigator/entity_id_schema.json#" | |
- }, | |
+ }, | |
"instrument_version": { | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"method_administered": { | |
"type": [ | |
- "integer", | |
+ "integer", | |
"null" | |
] | |
- }, | |
+ }, | |
"mode_administered": { | |
"type": [ | |
- "integer", | |
+ "integer", | |
"null" | |
] | |
- }, | |
+ }, | |
"mode_administered_other": { | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"name": { | |
- "required": true, | |
+ "required": true, | |
"type": "string" | |
- }, | |
+ }, | |
"repeat_key": { | |
"type": [ | |
- "integer", | |
+ "integer", | |
"null" | |
] | |
- }, | |
+ }, | |
"response_set": { | |
"$ref": "http://download.nubic.northwestern.edu/surveyor/response_set_schema.json#" | |
- }, | |
+ }, | |
"start_date": { | |
- "format": "date", | |
+ "format": "date", | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"start_time": { | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"status": { | |
"type": [ | |
- "integer", | |
+ "integer", | |
"null" | |
] | |
- }, | |
+ }, | |
"supervisor_review": { | |
"type": [ | |
- "integer", | |
+ "integer", | |
"null" | |
] | |
- }, | |
+ }, | |
"type": { | |
"type": [ | |
- "integer", | |
+ "integer", | |
"null" | |
] | |
- }, | |
+ }, | |
"type_other": { | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
} | |
} | |
- }, | |
- "minItems": 0, | |
- "required": true, | |
+ }, | |
+ "minItems": 0, | |
+ "required": true, | |
"type": "array" | |
- }, | |
+ }, | |
"name": { | |
- "required": true, | |
+ "required": true, | |
"type": "string" | |
- }, | |
+ }, | |
"repeat_key": { | |
"type": [ | |
- "integer", | |
+ "integer", | |
"null" | |
] | |
- }, | |
+ }, | |
"start_date": { | |
- "format": "date", | |
+ "format": "date", | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"start_time": { | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"type": { | |
"type": [ | |
- "integer", | |
+ "integer", | |
"null" | |
] | |
- }, | |
+ }, | |
"type_other": { | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"version": {} | |
} | |
- }, | |
- "minItems": 0, | |
- "required": true, | |
+ }, | |
+ "minItems": 0, | |
+ "required": true, | |
"type": "array" | |
- }, | |
+ }, | |
"interpreter": { | |
"type": [ | |
- "integer", | |
+ "integer", | |
"null" | |
] | |
- }, | |
+ }, | |
"interpreter_other": { | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"language": { | |
"type": [ | |
- "integer", | |
+ "integer", | |
"null" | |
] | |
- }, | |
+ }, | |
"language_other": { | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"location": { | |
"type": [ | |
- "integer", | |
+ "integer", | |
"null" | |
] | |
- }, | |
+ }, | |
"location_other": { | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"person_id": { | |
"$ref": "http://download.nubic.northwestern.edu/ncs_navigator/entity_id_schema.json#" | |
- }, | |
+ }, | |
"private": { | |
"type": [ | |
- "integer", | |
+ "integer", | |
"null" | |
] | |
- }, | |
+ }, | |
"private_detail": { | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"start_time": { | |
- "required": true, | |
- "type": [ | |
- "string", | |
- "null" | |
- ] | |
- }, | |
+ "type": ["string", "null"] | |
+ }, | |
"type": { | |
- "required": true, | |
+ "required": true, | |
"type": "integer" | |
- }, | |
- "version": {}, | |
+ }, | |
+ "version": {}, | |
"who_contacted": { | |
"type": [ | |
- "integer", | |
+ "integer", | |
"null" | |
] | |
- }, | |
+ }, | |
"who_contacted_other": { | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
} | |
} | |
- }, | |
- "required": true, | |
+ }, | |
+ "required": true, | |
"type": "array" | |
- }, | |
+ }, | |
"instrument_templates": { | |
"items": { | |
"extends": { | |
"$ref": "http://download.nubic.northwestern.edu/ncs_navigator/versioned_entity_schema.json#" | |
- }, | |
+ }, | |
"properties": { | |
"instrument_template_id": { | |
"$ref": "http://download.nubic.northwestern.edu/ncs_navigator/entity_id_schema.json#" | |
- }, | |
+ }, | |
"survey": { | |
- "required": true, | |
+ "required": true, | |
"type": "object" | |
} | |
} | |
- }, | |
- "minItems": 0, | |
- "required": true, | |
+ }, | |
+ "minItems": 0, | |
+ "required": true, | |
"type": "array" | |
- }, | |
+ }, | |
"participants": { | |
"items": { | |
"extends": { | |
"$ref": "http://download.nubic.northwestern.edu/ncs_navigator/versioned_entity_schema.json#" | |
- }, | |
+ }, | |
"properties": { | |
"p_id": { | |
"$ref": "http://download.nubic.northwestern.edu/ncs_navigator/entity_id_schema.json#" | |
- }, | |
+ }, | |
"persons": { | |
"items": { | |
"extends": { | |
"$ref": "http://download.nubic.northwestern.edu/ncs_navigator/versioned_entity_schema.json#" | |
- }, | |
+ }, | |
"properties": { | |
"cell_phone": { | |
- "format": "phone", | |
+ "format": "phone", | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"city": { | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"email": { | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"home_phone": { | |
- "format": "phone", | |
+ "format": "phone", | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"name": { | |
- "required": true, | |
+ "required": true, | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"person_id": { | |
"$ref": "http://download.nubic.northwestern.edu/ncs_navigator/entity_id_schema.json#" | |
- }, | |
+ }, | |
"relationship_code": { | |
- "required": true, | |
+ "required": true, | |
"type": "integer" | |
- }, | |
+ }, | |
"state": { | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"street": { | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
- }, | |
+ }, | |
"zip_code": { | |
"type": [ | |
- "string", | |
+ "string", | |
"null" | |
] | |
} | |
} | |
- }, | |
- "required": true, | |
+ }, | |
+ "required": true, | |
"type": "array" | |
} | |
} | |
- }, | |
- "required": true, | |
+ }, | |
+ "required": true, | |
"type": "array" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment