Bug 29072: Move reference route /cities spec to YAML
[koha.git] / api / v1 / swagger / definitions / city.yaml
1 ---
2 type: object
3 properties:
4   city_id:
5     $ref: ../x-primitives.json#/city_id
6   name:
7     description: city name
8     type: string
9   state:
10     description: city state
11     type:
12       - string
13       - "null"
14   postal_code:
15     description: city postal code
16     type:
17       - string
18       - "null"
19   country:
20     description: city country
21     type:
22       - string
23       - "null"
24 additionalProperties: false
25 required:
26   - name
27   - state
28   - postal_code
29   - country