|
1 | | -openapi: 3.1.0 |
| 1 | +openapi: 3.0.3 |
2 | 2 | info: |
3 | 3 | title: "Building Blocks specified in OGC API - Features - Part 1: Core" |
4 | 4 | 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. |
9 | 7 | Copyright (c) 2019 Open Geospatial Consortium. |
10 | 8 | 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). |
14 | 10 | version: '1.0.0' |
15 | 11 | contact: |
16 | 12 | name: Panagiotis Vretanos |
@@ -174,7 +170,8 @@ components: |
174 | 170 | key work but all the swagger validators tried complained |
175 | 171 | about it. |
176 | 172 | type: string |
177 | | - const: Collection |
| 173 | + enum: |
| 174 | + - Collection |
178 | 175 | conformsTo: |
179 | 176 | type: array |
180 | 177 | description: |- |
@@ -263,18 +260,6 @@ components: |
263 | 260 | enum: |
264 | 261 | - record |
265 | 262 | - 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 |
278 | 263 | contact: |
279 | 264 | type: object |
280 | 265 | description: |- |
@@ -525,6 +510,17 @@ components: |
525 | 510 | Most recent date on which the resource pointed |
526 | 511 | to by the link was changed. |
527 | 512 | format: date-time |
| 513 | + link: |
| 514 | + type: object |
| 515 | + allOf: |
| 516 | + - $ref: '#/components/schemas/linkBase' |
| 517 | + - type: object |
| 518 | + required: |
| 519 | + - href |
| 520 | + properties: |
| 521 | + href: |
| 522 | + type: string |
| 523 | + format: uri |
528 | 524 | linkTemplate: |
529 | 525 | allOf: |
530 | 526 | - $ref: '#/components/schemas/linkBase' |
@@ -553,17 +549,6 @@ components: |
553 | 549 | JSON Schema fragment and can thus include things |
554 | 550 | like the data type of the variable, enumerations, |
555 | 551 | minimum values, maximum values, etc. |
556 | | - link: |
557 | | - type: object |
558 | | - allOf: |
559 | | - - $ref: '#/components/schemas/linkBase' |
560 | | - - type: object |
561 | | - required: |
562 | | - - href |
563 | | - properties: |
564 | | - href: |
565 | | - type: string |
566 | | - format: uri |
567 | 552 | recordCollectionGeoJSON: |
568 | 553 | allOf: |
569 | 554 | - $ref: 'https://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/featureCollectionGeoJSON.yaml' |
@@ -699,25 +684,20 @@ components: |
699 | 684 | enum: |
700 | 685 | - Feature |
701 | 686 | time: |
702 | | - oneOf: |
703 | | - - type: "null" |
704 | | - - $ref: '#/components/schemas/time' |
| 687 | + $ref: '#/components/schemas/time' |
705 | 688 | 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' |
709 | 690 | conformsTo: |
| 691 | + type: array |
710 | 692 | description: |- |
711 | 693 | The extensions/conformance classes used in this record. |
712 | | - type: array |
713 | 694 | items: |
714 | 695 | type: string |
715 | 696 | 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' |
721 | 701 | links: |
722 | 702 | type: array |
723 | 703 | items: |
@@ -798,6 +778,7 @@ components: |
798 | 778 | enumerating the list of schemes in the queryable's schema |
799 | 779 | definition. |
800 | 780 | time: |
| 781 | + nullable: true |
801 | 782 | type: object |
802 | 783 | properties: |
803 | 784 | date: |
|
0 commit comments