This repository has been archived by the owner on Dec 8, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathspecial-use-POST-data-schema.json
104 lines (104 loc) · 4.81 KB
/
special-use-POST-data-schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Special use application",
"description": "A rough sketch of the POST JSON HTTP request for a special use permit from the U.S. Forest Service ePermitting system",
"definitions": {
"applicant-info": {
"type": "object",
"properties": {
"firstName": { "type": "string"},
"lastName": { "type": "string" },
"dayPhone": { "$ref": "#/definitions/phone-number" },
"eveningPhone": { "$ref": "#/definitions/phone-number" },
"emailAddress": { "type": "string"},
"mailingAddress": { "type": "string"},
"mailingAddress2": { "type": "string"},
"mailingCity": { "type": "string"},
"mailingState": { "type": "string"},
"mailingZIP": { "type": "integer"},
"organizationName": {
"description": "The name of the group, company, organization or event applying",
"type": "integer",
},
"website": { "type": "string", "stored-in-middle-layer": true },
"orgType": { "type": { "enum": [ "Association","Corporation","Education","Federal Government","State Government","Local Govt","Married Common Property","Limited Liability Company (LLC)","Limited Liability Corporation (LLP)","Trust" ] }},
"required": ["firstName","lastName","dayPhone","emailAddress","mailingAddress","mailingCity","mailingZIP","mailingState"]
},
"phoneNumber": {
"type": "object",
"properties": {
"areaCode": { "type": "integer"},
"number": { "type": "integer"},
"extension": { "type": "integer"},
"phoneType": { "basic-api-field" : "PHONE_NUMBER_TYPE", "note" : "We should limit responses to a few options."},
},
"required": ["areaCode","number","type"]
},
"non-commercial-fields": {
"type": "object",
"properties": {
"activityDescription": { "type": "string"},
"locationDescription": { "type": "string"},
"startDateTime": { "type": "dateTime"},
"endDateTime": { "type": "dateTime" },
"numberParticipants" : { "type": "integer" },
"numberSpectators" : { "type": "integer" },
},
},
"temp-outfitter-fields": {
"type": "object",
"properties": {
"individualIsCitizen" : { "type" : "boolean", "note" : "Required if contactType is individual."},
"smallBusiness" : { "type" : "boolean", "note" : "Required if contactType is not individual."},
"activityDescription": { "type": "string"},
"advertisingURL": { "type": "URL", "note" : "Either advertisingURL or advertisingDescription must be complete."},
"advertisingDescription": { "type": "string", "note" : "Either advertisingURL or advertisingDescription must be complete."},
"clientCharges": { "type": "string"},
"experienceList": { "type": "string"},
"guideDocumentation": {
"type": "file",
"note": "Stored in the middle layer.",
},
"acknowledgementOfRiskForm": {
"type": "file",
"note": "Stored in the middle layer.",
},
"insuranceCertificate": {
"type": "file",
"note": "Stored in the middle layer.",
},
"goodStandingEvidence": {
"description": "Required for all non-individual contact types. Certificate of good standing, operating agreement, or other evidence the business is in good standing",
"note": "Stored in the middle layer.",
"type": "file"
},
"operatingPlan": {
"description": "A completed Word or RTF operating plan template.",
"note": "Stored in the middle layer.",
"type": "file"
},
"required": ["activityDescription","clientCharges","insuranceCertificate","goodStandingEvidence","operatingPlan"]
},
},
"type": "object",
"properties": {
"region": { "type" : "string" },
"forest": { "type" : "string" },
"district": { "type" : "string" },
"authorizingOfficerName": { "type" : "string"},
"authorizingOfficerTitle": { "type" : "string"},
"applicant-info" : {
"oneOf" : [
{ "$ref": "#/definitions/applicant-info" },
{ "contact-id": { "type" : "integer" } }
]
},
"type" : { "enum" : ["non-commercial","tempOutfitters"], "note" : "See the FORM_NAME fields in the blocks specific to each permit type"},
"type-specific-fields": {
"oneOf": [
{ "$ref": "#/definitions/non-commercial-fields" },
{ "$ref": "#/definitions/temp-outfitter-fields" },
]
},
"required" : ["region","forest","district","authorizingOfficerName","authorizingOfficerTitle","applicant-info","type","type-specific-fields"],
}