Skip to content

Commit fe74a4c

Browse files
committed
More Swagger API Hub validation fixes.
1 parent 21d32bd commit fe74a4c

5 files changed

Lines changed: 707 additions & 86 deletions

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

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -684,20 +684,28 @@ components:
684684
enum:
685685
- Feature
686686
time:
687-
$ref: '#/components/schemas/time'
687+
oneOf:
688+
- type: object
689+
nullable: true
690+
- $ref: '#/components/schemas/time'
688691
geometry:
689-
$ref: 'https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/geometryGeoJSON.yaml'
692+
oneOf:
693+
- type: object
694+
nullable: true
695+
- $ref: 'https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/geometryGeoJSON.yaml'
690696
conformsTo:
691697
type: array
692698
description: |-
693699
The extensions/conformance classes used in this record.
694700
items:
695701
type: string
696702
properties:
697-
nullable: true
698-
allOf:
703+
oneOf:
699704
- type: object
700-
- $ref: '#/components/schemas/recordCommonProperties'
705+
nullable: true
706+
- allOf:
707+
- type: object
708+
- $ref: '#/components/schemas/recordCommonProperties'
701709
links:
702710
type: array
703711
items:
@@ -778,7 +786,6 @@ components:
778786
enumerating the list of schemes in the queryable's schema
779787
definition.
780788
time:
781-
nullable: true
782789
type: object
783790
properties:
784791
date:
@@ -866,16 +873,6 @@ components:
866873
text/html:
867874
schema:
868875
type: string
869-
InvalidParameter:
870-
description: |-
871-
A query parameter has an invalid value.
872-
content:
873-
application/json:
874-
schema:
875-
$ref: 'https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/exception.yaml'
876-
text/html:
877-
schema:
878-
type: string
879876
LandingPage:
880877
description: |-
881878
The landing page provides links to the API definition (link relations

0 commit comments

Comments
 (0)