Skip to content

Commit 21d32bd

Browse files
authored
Merge pull request #473 from pvretano/bundle-validation2
Cleanup comments and other misc updates.
2 parents be07090 + e85ecc8 commit 21d32bd

10 files changed

+77
-97
lines changed

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

Lines changed: 14 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
openapi: 3.1.0
1+
openapi: 3.0.3
22
info:
33
title: "Building Blocks specified in OGC API - Features - Part 1: Core"
44
description: |-
5-
Common components used in the
6-
[OGC standard "OGC API - Records - Part 1: Core"](https://docs.opengeospatial.org/is/20-004r1/20-004r1.html).
7-
8-
OGC API - Records - Part 1: Core 1.0 is an OGC Standard.
5+
Common components used in the [OGC standard "OGC API - Records - Part 1: Core"](https://docs.opengeospatial.org/is/20-004r1/20-004r1.html).
6+
OGC API - Records - Part 1: Core is an OGC Standard.
97
Copyright (c) 2019 Open Geospatial Consortium.
108
To obtain additional rights of use, visit https://www.ogc.org/about-ogc/policies.
11-
12-
This document is also available on
13-
[OGC](https://schemas.opengis.net/ogcapi/records/part1/1.0/openapi/ogcapi-records-1.yaml).
9+
This document is also available on [OGC](https://schemas.opengis.net/ogcapi/records/part1/1.0/openapi/ogcapi-records-1-building-blocks.yaml).
1410
version: '1.0.0'
1511
contact:
1612
name: Panagiotis Vretanos
@@ -174,7 +170,8 @@ components:
174170
key work but all the swagger validators tried complained
175171
about it.
176172
type: string
177-
const: Collection
173+
enum:
174+
- Collection
178175
conformsTo:
179176
type: array
180177
description: |-
@@ -263,18 +260,6 @@ components:
263260
enum:
264261
- record
265262
- catalog
266-
collection:
267-
allOf:
268-
- $ref: '#/components/schemas/catalog'
269-
- type: object
270-
properties:
271-
itemType:
272-
description: |-
273-
For a collection of records, the itemType is
274-
fixed to "record".
275-
type: string
276-
enum:
277-
- record
278263
contact:
279264
type: object
280265
description: |-
@@ -699,25 +684,20 @@ components:
699684
enum:
700685
- Feature
701686
time:
702-
oneOf:
703-
- type: "null"
704-
- $ref: '#/components/schemas/time'
687+
$ref: '#/components/schemas/time'
705688
geometry:
706-
oneOf:
707-
- type: "null"
708-
- $ref: 'https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/geometryGeoJSON.yaml'
689+
$ref: 'https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/geometryGeoJSON.yaml'
709690
conformsTo:
691+
type: array
710692
description: |-
711693
The extensions/conformance classes used in this record.
712-
type: array
713694
items:
714695
type: string
715696
properties:
716-
oneOf:
717-
- type: "null"
718-
- allOf:
719-
- type: object
720-
- $ref: '#/components/schemas/recordCommonProperties'
697+
nullable: true
698+
allOf:
699+
- type: object
700+
- $ref: '#/components/schemas/recordCommonProperties'
721701
links:
722702
type: array
723703
items:
@@ -798,6 +778,7 @@ components:
798778
enumerating the list of schemes in the queryable's schema
799779
definition.
800780
time:
781+
nullable: true
801782
type: object
802783
properties:
803784
date:

core/openapi/ogcapi-records-1-example-all-in-one.yaml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,20 @@ info:
44
version: '1.0.0'
55
description: |-
66
This is a sample OpenAPI definition that conforms to the conformance
7-
classes "Core", "GeoJSON", "HTML" and "OpenAPI 3.0" of the draft
8-
standard "OGC API - Records - Part 1: Core".
7+
classes of the "OGC API - Records - Part 1: Core" standard:
98
10-
This example is a generic OGC API - Records definition that uses path
11-
parameters to describe all record collections and all records.
12-
The generic OpenAPI definition does not provide any details on the
13-
collections or the record content. This information is only available
14-
from accessing the record collection resources.
9+
* Searchable Catalog
10+
* Searchable Catalog - Sorting
11+
* Local Resources Catalog
12+
* Local Resources Catalog - Query Parameters
13+
* Local Resources Catalog - Sorting
14+
* OpenAPI 3.0
1515
16-
There is [another example](ogcapi-records-1-example2.yaml)
17-
that specifies each collection explicitly.
16+
This example is a generic definition that uses path parameters to
17+
describe all catalogs and records. The generic OpenAPI definition
18+
does not provide any details on the catalogs or the record content.
19+
This information is only available by accessing the catalog and its
20+
records.
1821
contact:
1922
name: CubeWerx Inc.
2023
@@ -376,9 +379,9 @@ components:
376379
enum:
377380
- Collection
378381
conformsTo:
382+
type: array
379383
description: |-
380384
The extensions/conformance classes used in this collection.
381-
type: array
382385
items:
383386
type: string
384387
recordsArrayName:

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

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1-
openapi: 3.1.0
1+
openapi: 3.0.3
22
info:
33
title: "OGC API - Records - Part 1: Core"
44
version: '1.0.0'
55
description: |-
66
This is a sample OpenAPI definition that conforms to the conformance
7-
classes "Core", "GeoJSON", "HTML" and "OpenAPI 3.0" of the draft
8-
standard "OGC API - Records - Part 1: Core".
7+
classes of the "OGC API - Records - Part 1: Core" standard:
98
10-
This example is a generic OGC API - Records definition that uses path
11-
parameters to describe all record collections and all records.
12-
The generic OpenAPI definition does not provide any details on the
13-
collections or the record content. This information is only available
14-
from accessing the record collection resources.
9+
* Searchable Catalog
10+
* Searchable Catalog - Sorting
11+
* Local Resources Catalog
12+
* Local Resources Catalog - Query Parameters
13+
* Local Resources Catalog - Sorting
14+
* OpenAPI 3.0
1515
16-
There is [another example](ogcapi-records-1-example2.yaml)
17-
that specifies each collection explicitly.
16+
This example is a generic definition that uses path parameters to
17+
describe all catalogs and records. The generic OpenAPI definition
18+
does not provide any details on the catalogs or the record content.
19+
This information is only available by accessing the catalog and its
20+
records.
1821
contact:
1922
name: CubeWerx Inc.
2023

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

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1-
openapi: 3.1.0
1+
openapi: 3.0.3
22
info:
33
title: "OGC API - Records - Part 1: Core"
44
version: '1.0.0'
55
description: |-
66
This is a sample OpenAPI definition that conforms to the conformance
7-
classes "Core", "GeoJSON", "HTML" and "OpenAPI 3.0" of the draft
8-
standard "OGC API - Records - Part 1: Core".
7+
classes of the "OGC API - Records - Part 1: Core" standard:
98
10-
This example is a generic OGC API - Records definition that uses path
11-
parameters to describe all record collections and all records.
12-
The generic OpenAPI definition does not provide any details on the
13-
collections or the record content. This information is only available
14-
from accessing the record collection resources.
15-
16-
There is [another example](ogcapi-records-1-example2.yaml)
17-
that specifies each collection explicitly.
9+
* Searchable Catalog
10+
* Searchable Catalog - Sorting
11+
* Local Resources Catalog
12+
* Local Resources Catalog - Query Parameters
13+
* Local Resources Catalog - Sorting
14+
* OpenAPI 3.0
15+
16+
This example is a generic definition that uses path parameters to
17+
describe all catalogs and records. The generic OpenAPI definition
18+
does not provide any details on the catalogs or the record content.
19+
This information is only available by accessing the catalog and its
20+
records.
1821
contact:
1922
name: CubeWerx Inc.
2023

core/openapi/schemas/catalogCommonProperties.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ allOf:
1010
Fixed to "Collection" for collections of records and/or subordinate
1111
catalogs.
1212
type: string
13-
const: Collection
13+
enum:
14+
- Collection
1415
conformsTo:
1516
type: array
1617
description: |-
@@ -49,6 +50,8 @@ allOf:
4950
type: array
5051
items:
5152
$ref: 'linkTemplate.yaml'
53+
defaultSortOrder:
54+
$ref: 'defaultSortOrder.yaml'
5255
schemes:
5356
type: array
5457
description: |-

core/openapi/schemas/collection.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ allOf:
88
For a collection of records, the itemType is
99
fixed to "record".
1010
type: string
11-
const: record
11+
enum:
12+
- record

core/openapi/schemas/recordCommonProperties.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ properties:
4444
items:
4545
$ref: 'theme.yaml'
4646
language:
47-
description: |-
48-
The language used for textual values in this
49-
record representation.
5047
$ref: 'language.yaml'
5148
languages:
5249
type: array

core/openapi/schemas/recordGeoJSON.yaml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,30 @@ required:
77
- properties
88
properties:
99
id:
10-
type:
11-
- string
12-
- integer
10+
oneOf:
11+
- type: string
12+
- type: integer
1313
description: |-
1414
A unique identifier of the catalog record.
1515
type:
1616
type: string
17-
const: Feature
17+
enum:
18+
- Feature
1819
time:
19-
oneOf:
20-
- type: "null"
21-
- $ref: 'time.yaml'
20+
$ref: 'time.yaml'
2221
geometry:
23-
oneOf:
24-
- type: "null"
25-
- $ref: 'https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/geometryGeoJSON.yaml'
22+
$ref: 'https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/geometryGeoJSON.yaml'
2623
conformsTo:
2724
type: array
2825
description: |-
2926
The extensions/conformance classes used in this record.
3027
items:
3128
type: string
3229
properties:
33-
oneOf:
34-
- type: "null"
35-
- allOf:
36-
- type: object
37-
- $ref: 'recordCommonProperties.yaml'
30+
nullable: true
31+
allOf:
32+
- type: object
33+
- $ref: 'recordCommonProperties.yaml'
3834
links:
3935
type: array
4036
items:

core/openapi/schemas/recordJSON.yaml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,15 @@ allOf:
77
- id
88
properties:
99
id:
10-
type: string
1110
description: |-
1211
The unique identifier for this record.
13-
time:
14-
description: |-
15-
A characteristic time or time interval associated
16-
with the resource that this record described.
1712
oneOf:
18-
- type: "null"
19-
- $ref: 'time.yaml'
13+
- type: string
14+
- type: integer
15+
time:
16+
$ref: 'time.yaml'
2017
geometry:
21-
description: |-
22-
A characteristic spatial extent association with
23-
the resource that this record described.
24-
oneOf:
25-
- type: "null"
26-
- $ref: 'https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/geometryGeoJSON.yaml'
18+
$ref: 'https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/geometryGeoJSON.yaml'
2719
conformsTo:
2820
type: array
2921
description: |-

core/openapi/schemas/time.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
nullable: true
23
type: object
34
properties:
45
date:

0 commit comments

Comments
 (0)