|
46 | 46 | "rules": { |
47 | 47 | "$id": "#/definitions/rule", |
48 | 48 | "type": "array", |
49 | | - "description": "List of applicable Rule objects", |
| 49 | + "description": "Array of applicable Rule objects", |
50 | 50 | "items": { |
51 | 51 | "$id": "#/definitions/policy/properties/rules/items", |
52 | 52 | "$ref": "#/definitions/rule" |
|
109 | 109 | "rule_units": { |
110 | 110 | "$id": "#/definitions/rule/properties/rule_units", |
111 | 111 | "type": "string", |
112 | | - "description": "Meaured units of policy", |
| 112 | + "description": "Measured units of policy", |
113 | 113 | "enum": [ |
114 | 114 | "seconds", |
115 | 115 | "minutes", |
|
120 | 120 | "devices", |
121 | 121 | "amount" |
122 | 122 | ] |
| 123 | + }, |
| 124 | + "vehicle_types": { |
| 125 | + "$id": "#/definitions/rule/properties/vehicle_types", |
| 126 | + "$ref": "#/definitions/vehicle_types", |
| 127 | + "description": "Applicable vehicle types, default \"all\"" |
| 128 | + }, |
| 129 | + "propulsion_types": { |
| 130 | + "$id": "#/definitions/rule/properties/propulsion_types", |
| 131 | + "$ref": "#/definitions/propulsion_types", |
| 132 | + "description": "Applicable vehicle propulsion types, default \"all\"" |
| 133 | + }, |
| 134 | + "minimum": { |
| 135 | + "$id": "#/definitions/rule/properties/minimum", |
| 136 | + "type": "integer", |
| 137 | + "description": "Minimum value, if applicable (default 0)" |
| 138 | + }, |
| 139 | + "maximum": { |
| 140 | + "$id": "#/definitions/rule/properties/maximum", |
| 141 | + "type": "integer", |
| 142 | + "description": "Maximum value, if applicable (default unlimited)" |
| 143 | + }, |
| 144 | + "rate_amount": { |
| 145 | + "$id": "#/definitions/rule/properties/rate_amount", |
| 146 | + "type": "integer", |
| 147 | + "description": "The amount of a rate applied when this rule applies, if applicable (default zero). A positive integer rate amount represents a fee, while a negative integer represents a subsidy. Rate amounts are given in the currency defined in the Policy." |
| 148 | + }, |
| 149 | + "rate_recurrence": { |
| 150 | + "$id": "#/definitions/rule/properties/rate_recurrence", |
| 151 | + "type": "string", |
| 152 | + "description": "Specify when a rate is applied – either once, or periodically according to a time unit specified using rule_units", |
| 153 | + "enum": [ |
| 154 | + "once", |
| 155 | + "each_time_unit", |
| 156 | + "per_complete_time_unit" |
| 157 | + ] |
| 158 | + }, |
| 159 | + "start_time": { |
| 160 | + "$id": "#/definitions/rule/properties/start_time", |
| 161 | + "$ref": "#/definitions/iso_time", |
| 162 | + "description": "Beginning time-of-day when the rule is in effect (default 00:00:00)" |
| 163 | + }, |
| 164 | + "end_time": { |
| 165 | + "$id": "#/definitions/rule/properties/end_time", |
| 166 | + "$ref": "#/definitions/iso_time", |
| 167 | + "description": "Ending time-of-day when the rule is in effect (default 23:59:59)" |
| 168 | + }, |
| 169 | + "days": { |
| 170 | + "$id": "#/definitions/rule/properties/days", |
| 171 | + "$ref": "#/definitions/days", |
| 172 | + "description": "Days when the rule is in effect (default all)" |
| 173 | + }, |
| 174 | + "messages": { |
| 175 | + "$id": "#/definitions/rule/properties/messages", |
| 176 | + "type": "object", |
| 177 | + "description": "Message to rider user, if desired, in various languages, keyed by BCP 47 language tag", |
| 178 | + "propertyNames": { |
| 179 | + "pattern": "([A-Za-z]{2,3})([-][A-Za-z]{3}){0,3}([-]([A-Za-z]{4}))?([-]([A-Za-z]{2}|[0-9]{3}))?" |
| 180 | + } |
| 181 | + }, |
| 182 | + "value_url": { |
| 183 | + "$id": "#/definitions/rule/properties/value_url", |
| 184 | + "type": "string", |
| 185 | + "description": "URL to an API endpoint that can provide dynamic information for the measured value", |
| 186 | + "format": "uri" |
123 | 187 | } |
124 | 188 | } |
125 | 189 | } |
|
158 | 222 | "updated": { |
159 | 223 | "$id": "#/properties/updated", |
160 | 224 | "$ref": "#/definitions/timestamp", |
161 | | - "description": "The timestamp when the Policy document was last updated" |
| 225 | + "description": "The timestamp when the Policy was last updated" |
162 | 226 | }, |
163 | 227 | "version": { |
164 | 228 | "$id": "#/properties/version", |
165 | 229 | "$ref": "#/definitions/version", |
166 | | - "description": "The MDS version this Policy document corresponds with" |
| 230 | + "description": "The version of MDS that the Policy represents" |
167 | 231 | } |
168 | 232 | }, |
169 | 233 | "additionalProperties": false |
|
0 commit comments