Skip to content

Commit fc89ff6

Browse files
committed
Update to OpenAPI 3.1.0.
1 parent 228367b commit fc89ff6

7 files changed

Lines changed: 13 additions & 19 deletions

core/openapi/ogcapi-records-1-building-blocks.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
openapi: 3.0.3
1+
openapi: 3.1.0
22
info:
33
title: "Building Blocks specified in OGC API - Features - Part 1: Core"
44
description: |-
@@ -174,8 +174,7 @@ components:
174174
key work but all the swagger validators tried complained
175175
about it.
176176
type: string
177-
enum:
178-
- Collection
177+
const: Collection
179178
conformsTo:
180179
type: array
181180
description: |-
@@ -701,11 +700,11 @@ components:
701700
- Feature
702701
time:
703702
oneOf:
704-
- type: null
703+
- type: "null"
705704
- $ref: '#/components/schemas/time'
706705
geometry:
707706
oneOf:
708-
- type: null
707+
- type: "null"
709708
- $ref: 'https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/geometryGeoJSON.yaml'
710709
conformsTo:
711710
description: |-
@@ -715,7 +714,7 @@ components:
715714
type: string
716715
properties:
717716
oneOf:
718-
- type: null
717+
- type: "null"
719718
- allOf:
720719
- type: object
721720
- $ref: '#/components/schemas/recordCommonProperties'
@@ -800,7 +799,6 @@ components:
800799
definition.
801800
time:
802801
type: object
803-
nullable: true
804802
properties:
805803
date:
806804
type: string

core/openapi/ogcapi-records-1-example-ref-buildingblocks-bundle.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
openapi: 3.0.3
1+
openapi: 3.1.0
22
info:
33
title: "OGC API - Records - Part 1: Core"
44
version: '1.0.0'

core/openapi/ogcapi-records-1-example-ref-schema-repo.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
openapi: 3.0.3
1+
openapi: 3.1.0
22
info:
33
title: "OGC API - Records - Part 1: Core"
44
version: '1.0.0'

core/openapi/schemas/catalogCommonProperties.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ allOf:
1010
Fixed to "Collection" for collections of records and/or subordinate
1111
catalogs.
1212
type: string
13-
enum:
14-
- Collection
13+
const: Collection
1514
conformsTo:
1615
type: array
1716
description: |-

core/openapi/schemas/recordGeoJSON.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ properties:
1717
const: Feature
1818
time:
1919
oneOf:
20-
- type: null
20+
- type: "null"
2121
- $ref: 'time.yaml'
2222
geometry:
2323
oneOf:
24-
- type: null
24+
- type: "null"
2525
- $ref: 'https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/geometryGeoJSON.yaml'
2626
conformsTo:
2727
type: array
@@ -31,7 +31,7 @@ properties:
3131
type: string
3232
properties:
3333
oneOf:
34-
- type: null
34+
- type: "null"
3535
- allOf:
3636
- type: object
3737
- $ref: 'recordCommonProperties.yaml'

core/openapi/schemas/recordJSON.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,14 @@ allOf:
1515
A characteristic time or time interval associated
1616
with the resource that this record described.
1717
oneOf:
18-
- enum:
19-
- null
18+
- type: "null"
2019
- $ref: 'time.yaml'
2120
geometry:
2221
description: |-
2322
A characteristic spatial extent association with
2423
the resource that this record described.
2524
oneOf:
26-
- enum:
27-
- null
25+
- type: "null"
2826
- $ref: 'https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/geometryGeoJSON.yaml'
2927
conformsTo:
3028
type: array

core/openapi/schemas/time.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
type: object
3-
nullable: true
43
properties:
54
date:
65
type: string

0 commit comments

Comments
 (0)