| 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "title": "Contractor", |
| 4 | "description": "A contractor from Very Good Building Company", |
| 5 | "type": "object", |
| 6 | "properties": { |
| 7 | "contractorId": { |
| 8 | "description": "The unique identifier for a contractor", |
| 9 | "type": "integer" |
| 10 | }, |
| 11 | "contractorName": { |
| 12 | "description": "Name of the contractor", |
| 13 | "type": "string" |
| 14 | }, |
| 15 | "contractRate": { |
| 16 | "description": "The hourly rate in bottlecaps", |
| 17 | "type": "number", |
| 18 | "exclusiveMinimum": 0 |
| 19 | }, |
| 20 | "trades": { |
| 21 | "description": "Services rendered by this contractor", |
| 22 | "type": "array", |
| 23 | "items": { |
| 24 | "type": "string" |
| 25 | }, |
| 26 | "minItems": 1, |
| 27 | "uniqueItems": true |
| 28 | } |
| 29 | }, |
| 30 | "required": [ "contractorId", "contractorName", "contractRate" ] |
| 31 | } |