Skip to content

Commit

Permalink
Fix OpenAPI spec warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarton authored and cblanc committed Nov 1, 2024
1 parent 3fd42bf commit c77485f
Show file tree
Hide file tree
Showing 8 changed files with 1,402 additions and 642 deletions.
6 changes: 4 additions & 2 deletions openapi/components/schemas/Place.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,15 @@ properties:
example: "Wales"
longitude:
title: Longitude
type: double float
type: number
format: double
description: >-
The WGS84 longitude given the Place's national grid reference.
example: "-3.14971194307843"
latitude:
title: Latitude
type: double float
type: number
format: double
description: >-
The WGS84 latitude given the Place's national grid reference.
example: "52.6606391732959"
Expand Down
4 changes: 2 additions & 2 deletions openapi/paths/outcodes@{outcode}.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ get:
summary: "Outcode Lookup"
description:
$ref: ../md/outcode.md
operationId: FindPlace
operationId: FindOutcode
parameters:
- name: Outcode
- name: outcode
in: path
description: Specifies the outward code you wish to query.
required: true
Expand Down
6 changes: 3 additions & 3 deletions openapi/paths/places@{code}.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ get:
$ref: ../md/places.md
operationId: FindPlace
parameters:
- name: query
in: query
- name: code
in: path
description: Specifies the place you wish to query
required: true
style: form
style: simple
explode: false
schema:
type: string
Expand Down
12 changes: 0 additions & 12 deletions openapi/paths/postcodes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,6 @@ get:
example: 51.50354
maximum: 90
minimum: -90
- name: limit
in: query
style: form
explode: false
schema:
title: Limit
type: integer
description: Limits number of postcodes matches to return. Defaults to 10. Needs to be less than 100.
example: 20
maximum: 100
default: 10
minimum: 1
- name: radius
in: query
style: form
Expand Down
2 changes: 1 addition & 1 deletion openapi/paths/scotland@postcodes@{postcode}.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ get:
$ref: ../md/scottish-postcodes.md
operationId: Scottish Postcodes
parameters:
- name: Scottish Postcode
- name: postcode
in: path
description: Specifies the postcode you wish to query
required: true
Expand Down
2 changes: 1 addition & 1 deletion openapi/paths/terminated_postcodes@{postcode}.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ get:
$ref: ../md/terminated-postcodes.md
operationId: TerminatedPostcodes
parameters:
- name: Terminated Postcode
- name: postcode
in: path
description: Postcode to query
required: true
Expand Down
Loading

0 comments on commit c77485f

Please sign in to comment.