From 0e8c372be0ad04863dae481abb027295b93aaa9c Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 27 Apr 2026 09:15:58 -0400 Subject: [PATCH 01/20] fix openapi action indent --- .github/workflows/openapi.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/openapi.yml diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml new file mode 100644 index 00000000..5ac2fb6c --- /dev/null +++ b/.github/workflows/openapi.yml @@ -0,0 +1,31 @@ +name: API linting + +on: [pull_request] + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout + uses: actions/checkout@v6 + with: + ref: ${{ github.head_ref }} + + - name: Set up node + uses: actions/setup-node@v6 + - name: Install Redocly CLI + run: npm install -g @redocly/cli@latest + - name: Bundle OpenAPI + run: | + cd openapi + ./update.sh + - name: Run linting + run: redocly lint openapi/ogcapi-processes.bundle.json --format=github-actions + + - name: Commit updated OpenAPI bundle + uses: stefanzweifel/git-auto-commit-action@v7 + with: + commit_message: Auto-update OpenAPI bundle + file_pattern: 'openapi/ogcapi-processes.bundle.json' From 4c800c8486ffa97d07445b4fb3fbbed481884eb3 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 27 Apr 2026 09:41:41 -0400 Subject: [PATCH 02/20] fix openapi update --- .gitignore | 3 +++ openapi/update.sh | 11 ++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 78a66dd8..cd605484 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,6 @@ extensions/workflows/21-009.doc extensions/workflows/21-009.err extensions/workflows/21-009.xml extensions/workflows/21-009.presentation.xml +node_modules +package.json +package-lock.json diff --git a/openapi/update.sh b/openapi/update.sh index 3c5400c5..7282d147 100755 --- a/openapi/update.sh +++ b/openapi/update.sh @@ -1,4 +1,6 @@ -#!/bin/sh +#!/usr/bin/env sh + +cd "$(dirname "$0")" || exit 1 # Refresh pProcessListDeploy.yaml content rm paths/processes-dru/pProcessListDeploy.yaml ; \ @@ -17,5 +19,8 @@ do \ cat paths/$i >> paths/processes-dru/pProcessDescriptionReplaceUndeploy.yaml ;\ done -# Bundle with swagger-cli -swagger-cli bundle ogcapi-processes.yaml -o ogcapi-processes.bundled.json +# Bundle (redocly or swagger-cli) +# Default below assumes global install (e.g.: npm install -g @redocly/cli) +# If using a local install, set BUNDLE_TOOL='npx @redocly/cli' or 'npx @apidevtools/swagger-cli' +BUNDLE_TOOL=${BUNDLE_TOOL:-redocly} +${BUNDLE_TOOL} bundle ogcapi-processes.yaml -o ogcapi-processes.bundled.json From f513e0de0ed04bd4e3a60b4ab49deef32b1d6325 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 27 Apr 2026 10:05:28 -0400 Subject: [PATCH 03/20] fix action bundle output path --- .github/workflows/openapi.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index 5ac2fb6c..a8de188a 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -22,10 +22,10 @@ jobs: cd openapi ./update.sh - name: Run linting - run: redocly lint openapi/ogcapi-processes.bundle.json --format=github-actions + run: redocly lint openapi/ogcapi-processes.bundled.json --format=github-actions - name: Commit updated OpenAPI bundle uses: stefanzweifel/git-auto-commit-action@v7 with: commit_message: Auto-update OpenAPI bundle - file_pattern: 'openapi/ogcapi-processes.bundle.json' + file_pattern: 'openapi/ogcapi-processes.bundled.json' From 86212b6521d9fd8bcb12469f1e50c3b5441ffdbc Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 27 Apr 2026 10:27:21 -0400 Subject: [PATCH 04/20] update redocly ignore security --- .github/workflows/openapi.yml | 2 +- .github/workflows/redocly.lint-config.yaml | 3 +++ openapi/update.sh | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/redocly.lint-config.yaml diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index a8de188a..4c388e36 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -22,7 +22,7 @@ jobs: cd openapi ./update.sh - name: Run linting - run: redocly lint openapi/ogcapi-processes.bundled.json --format=github-actions + run: redocly lint openapi/ogcapi-processes.bundled.json --format=github-actions --config redocly.lint-config.yaml - name: Commit updated OpenAPI bundle uses: stefanzweifel/git-auto-commit-action@v7 diff --git a/.github/workflows/redocly.lint-config.yaml b/.github/workflows/redocly.lint-config.yaml new file mode 100644 index 00000000..6b47c50e --- /dev/null +++ b/.github/workflows/redocly.lint-config.yaml @@ -0,0 +1,3 @@ +rules: + security-defined: off + diff --git a/openapi/update.sh b/openapi/update.sh index 7282d147..d9163998 100755 --- a/openapi/update.sh +++ b/openapi/update.sh @@ -23,4 +23,4 @@ done # Default below assumes global install (e.g.: npm install -g @redocly/cli) # If using a local install, set BUNDLE_TOOL='npx @redocly/cli' or 'npx @apidevtools/swagger-cli' BUNDLE_TOOL=${BUNDLE_TOOL:-redocly} -${BUNDLE_TOOL} bundle ogcapi-processes.yaml -o ogcapi-processes.bundled.json +${BUNDLE_TOOL} bundle ogcapi-processes.yaml -o ogcapi-processes.bundled.json "$@" From 3a1c35a28e4ae385dc74bfc9341fcfd79dd4080f Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 27 Apr 2026 10:30:58 -0400 Subject: [PATCH 05/20] regen redocly bundle --- openapi/ogcapi-processes.bundled.json | 8964 +++++++++++++------------ 1 file changed, 4742 insertions(+), 4222 deletions(-) diff --git a/openapi/ogcapi-processes.bundled.json b/openapi/ogcapi-processes.bundled.json index d4ab2c19..04f7c4ae 100644 --- a/openapi/ogcapi-processes.bundled.json +++ b/openapi/ogcapi-processes.bundled.json @@ -34,13 +34,13 @@ ], "responses": { "200": { - "$ref": "#/components/responses/LandingPage" + "$ref": "#/components/responses/rLandingPage" }, "406": { - "$ref": "#/components/responses/NotAcceptable" + "$ref": "#/components/responses/rNotAcceptable" }, "500": { - "$ref": "#/components/responses/ServerError" + "$ref": "#/components/responses/rServerError" } } } @@ -59,13 +59,13 @@ ], "responses": { "200": { - "$ref": "#/components/responses/Conformance" + "$ref": "#/components/responses/rConformance" }, "406": { - "$ref": "#/components/responses/NotAcceptable" + "$ref": "#/components/responses/rNotAcceptable" }, "500": { - "$ref": "#/components/responses/ServerError" + "$ref": "#/components/responses/rServerError" } } } @@ -84,13 +84,13 @@ ], "responses": { "200": { - "$ref": "#/components/responses/API" + "$ref": "#/components/responses/rAPI" }, "406": { - "$ref": "#/components/responses/NotAcceptable" + "$ref": "#/components/responses/rNotAcceptable" }, "500": { - "$ref": "#/components/responses/ServerError" + "$ref": "#/components/responses/rServerError" } } } @@ -109,16 +109,16 @@ ], "responses": { "200": { - "$ref": "#/components/responses/Enumeration" + "$ref": "#/components/responses/rEnumeration" }, "404": { - "$ref": "#/components/responses/NotFound" + "$ref": "#/components/responses/rNotFound" }, "406": { - "$ref": "#/components/responses/NotAcceptable" + "$ref": "#/components/responses/rNotAcceptable" }, "500": { - "$ref": "#/components/responses/ServerError" + "$ref": "#/components/responses/rServerError" } } } @@ -133,7 +133,7 @@ ], "responses": { "200": { - "$ref": "#/components/responses/ProcessList" + "$ref": "#/components/responses/rProcessList" } } }, @@ -146,7 +146,7 @@ ], "parameters": [ { - "$ref": "#/components/parameters/w" + "$ref": "#/components/parameters/w-param" } ], "requestBody": { @@ -177,19 +177,19 @@ }, "responses": { "201": { - "$ref": "#/components/responses/ProcessSummary" + "$ref": "#/components/responses/rProcessSummary" }, "400": { - "$ref": "#/components/responses/Exception" + "$ref": "#/components/responses/rException" }, "403": { - "$ref": "#/components/responses/ImmutableProcess" + "$ref": "#/components/responses/rImmutableProcess" }, "409": { - "$ref": "#/components/responses/DuplicateProcess" + "$ref": "#/components/responses/rDuplicateProcess" }, "500": { - "$ref": "#/components/responses/ServerError" + "$ref": "#/components/responses/rServerError" } } } @@ -209,10 +209,10 @@ ], "responses": { "200": { - "$ref": "#/components/responses/ProcessDescription" + "$ref": "#/components/responses/rProcessDescription" }, "404": { - "$ref": "#/components/responses/NotFound" + "$ref": "#/components/responses/rNotFound" } } }, @@ -256,22 +256,22 @@ }, "responses": { "204": { - "$ref": "#/components/responses/EmptyResponse" + "$ref": "#/components/responses/rEmpty" }, "400": { - "$ref": "#/components/responses/Exception" + "$ref": "#/components/responses/rException" }, "403": { - "$ref": "#/components/responses/ImmutableProcess" + "$ref": "#/components/responses/rImmutableProcess" }, "404": { - "$ref": "#/components/responses/NotFound" + "$ref": "#/components/responses/rNotFound" }, "409": { - "$ref": "#/components/responses/DuplicateProcess" + "$ref": "#/components/responses/rDuplicateProcess" }, "500": { - "$ref": "#/components/responses/ServerError" + "$ref": "#/components/responses/rServerError" } } }, @@ -289,16 +289,16 @@ ], "responses": { "204": { - "$ref": "#/components/responses/EmptyResponse" + "$ref": "#/components/responses/rEmpty" }, "403": { - "$ref": "#/components/responses/ImmutableProcess" + "$ref": "#/components/responses/rImmutableProcess" }, "404": { - "$ref": "#/components/responses/NotFound" + "$ref": "#/components/responses/rNotFound" }, "500": { - "$ref": "#/components/responses/ServerError" + "$ref": "#/components/responses/rServerError" } } } @@ -343,7 +343,7 @@ } }, "404": { - "$ref": "#/components/responses/NotFound" + "$ref": "#/components/responses/rNotFound" } } } @@ -361,24 +361,10 @@ "$ref": "#/components/parameters/processID-path" }, { - "name": "response", - "in": "query", - "description": "For executing the process using the _Collection Output_ mechanism, where the\nclient is redirected (_303_ status) to a collection resource, from which one\nor more OGC API data access mechanism is available. Data access requests may\ntrigger processing on-demand for a given area, time and resolution of interest.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "collection" - ] - } + "$ref": "#/components/parameters/response" }, { - "in": "header", - "description": "Indicates client preferences, including whether the client is capable of asynchronous processing.\nA `respond-async` preference indicates a preference for asynchronous processing.\nA `wait: s` preference indicates that the client prefers to wait up to x seconds to receive a reponse synchronously before the server falls back to asynchronous processing.", - "name": "Prefer", - "schema": { - "type": "string" - } + "$ref": "#/components/parameters/prefer-header-execution" } ], "requestBody": { @@ -387,37 +373,29 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/execute-workflow" + "$ref": "#/components/schemas/execute-workflows" } } } }, "responses": { "200": { - "$ref": "#/components/responses/ExecuteSync" + "$ref": "#/components/responses/rExecuteSync" }, "201": { - "$ref": "#/components/responses/ExecuteAsync" + "$ref": "#/components/responses/rExecuteAsync" }, "204": { - "$ref": "#/components/responses/EmptyResponse" + "$ref": "#/components/responses/rEmpty" }, "303": { - "description": "For _Collection Output_ execution, redirection to an OGC API landing page or collection.", - "headers": { - "Location": { - "schema": { - "type": "string" - }, - "description": "Location for redirection to an [OGC API collection description](https://github.com/opengeospatial/ogcapi-common/blob/master/collections/openapi/schemas/common-geodata/collectionDesc.yaml) (for `response=collection`) as described in\n[OGC API - Common - Part 2: Geospatial data](http://docs.ogc.org/DRAFTS/20-024.html#collection-description).\nThe collection redirected to must contain links to at least one data access mechanism (such as\n[_OGC API - Tiles_](https://docs.ogc.org/is/20-057/20-057.html),\n[_DGGS_](https://docs.ogc.org/is/21-038r1/21-038r1.html),\n[_Coverages_](http://docs.ogc.org/DRAFTS/19-087.html),\n[_Features_](https://docs.opengeospatial.org/is/17-069r4/17-069r4.html),\n[_EDR_](https://docs.ogc.org/is/19-086r5/19-086r5.html), or\n[_Maps_](https://docs.ogc.org/is/20-058/20-058.html)...) to retrieve output results, which may\ntrigger on-demand processing." - } - } + "$ref": "#/components/responses/rExecuteCollectionRedirect" }, "404": { - "$ref": "#/components/responses/NotFound" + "$ref": "#/components/responses/rNotFound" }, "500": { - "$ref": "#/components/responses/ServerError" + "$ref": "#/components/responses/rServerError" } }, "callbacks": { @@ -477,10 +455,10 @@ ], "responses": { "200": { - "$ref": "#/components/responses/JobList" + "$ref": "#/components/responses/rJobList" }, "404": { - "$ref": "#/components/responses/NotFound" + "$ref": "#/components/responses/rNotFound" } } } @@ -500,13 +478,13 @@ ], "responses": { "200": { - "$ref": "#/components/responses/Status" + "$ref": "#/components/responses/rStatus" }, "404": { - "$ref": "#/components/responses/NotFound" + "$ref": "#/components/responses/rNotFound" }, "500": { - "$ref": "#/components/responses/ServerError" + "$ref": "#/components/responses/rServerError" } } }, @@ -524,13 +502,13 @@ ], "responses": { "200": { - "$ref": "#/components/responses/Status" + "$ref": "#/components/responses/rStatus" }, "404": { - "$ref": "#/components/responses/NotFound" + "$ref": "#/components/responses/rNotFound" }, "500": { - "$ref": "#/components/responses/ServerError" + "$ref": "#/components/responses/rServerError" } } } @@ -553,13 +531,13 @@ ], "responses": { "200": { - "$ref": "#/components/responses/Results" + "$ref": "#/components/responses/rResults" }, "404": { - "$ref": "#/components/responses/NotFound" + "$ref": "#/components/responses/rNotFound" }, "500": { - "$ref": "#/components/responses/ServerError" + "$ref": "#/components/responses/rServerError" } } } @@ -585,13 +563,13 @@ ], "responses": { "200": { - "$ref": "#/components/responses/Output" + "$ref": "#/components/responses/rOutput" }, "404": { - "$ref": "#/components/responses/NotFound" + "$ref": "#/components/responses/rNotFound" }, "500": { - "$ref": "#/components/responses/ServerError" + "$ref": "#/components/responses/rServerError" } } } @@ -617,13 +595,13 @@ ], "responses": { "200": { - "$ref": "#/components/responses/Output" + "$ref": "#/components/responses/rOutput" }, "404": { - "$ref": "#/components/responses/NotFound" + "$ref": "#/components/responses/rNotFound" }, "500": { - "$ref": "#/components/responses/ServerError" + "$ref": "#/components/responses/rServerError" } } } @@ -759,578 +737,7 @@ "collectionDesc": { "allOf": [ { - "type": "object", - "required": [ - "id", - "links" - ], - "properties": { - "id": { - "type": "string", - "title": "Identifier of the resource", - "description": "Identifier of the collection, for example, used in URI path parameters.", - "minLength": 1, - "example": "dem" - }, - "title": { - "type": "string", - "title": "Title of the collection", - "description": "A short, human-readable summary of the collection.", - "example": "Digital Elevation Model" - }, - "description": { - "type": "string", - "title": "Description of the collection", - "description": "A human-readable explanation about data in the collection.", - "example": "A Digital Elevation Model." - }, - "attribution": { - "type": "string", - "title": "Attribution for the collection", - "description": "Attribution for the collection, providing a way to identify the source of the geographic information, which can contain markup text whose format may be indicated in the `attributionMediaType` property. That format can be either plain text (`text/plain`), HTML (`text/html`) or https://commonmark.org/[CommonMark] (`text/markdown`).\nIf the 'attributionMediaType' indicates something other than `text/plain`, the `attribution` element string should be interpreted by a markup parser selected based on that media type to be presented to the user\n(e.g., `text/markdown` will be parsed by a library supporting CommonMark). By allowing markup, the attribution string can import images (e.g., organization logos) and format the text (e.g., the name of the organization in italics)." - }, - "attributionMediaType": { - "title": "Media type of the attribution", - "description": "Media type for the markup language of the attribution: It can be either plain text (`text/plain`), HTML (`text/html`) or https://commonmark.org/[CommonMark] (`text/markdown`).", - "enum": [ - "text/plain", - "text/html", - "text/markdown" - ] - }, - "accessConstraints": { - "title": "Access Constraints of the collection", - "description": "Restrictions on the availability of the collection that the user needs to be aware of before using or redistributing the data:\n\n* unclassified: Available for general disclosure\n* restricted: Not for general disclosure\n* confidential: Available for someone who can be entrusted with information\n* secret: Kept or meant to be kept private, unknown, or hidden from all but a select group of people\n* topSecret: Of the highest secrecy", - "enum": [ - "unclassified", - "restricted", - "confidential", - "secret", - "topSecret" - ] - }, - "publisher": { - "type": "string", - "title": "Responsible party publishing the collection", - "description": "Organization or individual responsible for making the data available" - }, - "contacts": { - "type": "array", - "title": "A list of contacts", - "description": "A list of contacts qualified by their role(s) in association to the collection.", - "minItems": 1, - "items": { - "type": "object", - "title": "Contact information", - "description": "Identification of, and means of communication with, person responsible\nfor the resource.", - "anyOf": [ - { - "required": [ - "name" - ] - }, - { - "required": [ - "organization" - ] - } - ], - "properties": { - "identifier": { - "type": "string", - "title": "Identifier of the contact", - "description": "A value uniquely identifying a contact." - }, - "name": { - "type": "string", - "title": "name of the contact person", - "description": "The name of the responsible person." - }, - "position": { - "type": "string", - "title": "position in the organization", - "description": "The name of the role or position of the responsible person taken\nfrom the organization's formal organizational hierarchy or chart." - }, - "organization": { - "type": "string", - "title": "Name of the organization", - "description": "Organization/affiliation of the contact." - }, - "logo": { - "title": "Logo of the contact", - "description": "Link to a graphic identifying a contact. The link relation should be `icon`\nand the media type should be an image media type.", - "allOf": [ - { - "$ref": "#/components/schemas/link" - }, - { - "type": "object", - "required": [ - "rel", - "type" - ], - "properties": { - "rel": { - "enum": [ - "icon" - ] - } - } - } - ] - }, - "phones": { - "type": "array", - "title": "Telephone numbers", - "description": "Telephone numbers at which contact can be made.", - "items": { - "type": "object", - "required": [ - "value" - ], - "properties": { - "value": { - "type": "string", - "title": "Phone number.", - "description": "The value is the phone number itself.", - "pattern": "^\\+[1-9]{1}[0-9]{3,14}$", - "example": "+14165550142" - }, - "roles": { - "title": "Type of phone number.", - "description": "The type of phone number (e.g. home, work, fax, etc.).", - "$ref": "#/components/schemas/collectionDesc/allOf/0/properties/contacts/items/properties/roles" - } - } - } - }, - "emails": { - "type": "array", - "title": "Email addresses", - "description": "Email addresses at which contact can be made.", - "items": { - "type": "object", - "required": [ - "value" - ], - "properties": { - "value": { - "type": "string", - "title": "Email address", - "description": "The value is the email itself.", - "format": "email" - }, - "roles": { - "title": "Type of email", - "description": "The type of email (e.g. home, work, etc.).", - "$ref": "#/components/schemas/collectionDesc/allOf/0/properties/contacts/items/properties/roles" - } - } - } - }, - "addresses": { - "type": "array", - "title": "Postal addresses", - "description": "Physical locations at which contact can be made.", - "items": { - "type": "object", - "properties": { - "deliveryPoint": { - "type": "array", - "title": "Details of the address", - "description": "Address lines for the location (e.g. street name and door number).", - "items": { - "type": "string" - } - }, - "city": { - "type": "string", - "title": "City", - "description": "City for the location." - }, - "administrativeArea": { - "type": "string", - "title": "State of province", - "description": "State or province of the location." - }, - "postalCode": { - "type": "string", - "title": "Postal code", - "description": "ZIP or other postal code." - }, - "country": { - "type": "string", - "title": "Country", - "description": "Country of the physical address. ISO 3166-1 is recommended." - }, - "roles": { - "title": "Type of postal address", - "description": "The type of postal address (e.g. office, home, etc.).", - "$ref": "#/components/schemas/collectionDesc/allOf/0/properties/contacts/items/properties/roles" - } - } - } - }, - "links": { - "type": "array", - "title": "Links about the contact", - "description": "On-line information about the contact.", - "items": { - "allOf": [ - { - "$ref": "#/components/schemas/link" - }, - { - "type": "object", - "required": [ - "type" - ] - } - ] - } - }, - "hoursOfService": { - "type": "string", - "title": "Hours of service", - "description": "Time period when the contact can be contacted.", - "example": "Hours: Mo-Fr 10am-7pm Sa 10am-22pm Su 10am-21pm" - }, - "contactInstructions": { - "type": "string", - "title": "Contact instructions", - "description": "Supplemental instructions on how or when to contact can be made." - }, - "roles": { - "title": "Types of contact person", - "description": "The set of named duties, job functions and/or permissions associated with this contact. (e.g. developer, administrator, etc.).", - "type": "array", - "minItems": 1, - "items": { - "type": "string" - } - } - } - } - }, - "license": { - "type": "string", - "title": "License associated to the collection", - "description": "The legal provisions under which the data of this collection is made available." - }, - "rights": { - "type": "string", - "title": "Rights over the collection", - "description": "A statement that concerns all rights not addressed by the license such as a copyright statement." - }, - "formats": { - "title": "Formats for distributing the collection", - "description": "A list of formats in which the data of this collection is distributed", - "type": "array", - "items": { - "type": "object", - "anyOf": [ - { - "required": [ - "name" - ] - }, - { - "required": [ - "mediaType" - ] - } - ], - "properties": { - "name": { - "title": "Name of the format", - "description": "Name of the format.", - "type": "string" - }, - "mediaType": { - "title": "Media type of the format", - "description": "Media type of the format.", - "type": "string" - } - } - } - }, - "keywords": { - "type": "array", - "title": "Keywords representing aspects of the collection", - "description": "The topic or topics of the resource. Typically represented using free-form keywords, tags, key phrases, or classification codes.", - "items": { - "type": "string" - } - }, - "themes": { - "type": "array", - "title": "Themes represented by the resource", - "description": "A knowledge organization system used to classify the resource.", - "minItems": 1, - "items": { - "type": "object", - "required": [ - "concepts", - "scheme" - ], - "properties": { - "concepts": { - "type": "array", - "title": "List of concepts in the vocabulary", - "description": "One or more entity/concept identifiers from this knowledge system. it is recommended that a resolvable URI be used for each entity/concept identifier.", - "minItems": 1, - "items": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string", - "title": "Identifier for the concept", - "description": "Identifier for the concept in the knowledge system.", - "minLength": 1 - }, - "title": { - "type": "string", - "title": "Title of the concept", - "description": "A human readable title for the concept." - }, - "description": { - "type": "string", - "title": "Description of the concept", - "description": "A human readable description for the concept." - }, - "url": { - "type": "string", - "format": "uri", - "title": "URI of the concept", - "description": "A URI providing further description of the concept. It is called \"definition\" in STA." - } - } - } - }, - "scheme": { - "type": "string", - "title": "Identifier of the vocabulary", - "description": "An identifier for the knowledge organization system used to classify the resource. It is recommended that the identifier be a resolvable URI. The list of schemes used in a searchable catalog can be determined by inspecting the server's OpenAPI document or, if the server implements CQL2, by exposing a queryable (e.g. named `scheme`) and enumerating the list of schemes in the queryable's schema definition." - } - } - } - }, - "resourceLanguages": { - "type": "array", - "title": "The list of languages of the collection", - "description": "The list of languages in which the data of this collection is available.", - "items": { - "type": "object", - "title": "Resource language", - "description": "The language used for textual values in this resource.", - "required": [ - "code" - ], - "properties": { - "code": { - "type": "string", - "title": "Code", - "description": "The language tag as per RFC-5646.", - "example": "el" - }, - "name": { - "type": "string", - "minLength": 1, - "title": "Original name", - "description": "The untranslated name of the language.", - "example": "Ελληνικά" - }, - "alternate": { - "type": "string", - "title": "Translated name", - "description": "The name of the language in another well-understood language, usually English.", - "example": "Greek" - }, - "dir": { - "type": "string", - "title": "Direction of the text", - "description": "The direction for text in this language. The default, `ltr` (left-to-right), represents the most common situation. However, care should be taken to set the value of `dir` appropriately if the language direction is not `ltr`. Other values supported are `rtl` (right-to-left), `ttb` (top-to-bottom), and `btt` (bottom-to-top).", - "enum": [ - "ltr", - "rtl", - "ttb", - "btt" - ], - "default": "ltr" - } - } - } - }, - "links": { - "type": "array", - "title": "Links relevant to this collection", - "description": "Links to this or other resources related to this collection.", - "example": [ - { - "href": "http://data.example.org/collections/dem?f=json", - "rel": "self", - "type": "application/json", - "title": "Digital Elevation Model" - }, - { - "href": "http://data.example.org/collections/dem?f=html", - "rel": "alternate", - "type": "application/json", - "title": "Digital Elevation Model" - }, - { - "href": "http://data.example.org/collections/dem/coverage", - "rel": "coverage", - "type": "image/tiff; application=geotiff", - "title": "Digital Elevation Model" - }, - { - "href": "http://data.example.org/collections/dem/coverage/domainset", - "rel": "domainset", - "type": "application/json", - "title": "Digital Elevation Model" - }, - { - "href": "http://data.example.org/collections/dem/coverage/rangetype", - "rel": "rangetype", - "type": "application/json", - "title": "Digital Elevation Model" - }, - { - "href": "http://data.example.org/collections/dem/coverage/metadata", - "rel": "metadata", - "type": "application/json", - "title": "Digital Elevation Model" - } - ], - "items": { - "$ref": "#/components/schemas/link" - } - }, - "itemType": { - "title": "Type of the items in the collection", - "description": "Indicator about the type of the items in the collection if the collection has an accessible `/collections/{collectionId}/items` endpoint (e.g., `feature` or `record`).", - "type": "string", - "default": "feature" - }, - "dataType": { - "title": "Nature of the data in the collection", - "description": "Nature of the data in the collection. For example, this could be set to `map`, `vector` or `coverage`. It is not an indication of the available data access mechanism, but a hint regarding the internal representation of the data.", - "$ref": "#/components/schemas/dataType" - }, - "featureTypes": { - "title": "Feature type(s) present in the collection", - "description": "The list of feature (or coverage) type(s) which are present inside the collection. This is useful for associating the relevant portrayal rules of a style.", - "type": "string" - }, - "parent": { - "title": "Identifier of a parent collection (if this collection is part of a hierarchy)", - "description": "If this collection is part of a hierarchy, this property allows to identify another collection within the same dataset as its parent (by setting `parent` to the `id` of that collection), enabling clients to construct a hierarchy.", - "type": "string" - }, - "geoDataClasses": { - "title": "Class of data in the collection", - "description": "One or more classes of geospatial data, identified by a URI, which implies compatibility with a particular schema (fields/properties, as defined in OGC API - Common - Part 3: Schemas) for one or more collections, each with particular semantic definitions and data types. This is useful for example to determine compatibility with styles or processes, or to identify a particular collection within a dataset based on semantics.", - "type": "array", - "items": { - "type": "string", - "format": "uri" - } - }, - "defaultFields": { - "title": "List of fields returned by default", - "description": "A sorted list of field names. For a Features data access mechanism, it is the list of returnable properties included by default and complementing the geometry of the features. For a Coverage data access mechanism, they are names of fields whose values are included by default. Note that an API may provide a mechanism (e.g., a query parameter called `properties` or `exclude-properties`) to override this default list in customized responses.", - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1 - }, - "crs": { - "title": "List of coordinate reference systems supported in the collection", - "description": "The list of coordinate reference systems supported by the API; if present, the list should include the default coordinate reference system (usually listed first). Each item should be a URI to a registered CRS if one is available, or a full description of the CRS otherwise using e.g., a WKT2CRS string, or a PROJJSON, or CRS JSON object.", - "type": "array", - "items": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "object" - } - ] - }, - "default": [ - "http://www.opengis.net/def/crs/OGC/1.3/CRS84" - ], - "example": [ - "http://www.opengis.net/def/crs/OGC/1.3/CRS84", - "http://www.opengis.net/def/crs/EPSG/0/4326" - ] - }, - "storageCrs": { - "title": "Storage or native CRS of the data in the collection", - "description": "The native coordinate reference system (i.e., the most efficient CRS in which to request the data, possibly how the data is stored on the server); this is the default output coordinate reference system for Maps and Coverages. This should be a URI to a registered CRS if one is available, or a full description of the CRS otherwise using e.g., a WKT2CRS string, or a PROJJSON, or CRS JSON object.", - "anyOf": [ - { - "type": "string" - }, - { - "type": "object" - } - ], - "default": "http://www.opengis.net/def/crs/OGC/1.3/CRS84", - "example": "http://www.opengis.net/def/crs/OGC/1.3/CRS84" - }, - "epoch": { - "title": "Epoch of the data in the collection", - "description": "Epoch of the native (storage) Coordinate Reference System (CRS)", - "type": "number", - "example": 2021.33 - }, - "geometryDimension": { - "title": "Number of spatial dimensions of the primary geometry for the data", - "description": "Number of spatial dimensions of the primary geometry of individual elements of the data: 0 for points, 1 for curves, 2 for surfaces, 3 for solids and unspecified when mixed or unknown. Not to be confused with the dimensions of the domain which are defined by the extent element.", - "type": "integer", - "minimum": 0, - "maximum": 3 - }, - "minScaleDenominator": { - "title": "Minimum scale denominator for the collection", - "description": "Minimum scale denominator for usage of the collection.", - "type": "number" - }, - "maxScaleDenominator": { - "title": "Maximum scale denominator for the collection", - "description": "Maximum scale denominator for usage of the collection.", - "type": "number" - }, - "minCellSize": { - "title": "Minimum cell size for the collection", - "description": "Minimum cell size for usage of the collection.", - "type": "number" - }, - "maxCellSize": { - "title": "Maximum cell size for the collection", - "description": "Maximum cell size for usage of the collection.", - "type": "number" - }, - "created": { - "title": "Timestamp when the collection was first produced", - "description": "Timestamp indicating when the data in the collection was first produced.", - "type": "string", - "format": "date-time" - }, - "updated": { - "title": "Timestamp of the last change/revision to the collection", - "description": "Timestamp of the last change/revision to the data in the collection.", - "type": "string", - "format": "date-time" - } - } + "$ref": "#/components/schemas/collectionProperties" }, { "type": "object", @@ -1350,159 +757,23 @@ "type": "object", "properties": { "spatial": { - "title": "Spatial extent", - "description": "The spatial extent of the data in the collection.", - "type": "object", - "properties": { - "bbox": { - "title": "Bounding box in the 'crs' coordinates", - "description": "One or more bounding boxes that describe the spatial extent of the dataset.\n\nThe first bounding box describes the overall spatial\nextent of the data. All subsequent bounding boxes describe\nmore precise bounding boxes, e.g., to identify clusters of data.\nClients only interested in the overall spatial extent will\nonly need to access the first item in each array.", - "type": "array", - "minItems": 1, - "items": { - "description": "Each bounding box is provided as four or six numbers, depending on\nwhether the coordinate reference system includes a vertical axis\n(height or depth):\n\n* Lower left corner, coordinate axis 1\n* Lower left corner, coordinate axis 2\n* Minimum value, coordinate axis 3 (optional)\n* Upper right corner, coordinate axis 1\n* Upper right corner, coordinate axis 2\n* Maximum value, coordinate axis 3 (optional)\n\nIf the value consists of four numbers, the coordinate reference system is\nWGS 84 longitude/latitude (http://www.opengis.net/def/crs/OGC/1.3/CRS84)\nunless a different coordinate reference system is specified in `crs` property.\n\nIf the value consists of six numbers, the coordinate reference system is WGS 84\nlongitude/latitude/ellipsoidal height (http://www.opengis.net/def/crs/OGC/0/CRS84h)\nunless a different coordinate reference system is specified in `crs` property.\n\nFor WGS 84 longitude/latitude the values are in most cases the sequence of\nminimum longitude, minimum latitude, maximum longitude and maximum latitude.\nHowever, in cases where the box spans the antimeridian the first value\n(west-most box edge) is larger than the third value (east-most box edge).\n\nIf the vertical axis is included, the third and the sixth number are\nthe bottom and the top of the 3-dimensional bounding box.\n\nIf a feature has multiple spatial geometry properties, it is the decision of the\nserver whether only a single spatial geometry property is used to determine\nthe extent or all relevant geometries.", - "type": "array", - "oneOf": [ - { - "minItems": 4, - "maxItems": 4 - }, - { - "minItems": 6, - "maxItems": 6 - } - ], - "items": { - "type": "number" - }, - "example": [ - -180, - -90, - 180, - 90 - ] - } - }, - "storageCrsBbox": { - "title": "Bounding box in the storage CRS", - "description": "One or more bounding boxes that describe the spatial extent of the dataset in the storage (native) CRS (`storageCrs` property).\n\nThe first bounding box describes the overall spatial\nextent of the data. All subsequent bounding boxes describe\nmore precise bounding boxes, e.g., to identify clusters of data.\nClients only interested in the overall spatial extent will\nonly need to access the first item in each array.", - "type": "array", - "minItems": 1, - "items": { - "description": "Each bounding box is provided as four or six numbers, depending on\nwhether the coordinate reference system includes a vertical axis\n(height or depth):\n\n* Lower left corner, coordinate axis 1\n* Lower left corner, coordinate axis 2\n* Minimum value, coordinate axis 3 (optional)\n* Upper right corner, coordinate axis 1\n* Upper right corner, coordinate axis 2\n* Maximum value, coordinate axis 3 (optional)", - "type": "array", - "oneOf": [ - { - "minItems": 4, - "maxItems": 4 - }, - { - "minItems": 6, - "maxItems": 6 - } - ], - "items": { - "type": "number" - }, - "example": [ - -180, - -90, - 180, - 90 - ] - } - }, - "crs": { - "title": "Coordinate reference system", - "description": "Coordinate reference system of the coordinates of the `bbox` property.\nThe default reference system is WGS 84 longitude/latitude.\nWGS 84 longitude/latitude/ellipsoidal height for coordinates with height.\nFor data not referenced to Earth, another CRS may be specified.\nThis should be a URI to a registered CRS if one is available, or a full description of the CRS otherwise using e.g., a WKT2CRS string, or a PROJJSON, or CRS JSON object.", - "anyOf": [ - { - "type": "string" - }, - { - "type": "string", - "enum": [ - "http://www.opengis.net/def/crs/OGC/1.3/CRS84", - "http://www.opengis.net/def/crs/OGC/0/CRS84h" - ] - }, - { - "type": "object" - } - ], - "default": "http://www.opengis.net/def/crs/OGC/1.3/CRS84" - }, - "grid": { - "title": "Grid description", - "description": "Provides information about the limited availability of data within the collection organized\nas a grid (regular or irregular) along each spatial dimension.", - "type": "array", - "minItems": 2, - "maxItems": 3, - "items": { - "$ref": "#/components/schemas/extent-UAD/allOf/0/additionalProperties/properties/grid" - } - } - } - }, - "temporal": { - "title": "Temporal extent", - "description": "The temporal extent of the data in the collection.", - "type": "object", - "properties": { - "interval": { - "title": "Temporal intervals", - "description": "One or more time intervals that describe the temporal extent of the dataset.\n\nThe first time interval describes the overall\ntemporal extent of the data. All subsequent time intervals describe\nmore precise time intervals, e.g., to identify clusters of data.\nClients only interested in the overall extent will only need\nto access the first item in each array.", - "type": "array", - "minItems": 1, - "items": { - "description": "Begin and end times of the time interval. The timestamps are in the\ntemporal coordinate reference system specified in `trs`. By default\nthis is the Gregorian calendar, expressed using RFC 3339 section 5.6.\nNote that these times may be specified using time zone offsets to UTC time other than zero.\n\nThe value `null` for start or end time is supported and indicates a half-bounded time interval.", - "type": "array", - "minItems": 2, - "maxItems": 2, - "items": { - "type": "string", - "format": "date-time", - "nullable": true, - "example": "2011-11-11T12:22:11Z" - } - } - }, - "trs": { - "title": "Temporal Coordinate Reference System", - "description": "Coordinate reference system of the coordinates in the temporal extent\n(property `interval`). The default reference system is the Gregorian calendar.\nFor data for which the Gregorian calendar is not suitable, such as geological time scale, another temporal reference system may be used.\nThis should be a URI to a registered TRS if one is available, or a full description of the TRS otherwise using e.g., a WKT2CRS string, or a PROJJSON, or CRS JSON object.", - "anyOf": [ - { - "type": "string" - }, - { - "type": "string", - "enum": [ - "http://www.opengis.net/def/uom/ISO-8601/0/Gregorian" - ] - }, - { - "type": "object" - } - ], - "default": "http://www.opengis.net/def/uom/ISO-8601/0/Gregorian" - }, - "grid": { - "$ref": "#/components/schemas/extent-UAD/allOf/0/additionalProperties/properties/grid" - } - } - } - } - }, - { - "anyOf": [ - { + "$ref": "#/components/schemas/spatialExtent" + }, + "temporal": { + "$ref": "#/components/schemas/temporalExtent" + } + } + }, + { + "anyOf": [ + { "type": "object", "description": "General object extension point" }, { "type": "object", "additionalProperties": { - "$ref": "#/components/schemas/extent-UAD/allOf/0/additionalProperties" + "$ref": "#/components/schemas/additionalDimensionExtent" } } ] @@ -1517,291 +788,14 @@ "type": "object", "properties": { "spatial": { - "$ref": "#/components/schemas/extent/allOf/0/properties/spatial" + "$ref": "#/components/schemas/spatialExtent" }, "temporal": { - "$ref": "#/components/schemas/extent/allOf/0/properties/temporal" + "$ref": "#/components/schemas/temporalExtent" } }, "additionalProperties": { - "title": "Extent of any additional dimensions", - "description": "The domain intervals for any additional dimensions of the extent (envelope) beyond those described in temporal and spatial.", - "type": "object", - "oneOf": [ - { - "required": [ - "interval", - "definition" - ] - }, - { - "required": [ - "interval", - "trs" - ] - }, - { - "required": [ - "interval", - "vrs" - ] - } - ], - "properties": { - "interval": { - "title": "Interval of the extent of this dimension", - "description": "One or more intervals that describe the extent for this dimension of the dataset.\nThe value `null` is supported and indicates an unbounded or half-bounded interval.\nThe first interval describes the overall extent of the data for this dimension.\nAll subsequent intervals describe more precise intervals, e.g., to identify clusters of data.\nClients only interested in the overall extent will only need\nto access the first item (a pair of lower and upper bound values).", - "type": "array", - "minItems": 1, - "items": { - "description": "Lower and upper bound values of the interval. The values\nare in the coordinate reference system specified in `crs`, `trs` or `vrs`.", - "type": "array", - "minItems": 2, - "maxItems": 2, - "items": { - "oneOf": [ - { - "type": "string", - "nullable": true, - "example": "2011-11-11T12:22:11Z" - }, - { - "type": "number", - "example": 32.7 - } - ] - } - } - }, - "trs": { - "title": "Temporal Coordinate Reference System", - "description": "Temporal Coordinate Reference System (e.g. as defined by Features for 'temporal'). This should be a URI to a registered TRS if one is available, or a full description of the TRS otherwise using e.g., a WKT2CRS string, or a PROJJSON, or CRS JSON object.", - "anyOf": [ - { - "type": "string" - }, - { - "type": "object" - } - ] - }, - "vrs": { - "title": "Vertical Coordinate Reference System", - "description": "Vertical Coordinate Reference System (e.g. as defined in EDR for 'vertical'). This should be a URI to a registered VRS if one is available, or a full description of the VRS otherwise using e.g., a WKT2CRS string, or a PROJJSON, or CRS JSON object.", - "anyOf": [ - { - "type": "string" - }, - { - "type": "object" - } - ] - }, - "grid": { - "type": "object", - "title": "Grid.", - "description": "Provides information about the limited availability of data within the collection organized as a grid (regular or irregular) along the dimension.", - "allOf": [ - { - "type": "object", - "required": [ - "cellsCount" - ], - "properties": { - "cellsCount": { - "title": "Cell count", - "description": "Number of samples available along the dimension for data organized as a regular or irregular grid.", - "type": "integer", - "example": 50 - } - } - }, - { - "oneOf": [ - { - "type": "object", - "title": "Regular grid", - "description": "Regular grid with samples spaced at equal intervals.", - "required": [ - "resolution", - "firstCoordinate" - ], - "properties": { - "resolution": { - "title": "Resolution", - "description": "Resolution of regularly gridded data along the dimension in the collection.", - "oneOf": [ - { - "type": "string", - "nullable": true, - "example": "PT1H" - }, - { - "type": "number", - "example": 0.0006866455078 - } - ] - }, - "availableResolutions": { - "title": "Available resolutions", - "description": "List of resolutions made available by the API. If not specified, there are no limit other than the limits indicated in `minCellSize` and `maxCellSize` of the collection description (though the API might still allow requesting data beyond these).", - "type": "array", - "items": { - "oneOf": [ - { - "type": "string", - "nullable": true - }, - { - "type": "number" - } - ] - }, - "example": [ - "P1H", - "P1D", - "P1M" - ] - }, - "firstCoordinate": { - "title": "First coordinate", - "description": "First coordinate where a regular grid begins, with subsequent coordinates adding `resolution` unit at each step.", - "oneOf": [ - { - "type": "string", - "nullable": true - }, - { - "type": "number" - } - ], - "example": -180 - }, - "relativeBounds": { - "title": "Relative bounds", - "description": "Distance in units from coordinate to the lower and upper bounds of each cell for regular grids, describing the geometry of the cells.", - "type": "array", - "minItems": 2, - "maxItems": 2, - "items": { - "oneOf": [ - { - "type": "string", - "nullable": true - }, - { - "type": "number" - } - ] - }, - "example": [ - -0.5, - 0.5 - ] - } - } - }, - { - "type": "object", - "title": "Irregular grid.", - "description": "Irregular grid with samples spaced at different intervals.", - "required": [ - "coordinates" - ], - "properties": { - "coordinates": { - "title": "Coordinates of the irregular cells", - "description": "List of coordinates along the dimension for which data organized as an irregular grid in the collection is available.\n(e.g., 2, 10, 80, 100).", - "type": "array", - "minItems": 1, - "items": { - "oneOf": [ - { - "type": "string", - "nullable": true, - "example": "2020-11-12T12:15:00Z" - }, - { - "type": "number", - "example": 12.3 - } - ] - }, - "example": [ - 2, - 10, - 80, - 100 - ] - }, - "boundsCoordinates": { - "title": "Bounds coordinates", - "description": "For irregular grids, an ordered list of the coordinates in absolute units of the lower and upper bounds of the dimension for each cell.", - "type": "array", - "minItems": 1, - "items": { - "type": "array", - "minItems": 2, - "maxItems": 2, - "items": { - "oneOf": [ - { - "type": "string", - "nullable": true - }, - { - "type": "number" - } - ] - } - }, - "example": [ - [ - -180, - -179 - ], - [ - -179, - -178 - ] - ] - } - } - } - ] - } - ] - }, - "definition": { - "type": "string", - "format": "uri", - "title": "Observed property definition", - "description": "A URI for the definition of the measured or observed property corresponding to this dimension." - }, - "unit": { - "type": "string", - "title": "Units of measurement", - "description": "The unit of measure in which the interval and/or grid values are expressed." - }, - "unitLang": { - "type": "string", - "default": "UCUM", - "title": "Units of measurement vocabulary", - "description": "The language (or vocabulary) in which the unit is expressed (defaults to \"UCUM\" if not specified)." - }, - "variableType": { - "title": "Variable type", - "description": "The type of variable which may inform correct interpretation and interpolation methods.", - "type": "string", - "enum": [ - "continuous", - "numericalOrdinal", - "numericalNominal", - "categoricalOrdinal", - "categoricalNominal" - ] - } - } + "$ref": "#/components/schemas/additionalDimensionExtent" } } ] @@ -1927,27 +921,7 @@ "pattern": "^\\d+\\.\\d+$" }, "cudaComputeCapability": { - "oneOf": [ - { - "type": "string", - "title": "CUDA compute capability", - "description": "The compute capability supported by the GPU hardware.", - "pattern": "^\\d+\\.\\d+$" - }, - { - "type": "array", - "title": "CUDAComputeCapabilityArray", - "items": { - "type": "string", - "title": "CUDA compute capability", - "description": "The compute capability supported by the GPU hardware.", - "pattern": "^\\d+\\.\\d+$" - }, - "minItems": 1 - } - ], - "title": "CUDA compute capability", - "description": "The compute capability supported by the GPU hardware.\n\n* If this is a single value, it defines only the minimum compute capability.\n GPUs with higher capability are also accepted.\n* If it is an array value, then only select GPUs with compute capabilities that explicitly\n appear in the array.\n See https://docs.nvidia.com/deploy/cuda-compatibility/#faq and\n https://docs.nvidia.com/cuda/cuda-c-best-practices-guide/index.html#cuda-compute-capability\n for details.\n" + "$ref": "#/components/schemas/CUDAComputeCapability" }, "cudaDeviceCountMin": { "type": "integer", @@ -2015,81 +989,7 @@ "$ref": "#/components/schemas/CWLDocumentation" }, { - "type": "object", - "properties": { - "$graph": { - "type": "array", - "title": "CWLGraphList", - "description": "Graph definition that defines *exactly one* CWL application package represented as list. Multiple definitions simultaneously deployed is NOT supported currently.", - "items": { - "allOf": [ - { - "$ref": "#/components/schemas/CWLMetadata" - }, - { - "$ref": "#/components/schemas/CWLDocumentation" - }, - { - "type": "object", - "title": "CWLGraphItem", - "properties": { - "class": { - "type": "string", - "title": "Class", - "description": "CWL class specification. This is used to differentiate between single Application Package (AP)definitions and Workflow that chains multiple packages.", - "enum": [ - "CommandLineTool", - "ExpressionTool", - "Workflow" - ] - }, - "id": { - "$ref": "#/components/schemas/CWLAtomicBase/properties/id" - }, - "intent": { - "$ref": "#/components/schemas/CWLAtomicBase/properties/intent" - }, - "requirements": { - "$ref": "#/components/schemas/CWLRequirements" - }, - "hints": { - "$ref": "#/components/schemas/CWLHints" - }, - "baseCommand": { - "$ref": "#/components/schemas/CWLCommand" - }, - "arguments": { - "$ref": "#/components/schemas/CWLArguments" - }, - "inputs": { - "$ref": "#/components/schemas/CWLInputsDefinition" - }, - "outputs": { - "$ref": "#/components/schemas/CWLOutputsDefinition" - }, - "scatter": { - "$ref": "#/components/schemas/CWLAtomicBase/properties/scatter" - }, - "scatterMethod": { - "$ref": "#/components/schemas/CWLAtomicBase/properties/scatterMethod" - } - }, - "required": [ - "class", - "id", - "inputs", - "outputs" - ] - } - ] - }, - "maxItems": 1, - "minItems": 1 - } - }, - "required": [ - "$graph" - ] + "$ref": "#/components/schemas/CWLGraphBase" } ] }, @@ -2214,14 +1114,7 @@ "CWLWorkflowStepList": { "type": "array", "items": { - "allOf": [ - { - "$ref": "#/components/schemas/CWLWorkflowStepId" - }, - { - "$ref": "#/components/schemas/CWLWorkflowStepObject" - } - ] + "$ref": "#/components/schemas/CWLWorkflowStepItem" } }, "CWLInputList": { @@ -2242,30 +1135,7 @@ "$ref": "#/components/schemas/CWLType" }, { - "title": "CWLInputObject (CWL type definition with parameters).", - "allOf": [ - { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/CWLType" - }, - "inputBinding": { - "$ref": "#/components/schemas/InputBinding" - } - }, - "required": [ - "type" - ], - "additionalProperties": {} - }, - { - "$ref": "#/components/schemas/CWLDefaultTypedConditional" - }, - { - "$ref": "#/components/schemas/CWLDocumentation" - } - ] + "$ref": "#/components/schemas/CWLInputObject" }, { "$ref": "#/components/schemas/CWLInputStdIn" @@ -2427,13 +1297,7 @@ "title": "String command." }, { - "type": "array", - "title": "Command Parts", - "items": { - "type": "string", - "title": "cmd" - }, - "additionalProperties": false + "$ref": "#/components/schemas/CommandParts" } ], "title": "CWLCommand", @@ -2474,31 +1338,7 @@ "description": "Input specification. Note that multiple formats are supported and\nnot all specification variants or parameters are presented here. Please refer\nto official CWL documentation for more details (https://www.commonwl.org).\n", "allOf": [ { - "type": "object", - "properties": { - "type": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLType" - }, - { - "$ref": "#/components/schemas/CWLInputStdIn" - } - ] - }, - "inputBinding": { - "$ref": "#/components/schemas/InputBinding" - }, - "id": { - "description": "Identifier of the CWL input.", - "$ref": "#/components/schemas/CWLAtomicBase/properties/id" - } - }, - "required": [ - "type", - "id" - ], - "additionalProperties": {} + "$ref": "#/components/schemas/CWLInputItemBase" }, { "$ref": "#/components/schemas/CWLDefaultTypedConditional" @@ -2542,9 +1382,7 @@ "type": "string" }, "checksum": { - "description": "Minimal pattern check to know which hash algorithm to apply,\nbut don't check too harshly for the rest (length, allowed characters, etc.).\n", - "type": "string", - "pattern": "^[a-z0-9\\-]+\\$[\\w\\-.]+$" + "$ref": "#/components/schemas/Checksum" }, "size": { "type": "integer", @@ -2769,29 +1607,7 @@ ] }, "expressionLib": { - "type": "array", - "title": "InlineJavascriptLibraries", - "description": "Additional code fragments that will also be inserted before executing the expression code.\nAllows for function definitions that may be called from CWL expressions.\n", - "items": { - "title": "exp_lib", - "oneOf": [ - { - "type": "string" - }, - { - "type": "object", - "properties": { - "$include": { - "type": "string" - } - }, - "required": [ - "$include" - ], - "additionalProperties": false - } - ] - } + "$ref": "#/components/schemas/InlineJavascriptLibraries" } }, "required": [ @@ -2832,13 +1648,7 @@ ] }, "loadListing": { - "type": "string", - "title": "LoadListingEnum", - "enum": [ - "no_listing", - "shallow_listing", - "deep_listing" - ] + "$ref": "#/components/schemas/LoadListingEnum" } }, "required": [ @@ -2878,105 +1688,28 @@ ] }, "coresMin": { - "oneOf": [ - { - "$ref": "#/components/schemas/ResourceQuantityOrFractional" - }, - { - "$ref": "#/components/schemas/CWLExpression" - } - ], - "title": "ResourceCoresMinimum (Minimum reserved number of CPU cores).", - "description": "Minimum reserved number of CPU cores.\n\nMay be a fractional value to indicate to a scheduling algorithm that one core can be allocated to\nmultiple jobs. For example, a value of 0.25 indicates that up to 4 jobs\nmay run in parallel on 1 core. A value of 1.25 means that up to 3 jobs\ncan run on a 4 core system (4/1.25 ~ 3).\n\nProcesses can only share a core allocation if the sum of each of their 'ramMax', 'tmpdirMax', and\n'outdirMax' requests also do not exceed the capacity of the node.\n\nProcesses sharing a core must have the same level of isolation (typically a container\nor VM) that they would normally have.\n\nThe reported number of CPU cores reserved for the process, which is available to expressions\non the 'CommandLineTool' as 'runtime.cores', must be a non-zero integer, and may be calculated by\nrounding up the cores request to the next whole number.\n\nScheduling systems may allocate fractional CPU resources by setting quotas or scheduling weights.\nScheduling systems that do not support fractional CPUs may round up the request to the next whole number.\n", - "default": 1 + "$ref": "#/components/schemas/ResourceCoresMinimum" }, "coresMax": { - "oneOf": [ - { - "$ref": "#/components/schemas/ResourceQuantityOrFractional" - }, - { - "$ref": "#/components/schemas/CWLExpression" - } - ], - "title": "ResourceCoresMaximum (Maximum reserved number of CPU cores).", - "description": "Maximum reserved number of CPU cores.\nSee 'coresMin' for discussion about fractional CPU requests.\n" + "$ref": "#/components/schemas/ResourceCoresMaximum" }, "ramMin": { - "oneOf": [ - { - "$ref": "#/components/schemas/ResourceQuantityOrFractional" - }, - { - "$ref": "#/components/schemas/CWLExpression" - } - ], - "title": "ResourceRAMMinimum (Minimum reserved RAM in mebibytes).", - "description": "Minimum reserved RAM in mebibytes (2**20).\n\nMay be a fractional value. If so, the actual RAM request must be rounded up\nto the next whole number.\n\nThe reported amount of RAM reserved for the process, which is available to\nexpressions on the 'CommandLineTool' as 'runtime.ram', must be a non-zero integer.\n", - "default": 256 + "$ref": "#/components/schemas/ResourceRAMMinimum" }, "ramMax": { - "oneOf": [ - { - "$ref": "#/components/schemas/ResourceQuantityOrFractional" - }, - { - "$ref": "#/components/schemas/CWLExpression" - } - ], - "title": "ResourceRAMMaximum (Maximum reserved RAM in mebibytes).", - "description": "Maximum reserved RAM in mebibytes (2**20).\nSee 'ramMin' for discussion about fractional RAM requests.\n" + "$ref": "#/components/schemas/ResourceRAMMaximum" }, "tmpdirMin": { - "oneOf": [ - { - "$ref": "#/components/schemas/ResourceQuantityOrFractional" - }, - { - "$ref": "#/components/schemas/CWLExpression" - } - ], - "title": "ResourceTmpDirMinimum (Minimum reserved filesystem based storage for the designated temporary) directory in mebibytes.", - "description": "Minimum reserved filesystem based storage for the designated temporary\ndirectory in mebibytes (2**20).\n\nMay be a fractional value. If so, the actual storage request must be rounded\nup to the next whole number.\n\nThe reported amount of storage reserved for the process, which is available\nto expressions on the 'CommandLineTool' as 'runtime.tmpdirSize', must be a non-zero integer.\n", - "default": 1024 + "$ref": "#/components/schemas/ResourceTmpDirMinimum" }, "tmpdirMax": { - "oneOf": [ - { - "$ref": "#/components/schemas/ResourceQuantityOrFractional" - }, - { - "$ref": "#/components/schemas/CWLExpression" - } - ], - "title": "ResourceTmpDirMaximum (Maximum reserved filesystem based storage for the designated temporary directory in mebibytes).", - "description": "Maximum reserved filesystem based storage for the designated temporary directory in mebibytes (2**20).\nSee 'tmpdirMin' for discussion about fractional storage requests.\n" + "$ref": "#/components/schemas/ResourceTmpDirMaximum" }, "outdirMin": { - "oneOf": [ - { - "$ref": "#/components/schemas/ResourceQuantityOrFractional" - }, - { - "$ref": "#/components/schemas/CWLExpression" - } - ], - "title": "ResourceOutDirMinimum (Minimum reserved filesystem based storage for the designated output directory in mebibytes).", - "description": "Minimum reserved filesystem based storage for the designated output\ndirectory in mebibytes (2**20).\n\nMay be a fractional value. If so, the actual storage request must be rounded\nup to the next whole number.\n\nThe reported amount of storage reserved for the process, which is available\nto expressions on the 'CommandLineTool' as 'runtime.outdirSize', must be a non-zero integer.\n", - "default": 1024 + "$ref": "#/components/schemas/ResourceOutDirMinimum" }, "outdirMax": { - "oneOf": [ - { - "$ref": "#/components/schemas/ResourceQuantityOrFractional" - }, - { - "$ref": "#/components/schemas/CWLExpression" - } - ], - "title": "ResourceOutDirMaximum (Maximum reserved filesystem based storage for the designated output directory in mebibytes).", - "description": "Maximum reserved filesystem based storage for the designated output\ndirectory in mebibytes (2**20).\nSee 'outdirMin' for discussion about fractional storage requests.\n", - "default": 1 + "$ref": "#/components/schemas/ResourceOutDirMaximum" } }, "additionalProperties": false @@ -3009,16 +1742,7 @@ ] }, "enableReuse": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "#/components/schemas/CWLExpression" - } - ], - "title": "EnableReuseValue", - "description": "Indicates if reuse is enabled for this tool.\n\nCan be an expression when combined with 'InlineJavascriptRequirement'\n(see also: https://www.commonwl.org/v1.2/CommandLineTool.html#Expression).\n" + "$ref": "#/components/schemas/EnableReuseValue" } }, "required": [ @@ -3039,17 +1763,7 @@ ] }, "timelimit": { - "oneOf": [ - { - "type": "number", - "minimum": 0 - }, - { - "$ref": "#/components/schemas/CWLExpression" - } - ], - "title": "TimeLimitValue", - "description": "The time limit, in seconds.\n\nA time limit of zero means no time limit.\nNegative time limits are an error.\n" + "$ref": "#/components/schemas/TimeLimitValue" } }, "required": [ @@ -3124,30 +1838,10 @@ "$ref": "#/components/schemas/CWLWorkflowStepRun" }, "when": { - "$ref": "#/components/schemas/CWLWorkflowStepOut" + "$ref": "#/components/schemas/CWLExpression" }, "out": { - "description": "Mapping of Workflow step inputs to nested CWL tool definitions inputs or outputs.", - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLAtomicBase/properties/id" - }, - { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/CWLAtomicBase/properties/id" - } - }, - "required": [ - "id" - ], - "additionalProperties": false - } - ] - } + "$ref": "#/components/schemas/CWLWorkflowStepOut-2" } }, "required": [ @@ -3160,32 +1854,10 @@ "type": "object", "properties": { "scatter": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLAtomicBase/properties/id/anyOf/1" - }, - { - "type": "array", - "title": "IdentifierArray", - "items": { - "$ref": "#/components/schemas/CWLAtomicBase/properties/id/anyOf/1" - }, - "minItems": 1 - } - ], - "title": "Scatter", - "description": "The scatter field specifies one or more input parameters which will be scattered.\n\nAn input parameter may be listed more than once. The declared type of each\ninput parameter implicitly becomes an array of items of the input parameter type.\nIf a parameter is listed more than once, it becomes a nested array. As a result,\nupstream parameters which are connected to scattered parameters must be arrays.\n\nAll output parameter types are also implicitly wrapped in arrays. Each job\nin the scatter results in an entry in the output array.\n\nIf any scattered parameter runtime value is an empty array, all outputs are\nset to empty arrays and no work is done for the step, according to applicable scattering rules.\n" + "$ref": "#/components/schemas/Scatter" }, "scatterMethod": { - "type": "string", - "title": "scatterMethod", - "description": "If 'scatter' declares more than one input parameter, 'scatterMethod'\ndescribes how to decompose the input into a discrete set of jobs.\n\n- dotproduct: specifies that each of the input arrays are aligned and\n one element taken from each array to construct each job. It is an\n error if all input arrays are not the same length.\n\n- nested_crossproduct: specifies the Cartesian product of the inputs, producing\n a job for every combination of the scattered inputs. The output must be nested\n arrays for each level of scattering, in the order that the input arrays\n are listed in the 'scatter' field.\n\n- flat_crossproduct: specifies the Cartesian product of the inputs, producing a\n job for every combination of the scattered inputs. The output arrays must be\n flattened to a single level, but otherwise listed in the order that the input\n arrays are listed in the 'scatter' field.\n", - "default": "dotproduct", - "enum": [ - "dotproduct", - "nested_crossproduct", - "flat_crossproduct" - ] + "$ref": "#/components/schemas/ScatterMethod" } } }, @@ -3193,7 +1865,7 @@ "type": "object", "properties": { "id": { - "$ref": "#/components/schemas/CWLAtomicBase/properties/id" + "$ref": "#/components/schemas/CWLIdentifier" } }, "required": [ @@ -3207,112 +1879,7 @@ "$ref": "#/components/schemas/CWLRequirementsMap" }, { - "type": "object", - "properties": { - "BuiltinRequirement": { - "type": "object", - "title": "BuiltinRequirement", - "description": "Hint indicating that the Application Package corresponds to a\nbuiltin process of this instance. (note: can only be an 'hint'\nas it is unofficial CWL specification).\n", - "properties": { - "class": { - "type": "string", - "enum": [ - "BuiltinRequirement" - ] - }, - "process": { - "description": "Builtin process identifier.", - "$ref": "#/components/schemas/CWLAtomicBase/properties/id/anyOf/1" - } - }, - "required": [ - "process", - "class" - ], - "additionalProperties": false - }, - "OGCAPIRequirement": { - "type": "object", - "title": "OGCAPIRequirement", - "description": "Hint indicating that the Application Package corresponds to an\nOGC API - Processes provider that should be remotely executed and monitored\nby this instance. (note: can only be an 'hint' as it is unofficial CWL specification).\n", - "properties": { - "class": { - "type": "string", - "enum": [ - "OGCAPIRequirement" - ] - }, - "process": { - "description": "Process location.", - "$ref": "#/components/schemas/SoftwarePackage/properties/specs/items" - } - }, - "required": [ - "process" - ], - "additionalProperties": false - }, - "WPS1Requirement": { - "type": "object", - "title": "WPS1Requirement", - "description": "Hint indicating that the Application Package corresponds to a\nWPS-1 provider process that should be remotely executed and monitored by this\ninstance. (note: can only be an ''hint'' as it is unofficial CWL specification).\n", - "properties": { - "class": { - "type": "string", - "enum": [ - "WPS1Requirement" - ] - }, - "process": { - "description": "Process identifier of the remote WPS provider.", - "$ref": "#/components/schemas/CWLAtomicBase/properties/id/anyOf/1" - }, - "provider": { - "description": "WPS provider endpoint.", - "$ref": "#/components/schemas/SoftwarePackage/properties/specs/items" - } - }, - "required": [ - "process", - "provider" - ], - "additionalProperties": false - } - }, - "additionalProperties": { - "type": "object", - "description": "Generic schema to allow alternative CWL requirements/hints not explicitly defined in schemas.", - "properties": { - "class": { - "type": "string", - "title": "Requirement Class Identifier", - "description": "CWL requirement class specification.", - "example": "UnknownRequirement", - "not": { - "enum": [ - "cwltool:CUDARequirement", - "DockerRequirement", - "SoftwareRequirement", - "ShellCommandRequirement", - "EnvVarRequirement", - "SchemaDefRequirement", - "InitialWorkDirRequirement", - "InlineJavascriptRequirement", - "InplaceUpdateRequirement", - "LoadListingRequirement", - "NetworkAccess", - "ResourceRequirement", - "ScatterFeatureRequirement", - "ToolTimeLimit", - "WorkReuse", - "MultipleInputFeatureRequirement", - "StepInputExpressionRequirement", - "SubworkflowFeatureRequirement" - ] - } - } - } - } + "$ref": "#/components/schemas/CWLHintsMapExtras" } ] }, @@ -3330,29 +1897,7 @@ ] }, { - "title": "CWLHintsItem", - "description": "For any new items added, ensure they are added under 'class' of 'UnknownRequirement' as well.\nOtherwise, insufficiently restrictive classes could cause multiple matches, failing the 'oneOf' condition.\n", - "oneOf": [ - { - "$ref": "#/components/schemas/CWLRequirementsItem" - }, - { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLHintsMap/anyOf/1/properties/BuiltinRequirement" - }, - { - "$ref": "#/components/schemas/CWLHintsMap/anyOf/1/properties/OGCAPIRequirement" - }, - { - "$ref": "#/components/schemas/CWLHintsMap/anyOf/1/properties/WPS1Requirement" - }, - { - "$ref": "#/components/schemas/CWLHintsMap/anyOf/1/additionalProperties" - } - ] - } - ] + "$ref": "#/components/schemas/CWLHintsItem" } ] }, @@ -3386,30 +1931,15 @@ }, { "description": "Nested CWL Workflow definition for the step.", - "allOf": [ - { - "$ref": "#/components/schemas/CWLMetadata" - }, - { - "$ref": "#/components/schemas/CWLDocumentation" - }, - { - "$ref": "#/components/schemas/CWLWorkflowClass" - }, - { - "$ref": "#/components/schemas/CWLWorkflowBase" - } - ] + "$ref": "#/components/schemas/CWLWorkflowNested" } ] }, "CWLWorkflowStepWhen": { - "$ref": "#/components/schemas/CWLWorkflowStepOut" + "$ref": "#/components/schemas/CWLExpression" }, "CWLWorkflowStepOut": { - "description": "Condition to execute a step that must evaluate to a boolean-like value.", - "type": "string", - "title": "CWLExpression" + "$ref": "#/components/schemas/CWLExpression" }, "CWLWorkflowStepInMap": { "type": "object", @@ -3425,14 +1955,7 @@ } }, { - "allOf": [ - { - "$ref": "#/components/schemas/CWLWorkflowStepInputBase" - }, - { - "$ref": "#/components/schemas/CWLWorkflowStepInputDefault" - } - ] + "$ref": "#/components/schemas/CWLWorkflowStepInput" } ] } @@ -3460,7 +1983,7 @@ "type": "object", "properties": { "id": { - "$ref": "#/components/schemas/CWLAtomicBase/properties/id" + "$ref": "#/components/schemas/CWLIdentifier" } }, "required": [ @@ -3484,11 +2007,7 @@ ] }, "linkMerge": { - "type": "string", - "enum": [ - "merge_nested", - "merge_flattened" - ] + "$ref": "#/components/schemas/LinkMergeMethod" }, "valueFrom": { "$ref": "#/components/schemas/CWLExpression" @@ -3551,19 +2070,7 @@ "$ref": "#/components/schemas/CWLDocumentation" }, { - "type": "object", - "title": "CWLOutputObject (CWL type definition with parameters).", - "properties": { - "type": { - "$ref": "#/components/schemas/CWLType" - }, - "outputBinding": { - "$ref": "#/components/schemas/CWLOutputItem/properties/outputBinding" - } - }, - "required": [ - "type" - ] + "$ref": "#/components/schemas/CWLOutputObjectBase" } ] }, @@ -3600,19 +2107,7 @@ ] }, "symbols": { - "type": "array", - "title": "CWLTypeSymbols (Allowed values composing the enum).", - "items": { - "oneOf": [ - { - "type": "number" - }, - { - "type": "string" - } - ], - "title": "CWLTypeSymbolValues" - } + "$ref": "#/components/schemas/CWLTypeSymbols" } }, "required": [ @@ -4007,9 +2502,7 @@ } }, { - "type": "string", - "format": "url", - "pattern": "^(((?:http|ftp)s?:\\/\\/)?(?!.*\\/\\/.*$)(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\\.)+(?:[A-Za-z]{2,6}\\.?|[A-Za-z0-9-]{2,}\\.?)|localhost|\\[[a-f0-9:]+\\]|\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})(?::\\d+)?(?:\\/?|[\\/?]\\S+))?(?:[A-Za-z0-9\\w\\-.\\/]+)?\\#?[A-Za-z0-9\\w\\-.]+$" + "$ref": "#/components/schemas/CWLTypeRecordRefPattern" } ] }, @@ -4029,16 +2522,7 @@ "CWLTypeRecordFieldsList": { "type": "array", "items": { - "allOf": [ - { - "$ref": "#/components/schemas/CWLTypeRecordFieldDef" - }, - { - "required": [ - "name" - ] - } - ] + "$ref": "#/components/schemas/CWLTypeRecordFieldsItem" } }, "CWLTypeRecordFieldDefBase": { @@ -4080,12 +2564,7 @@ "type": "object", "oneOf": [ { - "type": "object", - "properties": { - "loadListing": { - "$ref": "#/components/schemas/LoadListingRequirement/properties/loadListing" - } - } + "$ref": "#/components/schemas/CWLDirectoryOnlyParameters" }, { "not": { @@ -4106,17 +2585,7 @@ "type": "boolean" }, "format": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLExpression" - }, - { - "type": "array", - "items": { - "$ref": "#/components/schemas/CWLExpression" - } - } - ] + "$ref": "#/components/schemas/CWLFormat" }, "loadContents": { "type": "boolean" @@ -4444,14 +2913,7 @@ "type": "object", "properties": { "s:keywords": { - "title": "KeywordList", - "type": "array", - "description": "Keywords applied to the process for search and categorization purposes.", - "items": { - "type": "string", - "title": "keyword", - "minLength": 1 - } + "$ref": "#/components/schemas/CWLKeywordList" }, "version": { "type": "string", @@ -4489,23 +2951,7 @@ "description": "Direct CWL definition instead of the graph representation.", "properties": { "id": { - "anyOf": [ - { - "type": "string", - "title": "UUID", - "description": "Unique identifier.", - "format": "uuid", - "pattern": "^[a-f0-9]{8}(?:-?[a-f0-9]{4}){3}-?[a-f0-9]{12}$" - }, - { - "description": "Identifier with text pattern that can allow additional non-ASCII characters depending on regex implementation.\nThe identifier allows a '#' or a relative 'sub/part#ref' prefix, to support references to other definitions\nin the CWL document, such as when using 'SchemaDefRequirement'.\n\nJSON spec regex does not include '\\w' in its default subset to allow all word-like unicode characters\n(see reference: https://json-schema.org/understanding-json-schema/reference/regular_expressions.html).\n\nSince support is implementation specific, add both the ASCII-only and '\\w' representation simultaneously\nand let the parser reading this document apply whichever is more relevant or supported\n(see discussion: https://github.com/common-workflow-language/cwl-v1.2/pull/256#discussion_r1234037814).\n", - "pattern": "^([A-Za-z0-9\\w]+(/[A-Za-z0-9\\w]+)*)?[#.]?[A-Za-z0-9\\w]+(?:[-_.][A-Za-z0-9\\w]+)*$", - "type": "string", - "title": "Generic identifier name pattern." - } - ], - "title": "CWLIdentifier", - "description": "Reference to the process identifier." + "$ref": "#/components/schemas/CWLIdentifier" }, "class": { "type": "string", @@ -4517,15 +2963,7 @@ ] }, "intent": { - "type": "array", - "title": "CWLIntent", - "items": { - "type": "string", - "title": "item", - "description": "Identifier URL to a concept for the type of computational operation accomplished by this process\n(see example operations: http://edamontology.org/operation_0004).\n", - "format": "url", - "pattern": "^((?:http|ftp)s?://)?(?!.*//.*$)(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\\.)+(?:[A-Za-z]{2,6}\\.?|[A-Za-z0-9-]{2,}\\.?)|localhost|\\[[a-f0-9:]+\\]|\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})(?::\\d+)?(?:/?|[/?]\\S+)$" - } + "$ref": "#/components/schemas/CWLIntent" }, "requirements": { "$ref": "#/components/schemas/CWLRequirements" @@ -4558,30 +2996,10 @@ "$ref": "#/components/schemas/CWLExpression" }, "scatter": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLAtomicBase/properties/id" - }, - { - "type": "array", - "title": "CWLScatterMulti", - "items": { - "$ref": "#/components/schemas/CWLAtomicBase/properties/id" - } - } - ], - "title": "CWLScatter", - "description": "One or more input identifier of an application step within a Workflow\nwere an array-based input to that Workflow should be scattered across multiple\ninstances of the step application.\n" + "$ref": "#/components/schemas/CWLScatter" }, "scatterMethod": { - "type": "string", - "title": "scatterMethod", - "description": "Describes how to decompose the scattered input into a discrete\nset of jobs. When 'dotproduct', specifies that each of the input arrays\nare aligned and one element taken from each array to construct each job.\nIt is an error if all input arrays are of different length. When 'nested_crossproduct',\nspecifies the Cartesian product of the inputs, producing a job for every\ncombination of the scattered inputs. The output must be nested arrays\nfor each level of scattering, in the order that the input arrays are listed\nin the scatter field. When 'flat_crossproduct', specifies the Cartesian\nproduct of the inputs, producing a job for every combination of the scattered\ninputs. The output arrays must be flattened to a single level, but otherwise\nlisted in the order that the input arrays are listed in the scatter field.\n", - "enum": [ - "dotproduct", - "nested_crossproduct", - "flat_crossproduct" - ] + "$ref": "#/components/schemas/CWLScatterMethod" } }, "required": [ @@ -4641,29 +3059,11 @@ ] }, "outputBinding": { - "type": "object", - "title": "OutputBinding", - "description": "Defines how to retrieve the output result from the command.", - "properties": { - "glob": { - "description": "Glob pattern to find the output on disk or mounted docker volume.", - "oneOf": [ - { - "$ref": "#/components/schemas/CWLExpression" - }, - { - "type": "array", - "items": { - "$ref": "#/components/schemas/CWLExpression" - } - } - ] - } - } + "$ref": "#/components/schemas/OutputBinding" }, "id": { "description": "Identifier of the CWL output.", - "$ref": "#/components/schemas/CWLAtomicBase/properties/id" + "$ref": "#/components/schemas/CWLIdentifier" } }, "required": [ @@ -4739,9 +3139,7 @@ "specs": { "type": "array", "items": { - "type": "string", - "format": "url", - "pattern": "^((?:http|ftp)s?:\\/\\/)?(?!.*\\/\\/.*$)(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\\.)+(?:[A-Za-z]{2,6}\\.?|[A-Za-z0-9-]{2,}\\.?)|localhost|\\[[a-f0-9:]+\\]|\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})(?::\\d+)?(?:\\/?|[/?]\\S+)$" + "$ref": "#/components/schemas/ReferenceURL" } } }, @@ -4757,1316 +3155,215 @@ } }, "CQL2": { - "oneOf": [ - { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "and", - "or" - ] - }, - "args": { - "type": "array", - "minItems": 2, - "items": { - "$ref": "#/components/schemas/CQL2" - } - } - } + "$ref": "#/components/schemas/cql2" + }, + "enumeration": { + "type": "object", + "required": [ + "type", + "enum" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "enum" + ] }, - { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "not" - ] - }, - "args": { - "type": "array", - "minItems": 1, - "maxItems": 1, - "items": { - "$ref": "#/components/schemas/CQL2" - } - } + "enum": { + "type": "array", + "items": { + "type": "string" } - }, + } + } + }, + "processes-list": { + "type": "string", + "enum": [ + "RenderMap", + "ElevationContours", + "OSMERE" + ] + }, + "processSummary": { + "allOf": [ { - "oneOf": [ - { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "=", - "<>", - "<", - ">", - "<=", - ">=" - ] - }, - "args": { - "type": "array", - "minItems": 2, - "maxItems": 2, - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/0" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/1" - }, - { - "type": "boolean" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/4/oneOf/0" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/6" - } - ] - } - } - } - }, - { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "like" - ] - }, - "args": { - "type": "array", - "minItems": 2, - "maxItems": 2, - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/0" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/6" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6" - }, - { - "oneOf": [ - { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "casei" - ] - }, - "args": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CQL2/oneOf/2/oneOf/1/properties/args/items/oneOf/3" - }, - "minItems": 1, - "maxItems": 1 - } - } - }, - { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "accenti" - ] - }, - "args": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CQL2/oneOf/2/oneOf/1/properties/args/items/oneOf/3" - }, - "minItems": 1, - "maxItems": 1 - } - } - }, - { - "type": "string" - } - ] - } - ] - } - } - } - }, - { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "between" - ] - }, - "args": { - "type": "array", - "minItems": 3, - "maxItems": 3, - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/1" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/6" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6" - } - ] - } - } - } - }, - { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "in" - ] - }, - "args": { - "type": "array", - "minItems": 2, - "maxItems": 2, - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/CQL2/oneOf/2/oneOf/0/properties/args/items" - }, - { - "type": "array", - "items": { - "$ref": "#/components/schemas/CQL2/oneOf/2/oneOf/0/properties/args/items" - } - } - ] - } - } - } - }, - { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "isNull" - ] - }, - "args": { - "type": "array", - "minItems": 1, - "maxItems": 1, - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/0" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/1" - }, - { - "$ref": "#/components/schemas/CQL2" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/3" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/4" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/6" - } - ] - } - } - } - } - ] + "$ref": "#/components/schemas/descriptionType" }, { "type": "object", "required": [ - "op", - "args" + "id", + "version" ], "properties": { - "op": { - "type": "string", - "enum": [ - "s_contains", - "s_crosses", - "s_disjoint", - "s_equals", - "s_intersects", - "s_overlaps", - "s_touches", - "s_within" - ] + "id": { + "type": "string" }, - "args": { + "version": { + "type": "string" + }, + "jobControlOptions": { "type": "array", - "minItems": 2, - "maxItems": 2, "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/3" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/6" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6" - } - ] + "$ref": "#/components/schemas/jobControlOptions" } - } - } - }, - { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "t_after", - "t_before", - "t_contains", - "t_disjoint", - "t_during", - "t_equals", - "t_finishedBy", - "t_finishes", - "t_intersects", - "t_meets", - "t_metBy", - "t_overlappedBy", - "t_overlaps", - "t_startedBy", - "t_starts" - ] }, - "args": { + "links": { "type": "array", - "minItems": 2, - "maxItems": 2, "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/4" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/6" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6" - } - ] + "$ref": "#/components/schemas/link-2" } } } + } + ] + }, + "process": { + "allOf": [ + { + "$ref": "#/components/schemas/processSummary" }, { "type": "object", - "required": [ - "op", - "args" - ], "properties": { - "op": { - "type": "string", - "enum": [ - "a_containedBy", - "a_contains", - "a_equals", - "a_overlaps" - ] + "inputs": { + "additionalProperties": { + "$ref": "#/components/schemas/inputDescription" + } }, - "args": { - "type": "array", - "minItems": 2, - "maxItems": 2, - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/5" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/6" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6" - } - ] + "outputs": { + "additionalProperties": { + "$ref": "#/components/schemas/outputDescription" } } } + } + ] + }, + "processList": { + "type": "object", + "required": [ + "processes", + "links" + ], + "properties": { + "processes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/processSummary" + } }, - { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "not": { - "enum": [ - "and", - "or", - "not", - "=", - "<>", - "<", - ">", - "<=", - ">=", - "like", - "between", - "in", - "isNull", - "casei", - "accenti", - "s_contains", - "s_crosses", - "s_disjoint", - "s_equals", - "s_intersects", - "s_overlaps", - "s_touches", - "s_within", - "t_after", - "t_before", - "t_contains", - "t_disjoint", - "t_during", - "t_equals", - "t_finishedBy", - "t_finishes", - "t_intersects", - "t_meets", - "t_metBy", - "t_overlappedBy", - "t_overlaps", - "t_startedBy", - "t_starts", - "a_containedBy", - "a_contains", - "a_equals", - "a_overlaps", - "+", - "-", - "*", - "/", - "^", - "%", - "div" - ] - } - }, - "args": { - "type": "array", - "items": { - "oneOf": [ - { - "oneOf": [ - { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "casei" - ] - }, - "args": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/0" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/6" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6" - } - ] - }, - "minItems": 1, - "maxItems": 1 - } - } - }, - { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "accenti" - ] - }, - "args": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/0" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/6" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6" - } - ] - }, - "minItems": 1, - "maxItems": 1 - } - } - }, - { - "type": "string" - } - ] - }, - { - "oneOf": [ - { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "+", - "-", - "*", - "/", - "^", - "%", - "div" - ] - }, - "args": { - "type": "array", - "minItems": 2, - "maxItems": 2, - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/1/oneOf/0" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/6" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6" - }, - { - "type": "number" - } - ] - } - } - } - }, - { - "type": "number" - } - ] - }, - { - "$ref": "#/components/schemas/CQL2" - }, - { - "oneOf": [ - { - "oneOf": [ - { - "title": "GeoJSON Point", - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "Point" - ] - }, - "coordinates": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - }, - "bbox": { - "type": "array", - "minItems": 4, - "items": { - "type": "number" - } - } - } - }, - { - "title": "GeoJSON LineString", - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "LineString" - ] - }, - "coordinates": { - "type": "array", - "minItems": 2, - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - }, - "bbox": { - "type": "array", - "minItems": 4, - "items": { - "type": "number" - } - } - } - }, - { - "title": "GeoJSON Polygon", - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "Polygon" - ] - }, - "coordinates": { - "type": "array", - "items": { - "type": "array", - "minItems": 4, - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - } - }, - "bbox": { - "type": "array", - "minItems": 4, - "items": { - "type": "number" - } - } - } - }, - { - "title": "GeoJSON MultiPoint", - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "MultiPoint" - ] - }, - "coordinates": { - "type": "array", - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - }, - "bbox": { - "type": "array", - "minItems": 4, - "items": { - "type": "number" - } - } - } - }, - { - "title": "GeoJSON MultiLineString", - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "MultiLineString" - ] - }, - "coordinates": { - "type": "array", - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - } - }, - "bbox": { - "type": "array", - "minItems": 4, - "items": { - "type": "number" - } - } - } - }, - { - "title": "GeoJSON MultiPolygon", - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "MultiPolygon" - ] - }, - "coordinates": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "array", - "minItems": 4, - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - } - } - }, - "bbox": { - "type": "array", - "minItems": 4, - "items": { - "type": "number" - } - } - } - }, - { - "title": "GeoJSON GeometryCollection", - "type": "object", - "required": [ - "type", - "geometries" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "GeometryCollection" - ] - }, - "geometries": { - "type": "array", - "minItems": 2, - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/3/oneOf/0/oneOf/0" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/3/oneOf/0/oneOf/1" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/3/oneOf/0/oneOf/2" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/3/oneOf/0/oneOf/3" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/3/oneOf/0/oneOf/4" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/3/oneOf/0/oneOf/5" - } - ] - } - } - } - } - ] - }, - { - "type": "object", - "required": [ - "bbox" - ], - "properties": { - "bbox": { - "type": "array", - "oneOf": [ - { - "minItems": 4, - "maxItems": 4 - }, - { - "minItems": 6, - "maxItems": 6 - } - ], - "items": { - "type": "number" - } - } - } - } - ] - }, - { - "oneOf": [ - { - "oneOf": [ - { - "type": "object", - "required": [ - "date" - ], - "properties": { - "date": { - "type": "string", - "pattern": "^\\d{4}-\\d{2}-\\d{2}$" - } - } - }, - { - "type": "object", - "required": [ - "timestamp" - ], - "properties": { - "timestamp": { - "type": "string", - "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$" - } - } - } - ] - }, - { - "type": "object", - "required": [ - "interval" - ], - "properties": { - "interval": { - "type": "array", - "minItems": 2, - "maxItems": 2, - "items": { - "oneOf": [ - { - "oneOf": [ - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/4/oneOf/0/oneOf/0/properties/date" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/4/oneOf/0/oneOf/1/properties/timestamp" - } - ] - }, - { - "type": "string", - "enum": [ - ".." - ] - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/6" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6" - } - ] - } - } - } - } - ] - }, - { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/0" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/1" - }, - { - "$ref": "#/components/schemas/CQL2" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/3" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/4" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/5" - }, - { - "$ref": "#/components/schemas/CQL2/oneOf/6/properties/args/items/oneOf/6" - } - ] - } - }, - { - "type": "object", - "required": [ - "property" - ], - "properties": { - "property": { - "type": "string" - } - } - } - ] - } - } + "links": { + "type": "array", + "items": { + "$ref": "#/components/schemas/link-2" } - }, - { - "type": "boolean" } - ] + } }, - "enumeration": { + "jobList": { "type": "object", "required": [ - "type", - "enum" + "jobs", + "links" ], "properties": { - "type": { - "type": "string", - "enum": [ - "enum" - ] + "jobs": { + "type": "array", + "items": { + "$ref": "#/components/schemas/statusInfo" + } }, - "enum": { + "links": { + "type": "array", + "items": { + "$ref": "#/components/schemas/link-2" + } + } + } + }, + "bbox-processes": { + "$ref": "#/components/schemas/bbox" + }, + "descriptionType": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "keywords": { "type": "array", "items": { "type": "string" } + }, + "metadata": { + "type": "array", + "items": { + "$ref": "#/components/schemas/metadata" + } } } }, - "processes-list": { - "type": "string", - "enum": [ - "RenderMap", - "ElevationContours", - "OSMERE" - ] + "binaryValue": { + "type": "string" }, - "processSummary": { + "execute-workflow": { + "$ref": "#/components/schemas/execute-workflows" + }, + "inputParameterized": { "allOf": [ - { - "$ref": "#/components/schemas/descriptionType" - }, { "type": "object", "required": [ - "id", - "version" + "$input" ], "properties": { - "id": { - "type": "string" - }, - "version": { + "$input": { "type": "string" - }, - "jobControlOptions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/jobControlOptions" - } - }, - "links": { - "type": "array", - "items": { - "$ref": "#/components/schemas/inlineOrRefValue/oneOf/2" - } } } + }, + { + "$ref": "#/components/schemas/fieldsModifiers" } ] }, - "process": { - "allOf": [ - { - "$ref": "#/components/schemas/processSummary" + "format": { + "type": "object", + "properties": { + "mediaType": { + "type": "string" }, - { - "type": "object", - "properties": { - "inputs": { - "additionalProperties": { - "$ref": "#/components/schemas/inputDescription" - } + "encoding": { + "type": "string" + }, + "schema": { + "oneOf": [ + { + "type": "string", + "format": "url" }, - "outputs": { - "additionalProperties": { - "$ref": "#/components/schemas/outputDescription" - } + { + "type": "object" } - } + ] } - ] + } }, - "processList": { + "schemaAndOccurrences": { "type": "object", "required": [ - "processes", - "links" + "schema" ], "properties": { - "processes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/processSummary" - } - }, - "links": { - "type": "array", - "items": { - "$ref": "#/components/schemas/inlineOrRefValue/oneOf/2" - } - } - } - }, - "jobList": { - "type": "object", - "required": [ - "jobs", - "links" - ], - "properties": { - "jobs": { - "type": "array", - "items": { - "$ref": "#/components/schemas/statusInfo" - } - }, - "links": { - "type": "array", - "items": { - "$ref": "#/components/schemas/inlineOrRefValue/oneOf/2" - } - } - } - }, - "bbox-processes": { - "type": "object", - "required": [ - "bbox" - ], - "properties": { - "bbox": { - "type": "array", - "oneOf": [ - { - "minItems": 4, - "maxItems": 4 - }, - { - "minItems": 6, - "maxItems": 6 - } - ], - "items": { - "type": "number" - } - }, - "crs": { - "anyOf": [ - { - "type": "string", - "format": "uri", - "enum": [ - "http://www.opengis.net/def/crs/OGC/1.3/CRS84", - "http://www.opengis.net/def/crs/OGC/0/CRS84h" - ], - "default": "http://www.opengis.net/def/crs/OGC/1.3/CRS84" - }, - { - "type": "string", - "format": "uri", - "default": "http://www.opengis.net/def/crs/OGC/1.3/CRS84" - } - ] - } - } - }, - "descriptionType": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "keywords": { - "type": "array", - "items": { - "type": "string" - } - }, - "metadata": { - "type": "array", - "items": { - "$ref": "#/components/schemas/metadata" - } - } - } - }, - "binaryValue": { - "type": "string" - }, - "execute-workflow": { - "allOf": [ - { - "type": "object", - "properties": { - "process": { - "type": "string", - "format": "uri-reference", - "description": "The URI to the description of the process that should be executed.\nFor the top-level process, when the execution request is POSTed to `{root}/processes/{processId}/execution`, this should be an absolute URI,\nand the server should ignore this `process` key since the URI of the request already identifies the process to execute, and a client\nis not required to resolve and replace the URI if passing a nested process block as part of a larger workflow executing a nested process.\nIf a relative URI reference is used, the Base URI is defined as the URI of the description\n(`{root}/processes/{processId}`) of the receiving process, with this receiving process object understood as the\nEncapsulating Entity as per [RFC 3986 Section 5.1.2](https://datatracker.ietf.org/doc/html/rfc3986#section-5.1.2).\nIn the case of a nested process on the same OGC API root as the receiving process, using a simple process ID as the relative URI reference\nwould resolve to a process available at `{root}/processes/{processID}`, where `{root}` represents the landing page of the receiving process.\nFor example, if a top-level process at https://example.com/processes/buffer receives a nested processs `{ \"process\": \"clip\" }`,\nthat clip process is resolved as https://example.com/processes/clip." - }, - "inputs": { - "additionalProperties": { - "$ref": "#/components/schemas/values-workflows" - } - }, - "outputs": { - "additionalProperties": { - "type": "object", - "properties": { - "format": { - "$ref": "#/components/schemas/format" - }, - "$output": { - "type": "string" - } - } - } - }, - "subscriber": { - "$ref": "#/components/schemas/subscriber" - } - } - }, - { - "$ref": "#/components/schemas/fieldsModifiers" - }, - { - "example": { - "inputs": { - "data": [ - { - "collection": "https://example.com/collections/sentinel2-l2a", - "aliases": { - "evi": "2.5 * (B08 / 10000 - B04 / 10000) / (1 + B08 / 10000 + 6 * B04 / 10000 + -7.5 * B02 / 10000)" - }, - "properties": [ - "evi" - ] - } - ] - } - } - } - ] - }, - "inputParameterized": { - "allOf": [ - { - "type": "object", - "required": [ - "$input" - ], - "properties": { - "$input": { - "type": "string" - } - } - }, - { - "$ref": "#/components/schemas/fieldsModifiers" - } - ] - }, - "format": { - "type": "object", - "properties": { - "mediaType": { - "type": "string" - }, - "encoding": { - "type": "string" - }, - "schema": { - "oneOf": [ - { - "type": "string", - "format": "url" - }, - { - "type": "object" - } - ] - } - } - }, - "schemaAndOccurrences": { - "type": "object", - "required": [ - "schema" - ], - "properties": { - "schema": { - "$ref": "#/components/schemas/schema" + "schema": { + "$ref": "#/components/schemas/schema" }, "minOccurs": { "type": "integer", @@ -6100,24 +3397,7 @@ "$ref": "#/components/schemas/dataAccessAPIs" }, { - "type": "object", - "properties": { - "executionUnitRequirements": { - "type": "object", - "properties": { - "remote-access": { - "type": "boolean" - }, - "staging": { - "type": "string", - "enum": [ - "local-file", - "remote-access" - ] - } - } - } - } + "$ref": "#/components/schemas/executionUnitRequirements" }, { "$ref": "#/components/schemas/schemaAndOccurrences" @@ -6207,192 +3487,7 @@ "type": "string" }, { - "oneOf": [ - { - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "Point" - ] - }, - "coordinates": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - } - }, - { - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "MultiPoint" - ] - }, - "coordinates": { - "type": "array", - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - } - } - }, - { - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "LineString" - ] - }, - "coordinates": { - "type": "array", - "minItems": 2, - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - } - } - }, - { - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "MultiLineString" - ] - }, - "coordinates": { - "type": "array", - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - } - } - } - }, - { - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "Polygon" - ] - }, - "coordinates": { - "type": "array", - "items": { - "type": "array", - "minItems": 4, - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - } - } - } - }, - { - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "MultiPolygon" - ] - }, - "coordinates": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "array", - "minItems": 4, - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - } - } - } - } - }, - { - "type": "object", - "required": [ - "type", - "geometries" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "GeometryCollection" - ] - }, - "geometries": { - "type": "array", - "items": { - "$ref": "#/components/schemas/collectionValue/allOf/1/properties/geometry/oneOf/1" - } - } - } - } - ] + "$ref": "#/components/schemas/geometryGeoJSON" } ] }, @@ -6423,7 +3518,7 @@ "type": "string" }, { - "$ref": "#/components/schemas/CQL2" + "$ref": "#/components/schemas/cql2" } ] }, @@ -6504,7 +3599,7 @@ "type": "string" }, { - "$ref": "#/components/schemas/CQL2" + "$ref": "#/components/schemas/cql2" } ] } @@ -6543,7 +3638,7 @@ "$ref": "#/components/schemas/binaryValue" }, { - "$ref": "#/components/schemas/bbox-processes" + "$ref": "#/components/schemas/bbox" }, { "$ref": "#/components/schemas/collectionValue" @@ -6572,23 +3667,13 @@ "$ref": "#/components/schemas/binaryValue" }, { - "$ref": "#/components/schemas/bbox-processes" + "$ref": "#/components/schemas/bbox" }, { "$ref": "#/components/schemas/collectionValue" }, { - "allOf": [ - { - "type": "object", - "required": [ - "process" - ] - }, - { - "$ref": "#/components/schemas/execute-workflow" - } - ] + "$ref": "#/components/schemas/inputProcess" }, { "$ref": "#/components/schemas/inputParameterized" @@ -6608,7 +3693,7 @@ { "allOf": [ { - "$ref": "#/components/schemas/inlineOrRefValue/oneOf/2" + "$ref": "#/components/schemas/link-2" }, { "type": "object", @@ -6618,770 +3703,4373 @@ } } } - ] - }, - { - "type": "object", - "properties": { - "role": { - "type": "string" - }, - "title": { - "type": "string" - }, - "lang": { - "type": "string" - }, - "value": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "object" - } - ] - } - } - } - ] - }, - "values": { - "anyOf": [ - { - "$ref": "#/components/schemas/inlineOrRefValue" - }, - { - "type": "array", - "items": { - "$ref": "#/components/schemas/inlineOrRefValue" + ] + }, + { + "type": "object", + "properties": { + "role": { + "type": "string" + }, + "title": { + "type": "string" + }, + "lang": { + "type": "string" + }, + "value": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "object" + } + ] + } + } + } + ] + }, + "values": { + "anyOf": [ + { + "$ref": "#/components/schemas/inlineOrRefValue" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/inlineOrRefValue" + } + } + ] + }, + "values-workflows": { + "oneOf": [ + { + "$ref": "#/components/schemas/inlineOrRefValue-workflows" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/inlineOrRefValue-workflows" + } + } + ] + }, + "outputSelection": { + "type": "object", + "properties": { + "format": { + "$ref": "#/components/schemas/format" + } + } + }, + "outputDescription": { + "allOf": [ + { + "$ref": "#/components/schemas/descriptionType" + }, + { + "$ref": "#/components/schemas/dataClasses" + }, + { + "$ref": "#/components/schemas/dataAccessAPIs" + }, + { + "$ref": "#/components/schemas/schemaAndOccurrences" + } + ] + }, + "qualifiedValue": { + "allOf": [ + { + "$ref": "#/components/schemas/format" + }, + { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "$ref": "#/components/schemas/value" + } + } + } + ] + }, + "reference": { + "type": "object", + "required": [ + "$ref" + ], + "properties": { + "$ref": { + "type": "string", + "format": "uri-reference" + } + }, + "additionalProperties": false + }, + "results": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/values" + } + }, + "schema": { + "description": "Attributes of the features or fields of a coverage range. Defined by a subset of the JSON Schema for the properties of a feature", + "type": "object", + "required": [ + "type", + "properties" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "object" + ] + }, + "required": { + "type": "array", + "minItems": 1, + "items": { + "type": "string" + } + }, + "properties": { + "type": "object", + "default": {}, + "additionalProperties": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "array", + "boolean", + "integer", + "null", + "number", + "object", + "string" + ] + }, + "enum": { + "type": "array", + "minItems": 1, + "items": {}, + "uniqueItems": true + }, + "format": { + "type": "string" + }, + "contentMediaType": { + "type": "string" + }, + "maximum": { + "type": "number" + }, + "exclusiveMaximum": { + "type": "number" + }, + "minimum": { + "type": "number" + }, + "exclusiveMinimum": { + "type": "number" + }, + "pattern": { + "type": "string", + "format": "regex" + }, + "maxItems": { + "type": "integer", + "minimum": 0 + }, + "minItems": { + "type": "integer", + "default": 0, + "minimum": 0 + }, + "x-ogc-definition": { + "type": "string", + "format": "uri" + }, + "x-ogc-unit": { + "type": "string" + }, + "x-ogc-unitLang": { + "type": "string" + } + } + } + } + } + }, + "statusCode": { + "type": "string", + "nullable": false, + "enum": [ + "accepted", + "running", + "successful", + "failed", + "dismissed" + ] + }, + "subscriber": { + "description": "Optional URIs for callbacks for this job.\n\nSupport for this parameter is not required and the parameter may be\nremoved from the API definition, if conformance class **'callback'**\nis not listed in the conformance declaration under `/conformance`.", + "type": "object", + "properties": { + "successUri": { + "type": "string", + "format": "uri" + }, + "inProgressUri": { + "type": "string", + "format": "uri" + }, + "failedUri": { + "type": "string", + "format": "uri" + } + } + }, + "inlineOrRefValue": { + "oneOf": [ + { + "$ref": "#/components/schemas/valueNoObject" + }, + { + "$ref": "#/components/schemas/qualifiedValue" + }, + { + "$ref": "#/components/schemas/link-2" + } + ] + }, + "inlineOrRefValue-workflows": { + "oneOf": [ + { + "$ref": "#/components/schemas/valueNoObject-workflows" + }, + { + "$ref": "#/components/schemas/qualifiedValue-workflows" + }, + { + "$ref": "#/components/schemas/link" + } + ] + }, + "fieldsModifiers": { + "type": "object", + "properties": { + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "description": "Basic CQL2-JSON definition", + "type": "array", + "items": { + "type": "object" + } + } + ] + }, + "filter-lang": { + "type": "string", + "example": "cql2-text" + }, + "filter-crs": { + "type": "string", + "format": "uri-reference" + }, + "aliases": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "type": "array", + "items": { + "type": "string" + } + }, + "sortBy": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "statusInfo": { + "allOf": [ + { + "$ref": "#/components/schemas/descriptionType" + }, + { + "type": "object", + "required": [ + "id", + "status", + "processingEntityType" + ], + "properties": { + "id": { + "type": "string" + }, + "processID": { + "type": "string", + "format": "uri" + }, + "processingEntityType": { + "description": "The type of entity that created the job and is doing the processing.\nThis includes all the data access apis listed in \"apis.yaml\" plus\nthe processing APIs of OGC API Processes and OpenEO.", + "anyOf": [ + { + "$ref": "#/components/schemas/apis" + }, + { + "type": "string", + "enum": [ + "ogc-api-processes", + "openeo" + ] + } + ] + }, + "profileEntityType": { + "description": "The type of entity requesting this status information. This may\nbe differernt than the processing entity. For example, the\nprocessing entity may be OGC API Processes but the status\ninformation is requested via the OpenEO API.", + "anyOf": [ + { + "$ref": "#/components/schemas/apis" + }, + { + "type": "string", + "enum": [ + "ogc-api-processes", + "openeo" + ] + } + ] + }, + "request": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "object" + }, + { + "$ref": "#/components/schemas/link-2" + } + ] + }, + "status": { + "$ref": "#/components/schemas/statusCode" + }, + "message": { + "type": "string" + }, + "exception": { + "$ref": "#/components/schemas/exception" + }, + "created": { + "type": "string", + "format": "date-time" + }, + "started": { + "type": "string", + "format": "date-time" + }, + "finished": { + "type": "string", + "format": "date-time" + }, + "updated": { + "type": "string", + "format": "date-time" + }, + "progress": { + "type": "integer", + "minimum": 0, + "maximum": 100 + }, + "links": { + "type": "array", + "items": { + "$ref": "#/components/schemas/link-2" + } + } + } + } + ] + }, + "dataAccessAPIs": { + "type": "object", + "properties": { + "dataAccessAPIs": { + "type": "array", + "items": { + "$ref": "#/components/schemas/apis" + } + } + } + }, + "apis": { + "description": "A non-exhaustive list of OGC and other data access APIs. This list can\nbe extended as required.", + "type": "string", + "enum": [ + "ogc-api-features", + "ogc-api-coverages", + "ogc-api-edr", + "ogc-api-tiles", + "ogc-api-moving-features", + "ogc-api-sensor-things", + "ogc-api-records", + "ogc-api-dggs", + "stac-api" + ] + }, + "dataClasses": { + "type": "object", + "properties": { + "dataClasses": { + "type": "array", + "items": { + "type": "string", + "format": "uri" + } + } + } + }, + "ogcapppkg": { + "type": "object", + "required": [ + "executionUnit" + ], + "properties": { + "processDescription": { + "type": "object", + "required": [ + "process" + ], + "properties": { + "process": { + "$ref": "#/components/schemas/process" + } + } + }, + "executionUnit": { + "oneOf": [ + { + "$ref": "#/components/schemas/executionUnit" + }, + { + "$ref": "#/components/schemas/link" + }, + { + "$ref": "#/components/schemas/qualifiedValue" + }, + { + "$ref": "#/components/schemas/ogcapppkg-array" + } + ] + } + } + }, + "staticIndicator": { + "allOf": [ + { + "$ref": "#/components/schemas/processSummary" + }, + { + "type": "object", + "properties": { + "mutable": { + "type": "boolean", + "default": true + } + } + } + ] + }, + "linkBase": { + "type": "object", + "required": [ + "rel" + ], + "properties": { + "rel": { + "type": "string" + }, + "type": { + "type": "string" + }, + "hreflang": { + "type": "string" + }, + "title": { + "type": "string" + }, + "length": { + "type": "integer" + } + } + }, + "linkBaseExtended": { + "type": "object", + "properties": { + "method": { + "type": "string", + "enum": [ + "POST", + "GET", + "DELETE", + "PATCH" + ] + }, + "body": {}, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "link-2": { + "allOf": [ + { + "$ref": "#/components/schemas/linkBase" + }, + { + "$ref": "#/components/schemas/linkBaseExtended" + }, + { + "type": "object", + "required": [ + "href" + ], + "properties": { + "href": { + "type": "string" + } + } + } + ] + }, + "executionUnitRequirements": { + "type": "object", + "properties": { + "executionUnitRequirements": { + "type": "object", + "properties": { + "remote-access": { + "type": "boolean" + }, + "staging": { + "type": "string", + "enum": [ + "local-file", + "remote-access" + ] + } + } + } + } + }, + "inputBinding": { + "type": "object", + "description": ". Defines how to specify the input for the execution unit.\n. The value of various properties defined below can be expressions.\n . The expression language SHALL be JavaScript(???).\n. The \"$(...)\" syntax can be used to reference the current input or other\n process inputs in an expression.\n . The value \"self\" refers to the value of the current input.\n . The value \"inputs.\" refers to the value of another\n process input.\n . If the input is defined as a string of format \"file\" or \"directory\"\n then the meta-values \".path\", \".basename\", \".nameroot\" and \".nameext\"\n can be used to manipulate file or directory name without having to\n resort to complex regular expressions.\n . \".path\" returns the path of a file name without the file name\n . \".basename\" returns the name of the file without the path\n . \".nameroot\" returns the basename without any extension\n . \".nameext\" returns the extension of the basename", + "properties": { + "prefix": { + "description": "Command line prefix to add before the value.", + "type": "string" + }, + "position": { + "description": ". The zero-based sorting key.\n. The value can be an integer or a string.\n. If the value is a string then it should be an expression that evaluates\n to a single integer value or null.", + "oneOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "valueFrom": { + "description": ". If valueFrom is a constant string value, use this as the value.\n. If valueFrom is an expression, evaluate the expression to yield the\n actual value to use to build the command line.\n. If the value of the associated input parameter is null, valueFrom is\n not evaluated and nothing is added to the command line.", + "type": "string" + }, + "itemSeparator": { + "description": "Join the array elements into a single string with the elements separated\nby itemSeparator.", + "type": "string" + }, + "shellQuote": { + "description": ". A Boolean that controls whether the value is quoted on the command.\n. A value of true (or if shecllQuote is not provided) means that the\n implementation SHALL not permit the interpretation of any shell\n metacharacters or directives.\n. A value of false should be used to inject metacharacters for operations\n such as pipes.", + "type": "boolean" + } + }, + "additionalProperties": true + }, + "outputBinding": { + "type": "object", + "description": "Defines how to retrieve the output result from the command.", + "properties": { + "glob": { + "description": ". Wildcard pattern to find the output on disk or mounted volume.\n. Uses UNIX \"glob\" wildcard patterns (see: \"man 7 glob\").\n. See inputBinding.yaml for referencing input values in an output\n binding \"glob\" expression.", + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + } + ] + } + }, + "additionalProperties": true + }, + "executionUnit": { + "type": "object", + "description": "Resource containing executable or runtime information for executing the\nprocess.", + "required": [ + "type" + ], + "properties": { + "type": { + "description": "Type of execution unit.", + "type": "string", + "anyOf": [ + { + "enum": [ + "docker", + "oci" + ] + }, + { + "type": "string" + } + ] + }, + "image": { + "description": "Container image reference for the execution unit.", + "type": "string" + }, + "deployment": { + "description": "Deployment information for the execution unit.", + "type": "string", + "anyOf": [ + { + "enum": [ + "local", + "remote", + "hpc", + "cloud" + ] + }, + { + "type": "string" + } + ] + }, + "config": { + "type": "object", + "description": "Hardware requirements and configuration properties for executing the\nprocess.", + "properties": { + "cpuMin": { + "description": "Minimum number of CPUs required to run the process (unit is CPU core).", + "type": "number", + "minimum": 1 + }, + "cpuMax": { + "description": "Maximum number of CPU dedicated to the process (unit is CPU core)", + "type": "number" + }, + "memoryMin": { + "description": "Minimum RAM memory required to run the application (unit is GB)", + "type": "number" + }, + "memoryMax": { + "description": "Maximum RAM memory dedicated to the application (unit is GB)", + "type": "number" + }, + "storageTempMin": { + "description": "Minimum required temporary storage size (unit is GB)", + "type": "number" + }, + "storageOutputsMin": { + "description": "Minimum required output storage size (unit is GB)", + "type": "number" + }, + "jobTimeout": { + "description": "Timeout delay for a job execution (in seconds)", + "type": "number" + } + }, + "additionalProperties": true + }, + "bindings": { + "type": "object", + "properties": { + "inputBindings": { + "additionalProperties": { + "$ref": "#/components/schemas/inputBinding" + } + }, + "outputBindings": { + "additionalProperties": { + "$ref": "#/components/schemas/outputBinding" + } + } + } + } + }, + "additionalProperties": true, + "example": { + "type": "docker", + "image": "mydocker/ndvi:latest", + "bindings": { + "inputBindings": { + "inputImage": { + "prefix": "inputsImages=", + "inputSeparator": "," + } + }, + "outputBindings": { + "outputImage": { + "glob": "$(\"/outputs/ndvi_\" + inputs.inputImage.basename)" + } + } + }, + "deployment": "local", + "config": { + "cpuMin": 2, + "cpuMax": 5, + "memoryMin": 1, + "memoryMax": 3 + } + } + }, + "bbox-def-crs": { + "anyOf": [ + { + "type": "string", + "format": "uri", + "enum": [ + "http://www.opengis.net/def/crs/OGC/1.3/CRS84", + "http://www.opengis.net/def/crs/OGC/0/CRS84h" + ], + "default": "http://www.opengis.net/def/crs/OGC/1.3/CRS84" + }, + { + "type": "string", + "format": "uri", + "default": "http://www.opengis.net/def/crs/OGC/1.3/CRS84" + } + ] + }, + "bbox": { + "type": "object", + "required": [ + "bbox" + ], + "properties": { + "bbox": { + "type": "array", + "oneOf": [ + { + "minItems": 4, + "maxItems": 4 + }, + { + "minItems": 6, + "maxItems": 6 + } + ], + "items": { + "type": "number" + } + }, + "crs": { + "$ref": "#/components/schemas/bbox-def-crs" + } + } + }, + "pointGeoJSON": { + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "Point" + ] + }, + "coordinates": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + } + }, + "multipointGeoJSON": { + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "MultiPoint" + ] + }, + "coordinates": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + } + } + }, + "linestringGeoJSON": { + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "LineString" + ] + }, + "coordinates": { + "type": "array", + "minItems": 2, + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + } + } + }, + "multilinestringGeoJSON": { + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "MultiLineString" + ] + }, + "coordinates": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + } + } + } + }, + "polygonGeoJSON": { + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "Polygon" + ] + }, + "coordinates": { + "type": "array", + "items": { + "type": "array", + "minItems": 4, + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + } + } + } + }, + "multipolygonGeoJSON": { + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "MultiPolygon" + ] + }, + "coordinates": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "array", + "minItems": 4, + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + } + } + } + } + }, + "geometryGeoJSON": { + "oneOf": [ + { + "$ref": "#/components/schemas/pointGeoJSON" + }, + { + "$ref": "#/components/schemas/multipointGeoJSON" + }, + { + "$ref": "#/components/schemas/linestringGeoJSON" + }, + { + "$ref": "#/components/schemas/multilinestringGeoJSON" + }, + { + "$ref": "#/components/schemas/polygonGeoJSON" + }, + { + "$ref": "#/components/schemas/multipolygonGeoJSON" + }, + { + "$ref": "#/components/schemas/geometrycollectionGeoJSON" + } + ] + }, + "geometrycollectionGeoJSON": { + "type": "object", + "required": [ + "type", + "geometries" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "GeometryCollection" + ] + }, + "geometries": { + "type": "array", + "items": { + "$ref": "#/components/schemas/geometryGeoJSON" + } + } + } + }, + "cql2": { + "oneOf": [ + { + "$ref": "#/components/schemas/andOrExpression" + }, + { + "$ref": "#/components/schemas/notExpression" + }, + { + "$ref": "#/components/schemas/comparisonPredicate" + }, + { + "$ref": "#/components/schemas/spatialPredicate" + }, + { + "$ref": "#/components/schemas/temporalPredicate" + }, + { + "$ref": "#/components/schemas/arrayPredicate" + }, + { + "$ref": "#/components/schemas/functionRef" + }, + { + "type": "boolean" + } + ] + }, + "andOrExpression": { + "type": "object", + "required": [ + "op", + "args" + ], + "properties": { + "op": { + "type": "string", + "enum": [ + "and", + "or" + ] + }, + "args": { + "type": "array", + "minItems": 2, + "items": { + "$ref": "#/components/schemas/cql2" + } + } + } + }, + "notExpression": { + "type": "object", + "required": [ + "op", + "args" + ], + "properties": { + "op": { + "type": "string", + "enum": [ + "not" + ] + }, + "args": { + "type": "array", + "minItems": 1, + "maxItems": 1, + "items": { + "$ref": "#/components/schemas/cql2" + } + } + } + }, + "characterExpression": { + "oneOf": [ + { + "$ref": "#/components/schemas/casei" + }, + { + "$ref": "#/components/schemas/accenti" + }, + { + "type": "string" + } + ] + }, + "propertyRef": { + "type": "object", + "required": [ + "property" + ], + "properties": { + "property": { + "type": "string" + } + } + }, + "arithmeticExpression": { + "type": "object", + "required": [ + "op", + "args" + ], + "properties": { + "op": { + "type": "string", + "enum": [ + "+", + "-", + "*", + "/", + "^", + "%", + "div" + ] + }, + "args": { + "$ref": "#/components/schemas/arithmeticOperands" + } + } + }, + "functionRef": { + "type": "object", + "required": [ + "op", + "args" + ], + "properties": { + "op": { + "type": "string", + "not": { + "enum": [ + "and", + "or", + "not", + "=", + "<>", + "<", + ">", + "<=", + ">=", + "like", + "between", + "in", + "isNull", + "casei", + "accenti", + "s_contains", + "s_crosses", + "s_disjoint", + "s_equals", + "s_intersects", + "s_overlaps", + "s_touches", + "s_within", + "t_after", + "t_before", + "t_contains", + "t_disjoint", + "t_during", + "t_equals", + "t_finishedBy", + "t_finishes", + "t_intersects", + "t_meets", + "t_metBy", + "t_overlappedBy", + "t_overlaps", + "t_startedBy", + "t_starts", + "a_containedBy", + "a_contains", + "a_equals", + "a_overlaps", + "+", + "-", + "*", + "/", + "^", + "%", + "div" + ] + } + }, + "args": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/characterExpression" + }, + { + "$ref": "#/components/schemas/numericExpression" + }, + { + "$ref": "#/components/schemas/cql2" + }, + { + "$ref": "#/components/schemas/spatialInstance" + }, + { + "$ref": "#/components/schemas/temporalInstance" + }, + { + "$ref": "#/components/schemas/arrayExpression" + }, + { + "$ref": "#/components/schemas/propertyRef" + } + ] + } + } + } + }, + "arithmeticOperands": { + "type": "array", + "minItems": 2, + "maxItems": 2, + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/arithmeticExpression" + }, + { + "$ref": "#/components/schemas/propertyRef" + }, + { + "$ref": "#/components/schemas/functionRef" + }, + { + "type": "number" + } + ] + } + }, + "numericExpression": { + "oneOf": [ + { + "$ref": "#/components/schemas/arithmeticExpression" + }, + { + "type": "number" + } + ] + }, + "point": { + "title": "GeoJSON Point", + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "Point" + ] + }, + "coordinates": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + }, + "bbox": { + "type": "array", + "minItems": 4, + "items": { + "type": "number" + } + } + } + }, + "linestring": { + "title": "GeoJSON LineString", + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "LineString" + ] + }, + "coordinates": { + "type": "array", + "minItems": 2, + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + }, + "bbox": { + "type": "array", + "minItems": 4, + "items": { + "type": "number" + } + } + } + }, + "polygon": { + "title": "GeoJSON Polygon", + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "Polygon" + ] + }, + "coordinates": { + "type": "array", + "items": { + "type": "array", + "minItems": 4, + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + } + }, + "bbox": { + "type": "array", + "minItems": 4, + "items": { + "type": "number" + } + } + } + }, + "multipoint": { + "title": "GeoJSON MultiPoint", + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "MultiPoint" + ] + }, + "coordinates": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + }, + "bbox": { + "type": "array", + "minItems": 4, + "items": { + "type": "number" + } + } + } + }, + "multilinestring": { + "title": "GeoJSON MultiLineString", + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "MultiLineString" + ] + }, + "coordinates": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + } + }, + "bbox": { + "type": "array", + "minItems": 4, + "items": { + "type": "number" + } + } + } + }, + "multipolygon": { + "title": "GeoJSON MultiPolygon", + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "MultiPolygon" + ] + }, + "coordinates": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "array", + "minItems": 4, + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + } + } + }, + "bbox": { + "type": "array", + "minItems": 4, + "items": { + "type": "number" + } + } + } + }, + "geometrycollection": { + "title": "GeoJSON GeometryCollection", + "type": "object", + "required": [ + "type", + "geometries" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "GeometryCollection" + ] + }, + "geometries": { + "type": "array", + "minItems": 2, + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/point" + }, + { + "$ref": "#/components/schemas/linestring" + }, + { + "$ref": "#/components/schemas/polygon" + }, + { + "$ref": "#/components/schemas/multipoint" + }, + { + "$ref": "#/components/schemas/multilinestring" + }, + { + "$ref": "#/components/schemas/multipolygon" + } + ] + } + } + } + }, + "geometryLiteral": { + "oneOf": [ + { + "$ref": "#/components/schemas/point" + }, + { + "$ref": "#/components/schemas/linestring" + }, + { + "$ref": "#/components/schemas/polygon" + }, + { + "$ref": "#/components/schemas/multipoint" + }, + { + "$ref": "#/components/schemas/multilinestring" + }, + { + "$ref": "#/components/schemas/multipolygon" + }, + { + "$ref": "#/components/schemas/geometrycollection" + } + ] + }, + "bbox-2": { + "type": "array", + "oneOf": [ + { + "minItems": 4, + "maxItems": 4 + }, + { + "minItems": 6, + "maxItems": 6 + } + ], + "items": { + "type": "number" + } + }, + "bboxLiteral": { + "type": "object", + "required": [ + "bbox" + ], + "properties": { + "bbox": { + "$ref": "#/components/schemas/bbox-2" + } + } + }, + "spatialInstance": { + "oneOf": [ + { + "$ref": "#/components/schemas/geometryLiteral" + }, + { + "$ref": "#/components/schemas/bboxLiteral" + } + ] + }, + "dateString": { + "type": "string", + "pattern": "^\\d{4}-\\d{2}-\\d{2}$" + }, + "dateInstant": { + "type": "object", + "required": [ + "date" + ], + "properties": { + "date": { + "$ref": "#/components/schemas/dateString" + } + } + }, + "timestampString": { + "type": "string", + "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$" + }, + "timestampInstant": { + "type": "object", + "required": [ + "timestamp" + ], + "properties": { + "timestamp": { + "$ref": "#/components/schemas/timestampString" + } + } + }, + "instantInstance": { + "oneOf": [ + { + "$ref": "#/components/schemas/dateInstant" + }, + { + "$ref": "#/components/schemas/timestampInstant" + } + ] + }, + "instantString": { + "oneOf": [ + { + "$ref": "#/components/schemas/dateString" + }, + { + "$ref": "#/components/schemas/timestampString" + } + ] + }, + "intervalArray": { + "type": "array", + "minItems": 2, + "maxItems": 2, + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/instantString" + }, + { + "type": "string", + "enum": [ + ".." + ] + }, + { + "$ref": "#/components/schemas/propertyRef" + }, + { + "$ref": "#/components/schemas/functionRef" + } + ] + } + }, + "intervalInstance": { + "type": "object", + "required": [ + "interval" + ], + "properties": { + "interval": { + "$ref": "#/components/schemas/intervalArray" + } + } + }, + "temporalInstance": { + "oneOf": [ + { + "$ref": "#/components/schemas/instantInstance" + }, + { + "$ref": "#/components/schemas/intervalInstance" + } + ] + }, + "arrayExpression": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/characterExpression" + }, + { + "$ref": "#/components/schemas/numericExpression" + }, + { + "$ref": "#/components/schemas/cql2" + }, + { + "$ref": "#/components/schemas/spatialInstance" + }, + { + "$ref": "#/components/schemas/temporalInstance" + }, + { + "$ref": "#/components/schemas/arrayExpression" + }, + { + "$ref": "#/components/schemas/propertyRef" + } + ] + } + }, + "casei": { + "type": "object", + "required": [ + "op", + "args" + ], + "properties": { + "op": { + "type": "string", + "enum": [ + "casei" + ] + }, + "args": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/characterExpression" + }, + { + "$ref": "#/components/schemas/propertyRef" + }, + { + "$ref": "#/components/schemas/functionRef" + } + ] + }, + "minItems": 1, + "maxItems": 1 + } + } + }, + "accenti": { + "type": "object", + "required": [ + "op", + "args" + ], + "properties": { + "op": { + "type": "string", + "enum": [ + "accenti" + ] + }, + "args": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/characterExpression" + }, + { + "$ref": "#/components/schemas/propertyRef" + }, + { + "$ref": "#/components/schemas/functionRef" + } + ] + }, + "minItems": 1, + "maxItems": 1 + } + } + }, + "scalarExpression": { + "oneOf": [ + { + "$ref": "#/components/schemas/characterExpression" + }, + { + "$ref": "#/components/schemas/numericExpression" + }, + { + "type": "boolean" + }, + { + "$ref": "#/components/schemas/instantInstance" + }, + { + "$ref": "#/components/schemas/functionRef" + }, + { + "$ref": "#/components/schemas/propertyRef" + } + ] + }, + "scalarOperands": { + "type": "array", + "minItems": 2, + "maxItems": 2, + "items": { + "$ref": "#/components/schemas/scalarExpression" + } + }, + "binaryComparisonPredicate": { + "type": "object", + "required": [ + "op", + "args" + ], + "properties": { + "op": { + "type": "string", + "enum": [ + "=", + "<>", + "<", + ">", + "<=", + ">=" + ] + }, + "args": { + "$ref": "#/components/schemas/scalarOperands" + } + } + }, + "patternExpression": { + "oneOf": [ + { + "type": "object", + "required": [ + "op", + "args" + ], + "properties": { + "op": { + "type": "string", + "enum": [ + "casei" + ] + }, + "args": { + "type": "array", + "items": { + "$ref": "#/components/schemas/patternExpression" + }, + "minItems": 1, + "maxItems": 1 + } + } + }, + { + "type": "object", + "required": [ + "op", + "args" + ], + "properties": { + "op": { + "type": "string", + "enum": [ + "accenti" + ] + }, + "args": { + "type": "array", + "items": { + "$ref": "#/components/schemas/patternExpression" + }, + "minItems": 1, + "maxItems": 1 + } + } + }, + { + "type": "string" + } + ] + }, + "isLikeOperands": { + "type": "array", + "minItems": 2, + "maxItems": 2, + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/characterExpression" + }, + { + "$ref": "#/components/schemas/propertyRef" + }, + { + "$ref": "#/components/schemas/functionRef" + }, + { + "$ref": "#/components/schemas/patternExpression" + } + ] + } + }, + "isLikePredicate": { + "type": "object", + "required": [ + "op", + "args" + ], + "properties": { + "op": { + "type": "string", + "enum": [ + "like" + ] + }, + "args": { + "$ref": "#/components/schemas/isLikeOperands" + } + } + }, + "isBetweenOperands": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/numericExpression" + }, + { + "$ref": "#/components/schemas/propertyRef" + }, + { + "$ref": "#/components/schemas/functionRef" + } + ] + } + }, + "isBetweenPredicate": { + "type": "object", + "required": [ + "op", + "args" + ], + "properties": { + "op": { + "type": "string", + "enum": [ + "between" + ] + }, + "args": { + "$ref": "#/components/schemas/isBetweenOperands" + } + } + }, + "inListOperands": { + "type": "array", + "minItems": 2, + "maxItems": 2, + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/scalarExpression" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/scalarExpression" + } + } + ] + } + }, + "isInListPredicate": { + "type": "object", + "required": [ + "op", + "args" + ], + "properties": { + "op": { + "type": "string", + "enum": [ + "in" + ] + }, + "args": { + "$ref": "#/components/schemas/inListOperands" + } + } + }, + "isNullOperand": { + "type": "array", + "minItems": 1, + "maxItems": 1, + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/characterExpression" + }, + { + "$ref": "#/components/schemas/numericExpression" + }, + { + "$ref": "#/components/schemas/cql2" + }, + { + "$ref": "#/components/schemas/spatialInstance" + }, + { + "$ref": "#/components/schemas/temporalInstance" + }, + { + "$ref": "#/components/schemas/propertyRef" + } + ] + } + }, + "isNullPredicate": { + "type": "object", + "required": [ + "op", + "args" + ], + "properties": { + "op": { + "type": "string", + "enum": [ + "isNull" + ] + }, + "args": { + "$ref": "#/components/schemas/isNullOperand" + } + } + }, + "comparisonPredicate": { + "oneOf": [ + { + "$ref": "#/components/schemas/binaryComparisonPredicate" + }, + { + "$ref": "#/components/schemas/isLikePredicate" + }, + { + "$ref": "#/components/schemas/isBetweenPredicate" + }, + { + "$ref": "#/components/schemas/isInListPredicate" + }, + { + "$ref": "#/components/schemas/isNullPredicate" + } + ] + }, + "spatialOperands": { + "type": "array", + "minItems": 2, + "maxItems": 2, + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/spatialInstance" + }, + { + "$ref": "#/components/schemas/propertyRef" + }, + { + "$ref": "#/components/schemas/functionRef" + } + ] + } + }, + "spatialPredicate": { + "type": "object", + "required": [ + "op", + "args" + ], + "properties": { + "op": { + "type": "string", + "enum": [ + "s_contains", + "s_crosses", + "s_disjoint", + "s_equals", + "s_intersects", + "s_overlaps", + "s_touches", + "s_within" + ] + }, + "args": { + "$ref": "#/components/schemas/spatialOperands" + } + } + }, + "temporalOperands": { + "type": "array", + "minItems": 2, + "maxItems": 2, + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/temporalInstance" + }, + { + "$ref": "#/components/schemas/propertyRef" + }, + { + "$ref": "#/components/schemas/functionRef" + } + ] + } + }, + "temporalPredicate": { + "type": "object", + "required": [ + "op", + "args" + ], + "properties": { + "op": { + "type": "string", + "enum": [ + "t_after", + "t_before", + "t_contains", + "t_disjoint", + "t_during", + "t_equals", + "t_finishedBy", + "t_finishes", + "t_intersects", + "t_meets", + "t_metBy", + "t_overlappedBy", + "t_overlaps", + "t_startedBy", + "t_starts" + ] + }, + "args": { + "$ref": "#/components/schemas/temporalOperands" + } + } + }, + "arrayOperands": { + "type": "array", + "minItems": 2, + "maxItems": 2, + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/arrayExpression" + }, + { + "$ref": "#/components/schemas/propertyRef" + }, + { + "$ref": "#/components/schemas/functionRef" + } + ] + } + }, + "arrayPredicate": { + "type": "object", + "required": [ + "op", + "args" + ], + "properties": { + "op": { + "type": "string", + "enum": [ + "a_containedBy", + "a_contains", + "a_equals", + "a_overlaps" + ] + }, + "args": { + "$ref": "#/components/schemas/arrayOperands" + } + } + }, + "ogcapppkg-array": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/executionUnit" + }, + { + "$ref": "#/components/schemas/link" + }, + { + "$ref": "#/components/schemas/qualifiedValue" + } + ] + } + }, + "CWLKeywordList": { + "title": "KeywordList", + "type": "array", + "description": "Keywords applied to the process for search and categorization purposes.", + "items": { + "type": "string", + "title": "keyword", + "minLength": 1 + } + }, + "CWLTextPatternID": { + "description": "Identifier with text pattern that can allow additional non-ASCII characters depending on regex implementation.\nThe identifier allows a '#' or a relative 'sub/part#ref' prefix, to support references to other definitions\nin the CWL document, such as when using 'SchemaDefRequirement'.\n\nJSON spec regex does not include '\\w' in its default subset to allow all word-like unicode characters\n(see reference: https://json-schema.org/understanding-json-schema/reference/regular_expressions.html).\n\nSince support is implementation specific, add both the ASCII-only and '\\w' representation simultaneously\nand let the parser reading this document apply whichever is more relevant or supported\n(see discussion: https://github.com/common-workflow-language/cwl-v1.2/pull/256#discussion_r1234037814).\n", + "pattern": "^([A-Za-z0-9\\w]+(/[A-Za-z0-9\\w]+)*)?[#.]?[A-Za-z0-9\\w]+(?:[-_.][A-Za-z0-9\\w]+)*$", + "type": "string", + "title": "Generic identifier name pattern." + }, + "CWLIdentifier": { + "anyOf": [ + { + "type": "string", + "title": "UUID", + "description": "Unique identifier.", + "format": "uuid", + "pattern": "^[a-f0-9]{8}(?:-?[a-f0-9]{4}){3}-?[a-f0-9]{12}$" + }, + { + "$ref": "#/components/schemas/CWLTextPatternID" + } + ], + "title": "CWLIdentifier", + "description": "Reference to the process identifier." + }, + "CWLIntent": { + "type": "array", + "title": "CWLIntent", + "items": { + "type": "string", + "title": "item", + "description": "Identifier URL to a concept for the type of computational operation accomplished by this process\n(see example operations: http://edamontology.org/operation_0004).\n", + "format": "url", + "pattern": "^((?:http|ftp)s?://)?(?!.*//.*$)(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\\.)+(?:[A-Za-z]{2,6}\\.?|[A-Za-z0-9-]{2,}\\.?)|localhost|\\[[a-f0-9:]+\\]|\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})(?::\\d+)?(?:/?|[/?]\\S+)$" + } + }, + "CUDAComputeCapabilityArray": { + "type": "array", + "title": "CUDAComputeCapabilityArray", + "items": { + "type": "string", + "title": "CUDA compute capability", + "description": "The compute capability supported by the GPU hardware.", + "pattern": "^\\d+\\.\\d+$" + }, + "minItems": 1 + }, + "CUDAComputeCapability": { + "oneOf": [ + { + "type": "string", + "title": "CUDA compute capability", + "description": "The compute capability supported by the GPU hardware.", + "pattern": "^\\d+\\.\\d+$" + }, + { + "$ref": "#/components/schemas/CUDAComputeCapabilityArray" + } + ], + "title": "CUDA compute capability", + "description": "The compute capability supported by the GPU hardware.\n\n* If this is a single value, it defines only the minimum compute capability.\n GPUs with higher capability are also accepted.\n* If it is an array value, then only select GPUs with compute capabilities that explicitly\n appear in the array.\n See https://docs.nvidia.com/deploy/cuda-compatibility/#faq and\n https://docs.nvidia.com/cuda/cuda-c-best-practices-guide/index.html#cuda-compute-capability\n for details.\n" + }, + "ReferenceURL": { + "type": "string", + "format": "url", + "pattern": "^((?:http|ftp)s?:\\/\\/)?(?!.*\\/\\/.*$)(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\\.)+(?:[A-Za-z]{2,6}\\.?|[A-Za-z0-9-]{2,}\\.?)|localhost|\\[[a-f0-9:]+\\]|\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})(?::\\d+)?(?:\\/?|[/?]\\S+)$" + }, + "CWLTypeSymbolValues": { + "oneOf": [ + { + "type": "number" + }, + { + "type": "string" + } + ], + "title": "CWLTypeSymbolValues" + }, + "CWLTypeSymbols": { + "type": "array", + "title": "CWLTypeSymbols (Allowed values composing the enum).", + "items": { + "$ref": "#/components/schemas/CWLTypeSymbolValues" + } + }, + "CWLTypeRecordRefPattern": { + "type": "string", + "format": "url", + "pattern": "^(((?:http|ftp)s?:\\/\\/)?(?!.*\\/\\/.*$)(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\\.)+(?:[A-Za-z]{2,6}\\.?|[A-Za-z0-9-]{2,}\\.?)|localhost|\\[[a-f0-9:]+\\]|\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})(?::\\d+)?(?:\\/?|[\\/?]\\S+))?(?:[A-Za-z0-9\\w\\-.\\/]+)?\\#?[A-Za-z0-9\\w\\-.]+$" + }, + "CWLFormat": { + "oneOf": [ + { + "$ref": "#/components/schemas/CWLExpression" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/CWLExpression" + } + } + ] + }, + "LoadListingEnum": { + "type": "string", + "title": "LoadListingEnum", + "enum": [ + "no_listing", + "shallow_listing", + "deep_listing" + ] + }, + "CWLDirectoryOnlyParameters": { + "type": "object", + "properties": { + "loadListing": { + "$ref": "#/components/schemas/LoadListingEnum" + } + } + }, + "CWLTypeRecordFieldsItem": { + "allOf": [ + { + "$ref": "#/components/schemas/CWLTypeRecordFieldDef" + }, + { + "required": [ + "name" + ] + } + ] + }, + "Checksum": { + "description": "Minimal pattern check to know which hash algorithm to apply,\nbut don't check too harshly for the rest (length, allowed characters, etc.).\n", + "type": "string", + "pattern": "^[a-z0-9\\-]+\\$[\\w\\-.]+$" + }, + "InlineJavascriptLibObject": { + "type": "object", + "properties": { + "$include": { + "type": "string" + } + }, + "required": [ + "$include" + ], + "additionalProperties": false + }, + "InlineJavascriptLibItem": { + "oneOf": [ + { + "type": "string" + }, + { + "$ref": "#/components/schemas/InlineJavascriptLibObject" + } + ] + }, + "InlineJavascriptLibraries": { + "type": "array", + "title": "InlineJavascriptLibraries", + "description": "Additional code fragments that will also be inserted before executing the expression code.\nAllows for function definitions that may be called from CWL expressions.\n", + "items": { + "title": "exp_lib", + "$ref": "#/components/schemas/InlineJavascriptLibItem" + } + }, + "ResourceCoresMinimum": { + "oneOf": [ + { + "$ref": "#/components/schemas/ResourceQuantityOrFractional" + }, + { + "$ref": "#/components/schemas/CWLExpression" + } + ], + "title": "ResourceCoresMinimum (Minimum reserved number of CPU cores).", + "description": "Minimum reserved number of CPU cores.\n\nMay be a fractional value to indicate to a scheduling algorithm that one core can be allocated to\nmultiple jobs. For example, a value of 0.25 indicates that up to 4 jobs\nmay run in parallel on 1 core. A value of 1.25 means that up to 3 jobs\ncan run on a 4 core system (4/1.25 ~ 3).\n\nProcesses can only share a core allocation if the sum of each of their 'ramMax', 'tmpdirMax', and\n'outdirMax' requests also do not exceed the capacity of the node.\n\nProcesses sharing a core must have the same level of isolation (typically a container\nor VM) that they would normally have.\n\nThe reported number of CPU cores reserved for the process, which is available to expressions\non the 'CommandLineTool' as 'runtime.cores', must be a non-zero integer, and may be calculated by\nrounding up the cores request to the next whole number.\n\nScheduling systems may allocate fractional CPU resources by setting quotas or scheduling weights.\nScheduling systems that do not support fractional CPUs may round up the request to the next whole number.\n", + "default": 1 + }, + "ResourceCoresMaximum": { + "oneOf": [ + { + "$ref": "#/components/schemas/ResourceQuantityOrFractional" + }, + { + "$ref": "#/components/schemas/CWLExpression" + } + ], + "title": "ResourceCoresMaximum (Maximum reserved number of CPU cores).", + "description": "Maximum reserved number of CPU cores.\nSee 'coresMin' for discussion about fractional CPU requests.\n" + }, + "ResourceRAMMinimum": { + "oneOf": [ + { + "$ref": "#/components/schemas/ResourceQuantityOrFractional" + }, + { + "$ref": "#/components/schemas/CWLExpression" + } + ], + "title": "ResourceRAMMinimum (Minimum reserved RAM in mebibytes).", + "description": "Minimum reserved RAM in mebibytes (2**20).\n\nMay be a fractional value. If so, the actual RAM request must be rounded up\nto the next whole number.\n\nThe reported amount of RAM reserved for the process, which is available to\nexpressions on the 'CommandLineTool' as 'runtime.ram', must be a non-zero integer.\n", + "default": 256 + }, + "ResourceRAMMaximum": { + "oneOf": [ + { + "$ref": "#/components/schemas/ResourceQuantityOrFractional" + }, + { + "$ref": "#/components/schemas/CWLExpression" + } + ], + "title": "ResourceRAMMaximum (Maximum reserved RAM in mebibytes).", + "description": "Maximum reserved RAM in mebibytes (2**20).\nSee 'ramMin' for discussion about fractional RAM requests.\n" + }, + "ResourceTmpDirMinimum": { + "oneOf": [ + { + "$ref": "#/components/schemas/ResourceQuantityOrFractional" + }, + { + "$ref": "#/components/schemas/CWLExpression" + } + ], + "title": "ResourceTmpDirMinimum (Minimum reserved filesystem based storage for the designated temporary) directory in mebibytes.", + "description": "Minimum reserved filesystem based storage for the designated temporary\ndirectory in mebibytes (2**20).\n\nMay be a fractional value. If so, the actual storage request must be rounded\nup to the next whole number.\n\nThe reported amount of storage reserved for the process, which is available\nto expressions on the 'CommandLineTool' as 'runtime.tmpdirSize', must be a non-zero integer.\n", + "default": 1024 + }, + "ResourceTmpDirMaximum": { + "oneOf": [ + { + "$ref": "#/components/schemas/ResourceQuantityOrFractional" + }, + { + "$ref": "#/components/schemas/CWLExpression" + } + ], + "title": "ResourceTmpDirMaximum (Maximum reserved filesystem based storage for the designated temporary directory in mebibytes).", + "description": "Maximum reserved filesystem based storage for the designated temporary directory in mebibytes (2**20).\nSee 'tmpdirMin' for discussion about fractional storage requests.\n" + }, + "ResourceOutDirMinimum": { + "oneOf": [ + { + "$ref": "#/components/schemas/ResourceQuantityOrFractional" + }, + { + "$ref": "#/components/schemas/CWLExpression" + } + ], + "title": "ResourceOutDirMinimum (Minimum reserved filesystem based storage for the designated output directory in mebibytes).", + "description": "Minimum reserved filesystem based storage for the designated output\ndirectory in mebibytes (2**20).\n\nMay be a fractional value. If so, the actual storage request must be rounded\nup to the next whole number.\n\nThe reported amount of storage reserved for the process, which is available\nto expressions on the 'CommandLineTool' as 'runtime.outdirSize', must be a non-zero integer.\n", + "default": 1024 + }, + "ResourceOutDirMaximum": { + "oneOf": [ + { + "$ref": "#/components/schemas/ResourceQuantityOrFractional" + }, + { + "$ref": "#/components/schemas/CWLExpression" + } + ], + "title": "ResourceOutDirMaximum (Maximum reserved filesystem based storage for the designated output directory in mebibytes).", + "description": "Maximum reserved filesystem based storage for the designated output\ndirectory in mebibytes (2**20).\nSee 'outdirMin' for discussion about fractional storage requests.\n", + "default": 1 + }, + "TimeLimitValue": { + "oneOf": [ + { + "type": "number", + "minimum": 0 + }, + { + "$ref": "#/components/schemas/CWLExpression" + } + ], + "title": "TimeLimitValue", + "description": "The time limit, in seconds.\n\nA time limit of zero means no time limit.\nNegative time limits are an error.\n" + }, + "EnableReuseValue": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/components/schemas/CWLExpression" + } + ], + "title": "EnableReuseValue", + "description": "Indicates if reuse is enabled for this tool.\n\nCan be an expression when combined with 'InlineJavascriptRequirement'\n(see also: https://www.commonwl.org/v1.2/CommandLineTool.html#Expression).\n" + }, + "BuiltinRequirement": { + "type": "object", + "title": "BuiltinRequirement", + "description": "Hint indicating that the Application Package corresponds to a\nbuiltin process of this instance. (note: can only be an 'hint'\nas it is unofficial CWL specification).\n", + "properties": { + "class": { + "type": "string", + "enum": [ + "BuiltinRequirement" + ] + }, + "process": { + "description": "Builtin process identifier.", + "$ref": "#/components/schemas/CWLTextPatternID" + } + }, + "required": [ + "process", + "class" + ], + "additionalProperties": false + }, + "OGCAPIRequirement": { + "type": "object", + "title": "OGCAPIRequirement", + "description": "Hint indicating that the Application Package corresponds to an\nOGC API - Processes provider that should be remotely executed and monitored\nby this instance. (note: can only be an 'hint' as it is unofficial CWL specification).\n", + "properties": { + "class": { + "type": "string", + "enum": [ + "OGCAPIRequirement" + ] + }, + "process": { + "description": "Process location.", + "$ref": "#/components/schemas/ReferenceURL" + } + }, + "required": [ + "process" + ], + "additionalProperties": false + }, + "WPS1Requirement": { + "type": "object", + "title": "WPS1Requirement", + "description": "Hint indicating that the Application Package corresponds to a\nWPS-1 provider process that should be remotely executed and monitored by this\ninstance. (note: can only be an ''hint'' as it is unofficial CWL specification).\n", + "properties": { + "class": { + "type": "string", + "enum": [ + "WPS1Requirement" + ] + }, + "process": { + "description": "Process identifier of the remote WPS provider.", + "$ref": "#/components/schemas/CWLTextPatternID" + }, + "provider": { + "description": "WPS provider endpoint.", + "$ref": "#/components/schemas/ReferenceURL" + } + }, + "required": [ + "process", + "provider" + ], + "additionalProperties": false + }, + "UnknownRequirement": { + "type": "object", + "description": "Generic schema to allow alternative CWL requirements/hints not explicitly defined in schemas.", + "properties": { + "class": { + "type": "string", + "title": "Requirement Class Identifier", + "description": "CWL requirement class specification.", + "example": "UnknownRequirement", + "not": { + "enum": [ + "cwltool:CUDARequirement", + "DockerRequirement", + "SoftwareRequirement", + "ShellCommandRequirement", + "EnvVarRequirement", + "SchemaDefRequirement", + "InitialWorkDirRequirement", + "InlineJavascriptRequirement", + "InplaceUpdateRequirement", + "LoadListingRequirement", + "NetworkAccess", + "ResourceRequirement", + "ScatterFeatureRequirement", + "ToolTimeLimit", + "WorkReuse", + "MultipleInputFeatureRequirement", + "StepInputExpressionRequirement", + "SubworkflowFeatureRequirement" + ] + } + } + } + }, + "CWLHintsMapExtras": { + "type": "object", + "properties": { + "BuiltinRequirement": { + "$ref": "#/components/schemas/BuiltinRequirement" + }, + "OGCAPIRequirement": { + "$ref": "#/components/schemas/OGCAPIRequirement" + }, + "WPS1Requirement": { + "$ref": "#/components/schemas/WPS1Requirement" + } + }, + "additionalProperties": { + "$ref": "#/components/schemas/UnknownRequirement" + } + }, + "CWLHintsItemExtras": { + "oneOf": [ + { + "$ref": "#/components/schemas/BuiltinRequirement" + }, + { + "$ref": "#/components/schemas/OGCAPIRequirement" + }, + { + "$ref": "#/components/schemas/WPS1Requirement" + }, + { + "$ref": "#/components/schemas/UnknownRequirement" + } + ] + }, + "CWLHintsItem": { + "title": "CWLHintsItem", + "description": "For any new items added, ensure they are added under 'class' of 'UnknownRequirement' as well.\nOtherwise, insufficiently restrictive classes could cause multiple matches, failing the 'oneOf' condition.\n", + "oneOf": [ + { + "$ref": "#/components/schemas/CWLRequirementsItem" + }, + { + "$ref": "#/components/schemas/CWLHintsItemExtras" + } + ] + }, + "CommandParts": { + "type": "array", + "title": "Command Parts", + "items": { + "type": "string", + "title": "cmd" + }, + "additionalProperties": false + }, + "CWLInputItemBase": { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "$ref": "#/components/schemas/CWLType" + }, + { + "$ref": "#/components/schemas/CWLInputStdIn" + } + ] + }, + "inputBinding": { + "$ref": "#/components/schemas/InputBinding" + }, + "id": { + "description": "Identifier of the CWL input.", + "$ref": "#/components/schemas/CWLIdentifier" + } + }, + "required": [ + "type", + "id" + ], + "additionalProperties": {} + }, + "CWLInputObjectBase": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/CWLType" + }, + "inputBinding": { + "$ref": "#/components/schemas/InputBinding" + } + }, + "required": [ + "type" + ], + "additionalProperties": {} + }, + "CWLInputObject": { + "title": "CWLInputObject (CWL type definition with parameters).", + "allOf": [ + { + "$ref": "#/components/schemas/CWLInputObjectBase" + }, + { + "$ref": "#/components/schemas/CWLDefaultTypedConditional" + }, + { + "$ref": "#/components/schemas/CWLDocumentation" + } + ] + }, + "OutputBinding": { + "type": "object", + "title": "OutputBinding", + "description": "Defines how to retrieve the output result from the command.", + "properties": { + "glob": { + "description": "Glob pattern to find the output on disk or mounted docker volume.", + "oneOf": [ + { + "$ref": "#/components/schemas/CWLExpression" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/CWLExpression" + } + } + ] + } + } + }, + "CWLOutputObjectBase": { + "type": "object", + "title": "CWLOutputObject (CWL type definition with parameters).", + "properties": { + "type": { + "$ref": "#/components/schemas/CWLType" + }, + "outputBinding": { + "$ref": "#/components/schemas/OutputBinding" + } + }, + "required": [ + "type" + ] + }, + "CWLScatterMulti": { + "type": "array", + "title": "CWLScatterMulti", + "items": { + "$ref": "#/components/schemas/CWLIdentifier" + } + }, + "CWLScatter": { + "oneOf": [ + { + "$ref": "#/components/schemas/CWLIdentifier" + }, + { + "$ref": "#/components/schemas/CWLScatterMulti" + } + ], + "title": "CWLScatter", + "description": "One or more input identifier of an application step within a Workflow\nwere an array-based input to that Workflow should be scattered across multiple\ninstances of the step application.\n" + }, + "CWLScatterMethod": { + "type": "string", + "title": "scatterMethod", + "description": "Describes how to decompose the scattered input into a discrete\nset of jobs. When 'dotproduct', specifies that each of the input arrays\nare aligned and one element taken from each array to construct each job.\nIt is an error if all input arrays are of different length. When 'nested_crossproduct',\nspecifies the Cartesian product of the inputs, producing a job for every\ncombination of the scattered inputs. The output must be nested arrays\nfor each level of scattering, in the order that the input arrays are listed\nin the scatter field. When 'flat_crossproduct', specifies the Cartesian\nproduct of the inputs, producing a job for every combination of the scattered\ninputs. The output arrays must be flattened to a single level, but otherwise\nlisted in the order that the input arrays are listed in the scatter field.\n", + "enum": [ + "dotproduct", + "nested_crossproduct", + "flat_crossproduct" + ] + }, + "CWLGraphItemBase": { + "type": "object", + "title": "CWLGraphItem", + "properties": { + "class": { + "type": "string", + "title": "Class", + "description": "CWL class specification. This is used to differentiate between single Application Package (AP)definitions and Workflow that chains multiple packages.", + "enum": [ + "CommandLineTool", + "ExpressionTool", + "Workflow" + ] + }, + "id": { + "$ref": "#/components/schemas/CWLIdentifier" + }, + "intent": { + "$ref": "#/components/schemas/CWLIntent" + }, + "requirements": { + "$ref": "#/components/schemas/CWLRequirements" + }, + "hints": { + "$ref": "#/components/schemas/CWLHints" + }, + "baseCommand": { + "$ref": "#/components/schemas/CWLCommand" + }, + "arguments": { + "$ref": "#/components/schemas/CWLArguments" + }, + "inputs": { + "$ref": "#/components/schemas/CWLInputsDefinition" + }, + "outputs": { + "$ref": "#/components/schemas/CWLOutputsDefinition" + }, + "scatter": { + "$ref": "#/components/schemas/CWLScatter" + }, + "scatterMethod": { + "$ref": "#/components/schemas/CWLScatterMethod" + } + }, + "required": [ + "class", + "id", + "inputs", + "outputs" + ] + }, + "CWLGraphItem": { + "allOf": [ + { + "$ref": "#/components/schemas/CWLMetadata" + }, + { + "$ref": "#/components/schemas/CWLDocumentation" + }, + { + "$ref": "#/components/schemas/CWLGraphItemBase" + } + ] + }, + "CWLGraphList": { + "type": "array", + "title": "CWLGraphList", + "description": "Graph definition that defines *exactly one* CWL application package represented as list. Multiple definitions simultaneously deployed is NOT supported currently.", + "items": { + "$ref": "#/components/schemas/CWLGraphItem" + }, + "maxItems": 1, + "minItems": 1 + }, + "CWLGraphBase": { + "type": "object", + "properties": { + "$graph": { + "$ref": "#/components/schemas/CWLGraphList" + } + }, + "required": [ + "$graph" + ] + }, + "LinkMergeMethod": { + "type": "string", + "enum": [ + "merge_nested", + "merge_flattened" + ] + }, + "CWLWorkflowStepInput": { + "allOf": [ + { + "$ref": "#/components/schemas/CWLWorkflowStepInputBase" + }, + { + "$ref": "#/components/schemas/CWLWorkflowStepInputDefault" + } + ] + }, + "CWLWorkflowNested": { + "description": "Same as 'CWLWorkflow', but 'cwlVersion' not repeated (only at root).", + "allOf": [ + { + "$ref": "#/components/schemas/CWLMetadata" + }, + { + "$ref": "#/components/schemas/CWLDocumentation" + }, + { + "$ref": "#/components/schemas/CWLWorkflowClass" + }, + { + "$ref": "#/components/schemas/CWLWorkflowBase" + } + ] + }, + "CWLWorkflowStepOutId": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/CWLIdentifier" + } + }, + "required": [ + "id" + ], + "additionalProperties": false + }, + "CWLWorkflowStepOut-2": { + "description": "Mapping of Workflow step inputs to nested CWL tool definitions inputs or outputs.", + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/CWLIdentifier" + }, + { + "$ref": "#/components/schemas/CWLWorkflowStepOutId" + } + ] + } + }, + "IdentifierArray": { + "type": "array", + "title": "IdentifierArray", + "items": { + "$ref": "#/components/schemas/CWLTextPatternID" + }, + "minItems": 1 + }, + "Scatter": { + "oneOf": [ + { + "$ref": "#/components/schemas/CWLTextPatternID" + }, + { + "$ref": "#/components/schemas/IdentifierArray" + } + ], + "title": "Scatter", + "description": "The scatter field specifies one or more input parameters which will be scattered.\n\nAn input parameter may be listed more than once. The declared type of each\ninput parameter implicitly becomes an array of items of the input parameter type.\nIf a parameter is listed more than once, it becomes a nested array. As a result,\nupstream parameters which are connected to scattered parameters must be arrays.\n\nAll output parameter types are also implicitly wrapped in arrays. Each job\nin the scatter results in an entry in the output array.\n\nIf any scattered parameter runtime value is an empty array, all outputs are\nset to empty arrays and no work is done for the step, according to applicable scattering rules.\n" + }, + "ScatterMethod": { + "type": "string", + "title": "scatterMethod", + "description": "If 'scatter' declares more than one input parameter, 'scatterMethod'\ndescribes how to decompose the input into a discrete set of jobs.\n\n- dotproduct: specifies that each of the input arrays are aligned and\n one element taken from each array to construct each job. It is an\n error if all input arrays are not the same length.\n\n- nested_crossproduct: specifies the Cartesian product of the inputs, producing\n a job for every combination of the scattered inputs. The output must be nested\n arrays for each level of scattering, in the order that the input arrays\n are listed in the 'scatter' field.\n\n- flat_crossproduct: specifies the Cartesian product of the inputs, producing a\n job for every combination of the scattered inputs. The output arrays must be\n flattened to a single level, but otherwise listed in the order that the input\n arrays are listed in the 'scatter' field.\n", + "default": "dotproduct", + "enum": [ + "dotproduct", + "nested_crossproduct", + "flat_crossproduct" + ] + }, + "CWLWorkflowStepItem": { + "allOf": [ + { + "$ref": "#/components/schemas/CWLWorkflowStepId" + }, + { + "$ref": "#/components/schemas/CWLWorkflowStepObject" + } + ] + }, + "execute-workflows": { + "allOf": [ + { + "type": "object", + "properties": { + "process": { + "type": "string", + "format": "uri-reference", + "description": "The URI to the description of the process that should be executed.\nFor the top-level process, when the execution request is POSTed to `{root}/processes/{processId}/execution`, this should be an absolute URI,\nand the server should ignore this `process` key since the URI of the request already identifies the process to execute, and a client\nis not required to resolve and replace the URI if passing a nested process block as part of a larger workflow executing a nested process.\nIf a relative URI reference is used, the Base URI is defined as the URI of the description\n(`{root}/processes/{processId}`) of the receiving process, with this receiving process object understood as the\nEncapsulating Entity as per [RFC 3986 Section 5.1.2](https://datatracker.ietf.org/doc/html/rfc3986#section-5.1.2).\nIn the case of a nested process on the same OGC API root as the receiving process, using a simple process ID as the relative URI reference\nwould resolve to a process available at `{root}/processes/{processID}`, where `{root}` represents the landing page of the receiving process.\nFor example, if a top-level process at https://example.com/processes/buffer receives a nested processs `{ \"process\": \"clip\" }`,\nthat clip process is resolved as https://example.com/processes/clip." + }, + "inputs": { + "additionalProperties": { + "$ref": "#/components/schemas/values-workflows" + } + }, + "outputs": { + "additionalProperties": { + "$ref": "#/components/schemas/outputSelection-workflows" + } + }, + "subscriber": { + "$ref": "#/components/schemas/subscriber" + } + } + }, + { + "$ref": "#/components/schemas/fieldsModifiers" + }, + { + "example": { + "inputs": { + "data": [ + { + "collection": "https://example.com/collections/sentinel2-l2a", + "aliases": { + "evi": "2.5 * (B08 / 10000 - B04 / 10000) / (1 + B08 / 10000 + 6 * B04 / 10000 + -7.5 * B02 / 10000)" + }, + "properties": [ + "evi" + ] + } + ] + } + } + } + ] + }, + "inputProcess": { + "allOf": [ + { + "type": "object", + "required": [ + "process" + ] + }, + { + "$ref": "#/components/schemas/execute-workflows" + } + ] + }, + "value-workflows": { + "oneOf": [ + { + "$ref": "#/components/schemas/valueNoObject-workflows" + }, + { + "type": "object" + } + ] + }, + "qualifiedValue-workflows": { + "allOf": [ + { + "$ref": "#/components/schemas/format" + }, + { + "$ref": "#/components/schemas/fieldsModifiers" + }, + { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "$ref": "#/components/schemas/value-workflows" + } + } + } + ] + }, + "outputSelection-workflows": { + "type": "object", + "properties": { + "format": { + "$ref": "#/components/schemas/format" + }, + "$output": { + "type": "string" + } + } + }, + "FeatureCollection": { + "title": "GeoJSON FeatureCollection", + "type": "object", + "required": [ + "type", + "features" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "FeatureCollection" + ] + }, + "features": { + "type": "array", + "items": { + "title": "GeoJSON Feature", + "type": "object", + "required": [ + "type", + "properties", + "geometry" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "Feature" + ] + }, + "id": { + "oneOf": [ + { + "type": "number" + }, + { + "type": "string" + } + ] + }, + "properties": { + "type": "object", + "nullable": true + }, + "geometry": { + "oneOf": [ + { + "title": "GeoJSON Point", + "type": "object", + "nullable": true, + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "Point" + ] + }, + "coordinates": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + }, + "bbox": { + "type": "array", + "minItems": 4, + "items": { + "type": "number" + } + } + } + }, + { + "title": "GeoJSON LineString", + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "LineString" + ] + }, + "coordinates": { + "type": "array", + "minItems": 2, + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + }, + "bbox": { + "type": "array", + "minItems": 4, + "items": { + "type": "number" + } + } + } + }, + { + "title": "GeoJSON Polygon", + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "Polygon" + ] + }, + "coordinates": { + "type": "array", + "items": { + "type": "array", + "minItems": 4, + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + } + }, + "bbox": { + "type": "array", + "minItems": 4, + "items": { + "type": "number" + } + } + } + }, + { + "title": "GeoJSON MultiPoint", + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "MultiPoint" + ] + }, + "coordinates": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + }, + "bbox": { + "type": "array", + "minItems": 4, + "items": { + "type": "number" + } + } + } + }, + { + "title": "GeoJSON MultiLineString", + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "MultiLineString" + ] + }, + "coordinates": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + } + }, + "bbox": { + "type": "array", + "minItems": 4, + "items": { + "type": "number" + } + } + } + }, + { + "title": "GeoJSON MultiPolygon", + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "MultiPolygon" + ] + }, + "coordinates": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "array", + "minItems": 4, + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + } + } + }, + "bbox": { + "type": "array", + "minItems": 4, + "items": { + "type": "number" + } + } + } + } + ] + }, + "bbox": { + "type": "array", + "minItems": 4, + "items": { + "type": "number" + } + } + } } - } - ] - }, - "values-workflows": { - "oneOf": [ - { - "$ref": "#/components/schemas/inlineOrRefValue-workflows" }, - { + "bbox": { "type": "array", + "minItems": 4, "items": { - "$ref": "#/components/schemas/inlineOrRefValue-workflows" + "type": "number" } } - ] - }, - "outputSelection": { - "type": "object", - "properties": { - "format": { - "$ref": "#/components/schemas/format" - } } }, - "outputDescription": { - "allOf": [ - { - "$ref": "#/components/schemas/descriptionType" - }, - { - "$ref": "#/components/schemas/dataClasses" - }, - { - "$ref": "#/components/schemas/dataAccessAPIs" - }, - { - "$ref": "#/components/schemas/schemaAndOccurrences" - } - ] + "roles": { + "title": "Types or roles", + "description": "The list of duties, job functions or permissions assigned by the system and associated with the context of this member.", + "type": "array", + "minItems": 1, + "items": { + "type": "string" + } }, - "qualifiedValue": { - "allOf": [ + "contact": { + "type": "object", + "title": "Contact information", + "description": "Identification of, and means of communication with, person responsible\nfor the resource.", + "anyOf": [ { - "$ref": "#/components/schemas/format" + "required": [ + "name" + ] }, { - "type": "object", "required": [ - "value" - ], - "properties": { - "value": { - "$ref": "#/components/schemas/value" - } - } + "organization" + ] } - ] - }, - "reference": { - "type": "object", - "required": [ - "$ref" ], "properties": { - "$ref": { + "identifier": { "type": "string", - "format": "uri-reference" - } - }, - "additionalProperties": false - }, - "results": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/values" - } - }, - "schema": { - "description": "Attributes of the features or fields of a coverage range. Defined by a subset of the JSON Schema for the properties of a feature", - "type": "object", - "required": [ - "type", - "properties" - ], - "properties": { - "type": { + "title": "Identifier of the contact", + "description": "A value uniquely identifying a contact." + }, + "name": { "type": "string", - "enum": [ - "object" + "title": "name of the contact person", + "description": "The name of the responsible person." + }, + "position": { + "type": "string", + "title": "position in the organization", + "description": "The name of the role or position of the responsible person taken\nfrom the organization's formal organizational hierarchy or chart." + }, + "organization": { + "type": "string", + "title": "Name of the organization", + "description": "Organization/affiliation of the contact." + }, + "logo": { + "title": "Logo of the contact", + "description": "Link to a graphic identifying a contact. The link relation should be `icon`\nand the media type should be an image media type.", + "allOf": [ + { + "$ref": "#/components/schemas/link" + }, + { + "type": "object", + "required": [ + "rel", + "type" + ], + "properties": { + "rel": { + "enum": [ + "icon" + ] + } + } + } ] }, - "required": { + "phones": { "type": "array", - "minItems": 1, + "title": "Telephone numbers", + "description": "Telephone numbers at which contact can be made.", "items": { - "type": "string" + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "string", + "title": "Phone number.", + "description": "The value is the phone number itself.", + "pattern": "^\\+[1-9]{1}[0-9]{3,14}$", + "example": "+14165550142" + }, + "roles": { + "title": "Type of phone number.", + "description": "The type of phone number (e.g. home, work, fax, etc.).", + "$ref": "#/components/schemas/roles" + } + } } }, - "properties": { - "type": "object", - "default": {}, - "additionalProperties": { + "emails": { + "type": "array", + "title": "Email addresses", + "description": "Email addresses at which contact can be made.", + "items": { "type": "object", + "required": [ + "value" + ], "properties": { - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "type": { + "value": { "type": "string", - "enum": [ - "array", - "boolean", - "integer", - "null", - "number", - "object", - "string" - ] + "title": "Email address", + "description": "The value is the email itself.", + "format": "email" }, - "enum": { + "roles": { + "title": "Type of email", + "description": "The type of email (e.g. home, work, etc.).", + "$ref": "#/components/schemas/roles" + } + } + } + }, + "addresses": { + "type": "array", + "title": "Postal addresses", + "description": "Physical locations at which contact can be made.", + "items": { + "type": "object", + "properties": { + "deliveryPoint": { "type": "array", - "minItems": 1, - "items": {}, - "uniqueItems": true - }, - "format": { - "type": "string" + "title": "Details of the address", + "description": "Address lines for the location (e.g. street name and door number).", + "items": { + "type": "string" + } }, - "contentMediaType": { - "type": "string" + "city": { + "type": "string", + "title": "City", + "description": "City for the location." }, - "maximum": { - "type": "number" + "administrativeArea": { + "type": "string", + "title": "State of province", + "description": "State or province of the location." }, - "exclusiveMaximum": { - "type": "number" + "postalCode": { + "type": "string", + "title": "Postal code", + "description": "ZIP or other postal code." }, - "minimum": { - "type": "number" + "country": { + "type": "string", + "title": "Country", + "description": "Country of the physical address. ISO 3166-1 is recommended." }, - "exclusiveMinimum": { - "type": "number" + "roles": { + "title": "Type of postal address", + "description": "The type of postal address (e.g. office, home, etc.).", + "$ref": "#/components/schemas/roles" + } + } + } + }, + "links": { + "type": "array", + "title": "Links about the contact", + "description": "On-line information about the contact.", + "items": { + "allOf": [ + { + "$ref": "#/components/schemas/link" }, - "pattern": { + { + "type": "object", + "required": [ + "type" + ] + } + ] + } + }, + "hoursOfService": { + "type": "string", + "title": "Hours of service", + "description": "Time period when the contact can be contacted.", + "example": "Hours: Mo-Fr 10am-7pm Sa 10am-22pm Su 10am-21pm" + }, + "contactInstructions": { + "type": "string", + "title": "Contact instructions", + "description": "Supplemental instructions on how or when to contact can be made." + }, + "roles": { + "title": "Types of contact person", + "description": "The set of named duties, job functions and/or permissions associated with this contact. (e.g. developer, administrator, etc.).", + "$ref": "#/components/schemas/roles" + } + } + }, + "format-2": { + "type": "object", + "anyOf": [ + { + "required": [ + "name" + ] + }, + { + "required": [ + "mediaType" + ] + } + ], + "properties": { + "name": { + "title": "Name of the format", + "description": "Name of the format.", + "type": "string" + }, + "mediaType": { + "title": "Media type of the format", + "description": "Media type of the format.", + "type": "string" + } + } + }, + "theme": { + "type": "object", + "required": [ + "concepts", + "scheme" + ], + "properties": { + "concepts": { + "type": "array", + "title": "List of concepts in the vocabulary", + "description": "One or more entity/concept identifiers from this knowledge system. it is recommended that a resolvable URI be used for each entity/concept identifier.", + "minItems": 1, + "items": { + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { "type": "string", - "format": "regex" - }, - "maxItems": { - "type": "integer", - "minimum": 0 - }, - "minItems": { - "type": "integer", - "default": 0, - "minimum": 0 + "title": "Identifier for the concept", + "description": "Identifier for the concept in the knowledge system.", + "minLength": 1 }, - "x-ogc-definition": { + "title": { "type": "string", - "format": "uri" + "title": "Title of the concept", + "description": "A human readable title for the concept." }, - "x-ogc-unit": { - "type": "string" + "description": { + "type": "string", + "title": "Description of the concept", + "description": "A human readable description for the concept." }, - "x-ogc-unitLang": { - "type": "string" + "url": { + "type": "string", + "format": "uri", + "title": "URI of the concept", + "description": "A URI providing further description of the concept. It is called \"definition\" in STA." } } } + }, + "scheme": { + "type": "string", + "title": "Identifier of the vocabulary", + "description": "An identifier for the knowledge organization system used to classify the resource. It is recommended that the identifier be a resolvable URI. The list of schemes used in a searchable catalog can be determined by inspecting the server's OpenAPI document or, if the server implements CQL2, by exposing a queryable (e.g. named `scheme`) and enumerating the list of schemes in the queryable's schema definition." } } }, - "statusCode": { - "type": "string", - "nullable": false, - "enum": [ - "accepted", - "running", - "successful", - "failed", - "dismissed" - ] - }, - "subscriber": { - "description": "Optional URIs for callbacks for this job.\n\nSupport for this parameter is not required and the parameter may be\nremoved from the API definition, if conformance class **'callback'**\nis not listed in the conformance declaration under `/conformance`.", + "language": { "type": "object", + "title": "Resource language", + "description": "The language used for textual values in this resource.", + "required": [ + "code" + ], "properties": { - "successUri": { + "code": { "type": "string", - "format": "uri" + "title": "Code", + "description": "The language tag as per RFC-5646.", + "example": "el" }, - "inProgressUri": { + "name": { "type": "string", - "format": "uri" + "minLength": 1, + "title": "Original name", + "description": "The untranslated name of the language.", + "example": "Ελληνικά" }, - "failedUri": { + "alternate": { "type": "string", - "format": "uri" + "title": "Translated name", + "description": "The name of the language in another well-understood language, usually English.", + "example": "Greek" + }, + "dir": { + "type": "string", + "title": "Direction of the text", + "description": "The direction for text in this language. The default, `ltr` (left-to-right), represents the most common situation. However, care should be taken to set the value of `dir` appropriately if the language direction is not `ltr`. Other values supported are `rtl` (right-to-left), `ttb` (top-to-bottom), and `btt` (bottom-to-top).", + "enum": [ + "ltr", + "rtl", + "ttb", + "btt" + ], + "default": "ltr" } } }, - "inlineOrRefValue": { - "oneOf": [ - { - "$ref": "#/components/schemas/valueNoObject" + "collectionProperties": { + "type": "object", + "required": [ + "id", + "links" + ], + "properties": { + "id": { + "type": "string", + "title": "Identifier of the resource", + "description": "Identifier of the collection, for example, used in URI path parameters.", + "minLength": 1, + "example": "dem" }, - { - "$ref": "#/components/schemas/qualifiedValue" + "title": { + "type": "string", + "title": "Title of the collection", + "description": "A short, human-readable summary of the collection.", + "example": "Digital Elevation Model" }, - { - "allOf": [ + "description": { + "type": "string", + "title": "Description of the collection", + "description": "A human-readable explanation about data in the collection.", + "example": "A Digital Elevation Model." + }, + "attribution": { + "type": "string", + "title": "Attribution for the collection", + "description": "Attribution for the collection, providing a way to identify the source of the geographic information, which can contain markup text whose format may be indicated in the `attributionMediaType` property. That format can be either plain text (`text/plain`), HTML (`text/html`) or https://commonmark.org/[CommonMark] (`text/markdown`).\nIf the 'attributionMediaType' indicates something other than `text/plain`, the `attribution` element string should be interpreted by a markup parser selected based on that media type to be presented to the user\n(e.g., `text/markdown` will be parsed by a library supporting CommonMark). By allowing markup, the attribution string can import images (e.g., organization logos) and format the text (e.g., the name of the organization in italics)." + }, + "attributionMediaType": { + "title": "Media type of the attribution", + "description": "Media type for the markup language of the attribution: It can be either plain text (`text/plain`), HTML (`text/html`) or https://commonmark.org/[CommonMark] (`text/markdown`).", + "enum": [ + "text/plain", + "text/html", + "text/markdown" + ] + }, + "accessConstraints": { + "title": "Access Constraints of the collection", + "description": "Restrictions on the availability of the collection that the user needs to be aware of before using or redistributing the data:\n\n* unclassified: Available for general disclosure\n* restricted: Not for general disclosure\n* confidential: Available for someone who can be entrusted with information\n* secret: Kept or meant to be kept private, unknown, or hidden from all but a select group of people\n* topSecret: Of the highest secrecy", + "enum": [ + "unclassified", + "restricted", + "confidential", + "secret", + "topSecret" + ] + }, + "publisher": { + "type": "string", + "title": "Responsible party publishing the collection", + "description": "Organization or individual responsible for making the data available" + }, + "contacts": { + "type": "array", + "title": "A list of contacts", + "description": "A list of contacts qualified by their role(s) in association to the collection.", + "minItems": 1, + "items": { + "$ref": "#/components/schemas/contact" + } + }, + "license": { + "type": "string", + "title": "License associated to the collection", + "description": "The legal provisions under which the data of this collection is made available." + }, + "rights": { + "type": "string", + "title": "Rights over the collection", + "description": "A statement that concerns all rights not addressed by the license such as a copyright statement." + }, + "formats": { + "title": "Formats for distributing the collection", + "description": "A list of formats in which the data of this collection is distributed", + "type": "array", + "items": { + "$ref": "#/components/schemas/format-2" + } + }, + "keywords": { + "type": "array", + "title": "Keywords representing aspects of the collection", + "description": "The topic or topics of the resource. Typically represented using free-form keywords, tags, key phrases, or classification codes.", + "items": { + "type": "string" + } + }, + "themes": { + "type": "array", + "title": "Themes represented by the resource", + "description": "A knowledge organization system used to classify the resource.", + "minItems": 1, + "items": { + "$ref": "#/components/schemas/theme" + } + }, + "resourceLanguages": { + "type": "array", + "title": "The list of languages of the collection", + "description": "The list of languages in which the data of this collection is available.", + "items": { + "$ref": "#/components/schemas/language" + } + }, + "links": { + "type": "array", + "title": "Links relevant to this collection", + "description": "Links to this or other resources related to this collection.", + "example": [ { - "type": "object", - "required": [ - "rel" - ], - "properties": { - "rel": { - "type": "string" - }, - "type": { - "type": "string" - }, - "hreflang": { - "type": "string" - }, - "title": { - "type": "string" - }, - "length": { - "type": "integer" - } - } + "href": "http://data.example.org/collections/dem?f=json", + "rel": "self", + "type": "application/json", + "title": "Digital Elevation Model" }, { - "type": "object", - "properties": { - "method": { - "type": "string", - "enum": [ - "POST", - "GET", - "DELETE", - "PATCH" - ] - }, - "body": {}, - "headers": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } + "href": "http://data.example.org/collections/dem?f=html", + "rel": "alternate", + "type": "application/json", + "title": "Digital Elevation Model" }, { - "type": "object", - "required": [ - "href" - ], - "properties": { - "href": { - "type": "string" - } - } - } - ] - } - ] - }, - "inlineOrRefValue-workflows": { - "oneOf": [ - { - "$ref": "#/components/schemas/valueNoObject-workflows" - }, - { - "allOf": [ + "href": "http://data.example.org/collections/dem/coverage", + "rel": "coverage", + "type": "image/tiff; application=geotiff", + "title": "Digital Elevation Model" + }, { - "$ref": "#/components/schemas/format" + "href": "http://data.example.org/collections/dem/coverage/domainset", + "rel": "domainset", + "type": "application/json", + "title": "Digital Elevation Model" }, { - "$ref": "#/components/schemas/fieldsModifiers" + "href": "http://data.example.org/collections/dem/coverage/rangetype", + "rel": "rangetype", + "type": "application/json", + "title": "Digital Elevation Model" }, { - "type": "object", - "required": [ - "value" - ], - "properties": { - "value": { - "oneOf": [ - { - "$ref": "#/components/schemas/valueNoObject-workflows" - }, - { - "type": "object" - } - ] - } - } + "href": "http://data.example.org/collections/dem/coverage/metadata", + "rel": "metadata", + "type": "application/json", + "title": "Digital Elevation Model" } + ], + "items": { + "$ref": "#/components/schemas/link" + } + }, + "itemType": { + "title": "Type of the items in the collection", + "description": "Indicator about the type of the items in the collection if the collection has an accessible `/collections/{collectionId}/items` endpoint (e.g., `feature` or `record`).", + "type": "string", + "default": "feature" + }, + "dataType": { + "title": "Nature of the data in the collection", + "description": "Nature of the data in the collection. For example, this could be set to `map`, `vector` or `coverage`. It is not an indication of the available data access mechanism, but a hint regarding the internal representation of the data.", + "$ref": "#/components/schemas/dataType" + }, + "featureTypes": { + "title": "Feature type(s) present in the collection", + "description": "The list of feature (or coverage) type(s) which are present inside the collection. This is useful for associating the relevant portrayal rules of a style.", + "type": "string" + }, + "parent": { + "title": "Identifier of a parent collection (if this collection is part of a hierarchy)", + "description": "If this collection is part of a hierarchy, this property allows to identify another collection within the same dataset as its parent (by setting `parent` to the `id` of that collection), enabling clients to construct a hierarchy.", + "type": "string" + }, + "geoDataClasses": { + "title": "Class of data in the collection", + "description": "One or more classes of geospatial data, identified by a URI, which implies compatibility with a particular schema (fields/properties, as defined in OGC API - Common - Part 3: Schemas) for one or more collections, each with particular semantic definitions and data types. This is useful for example to determine compatibility with styles or processes, or to identify a particular collection within a dataset based on semantics.", + "type": "array", + "items": { + "type": "string", + "format": "uri" + } + }, + "defaultFields": { + "title": "List of fields returned by default", + "description": "A sorted list of field names. For a Features data access mechanism, it is the list of returnable properties included by default and complementing the geometry of the features. For a Coverage data access mechanism, they are names of fields whose values are included by default. Note that an API may provide a mechanism (e.g., a query parameter called `properties` or `exclude-properties`) to override this default list in customized responses.", + "type": "array", + "items": { + "type": "string" + }, + "minItems": 1 + }, + "crs": { + "title": "List of coordinate reference systems supported in the collection", + "description": "The list of coordinate reference systems supported by the API; if present, the list should include the default coordinate reference system (usually listed first). Each item should be a URI to a registered CRS if one is available, or a full description of the CRS otherwise using e.g., a WKT2CRS string, or a PROJJSON, or CRS JSON object.", + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "object" + } + ] + }, + "default": [ + "http://www.opengis.net/def/crs/OGC/1.3/CRS84" + ], + "example": [ + "http://www.opengis.net/def/crs/OGC/1.3/CRS84", + "http://www.opengis.net/def/crs/EPSG/0/4326" ] }, - { - "$ref": "#/components/schemas/link" + "storageCrs": { + "title": "Storage or native CRS of the data in the collection", + "description": "The native coordinate reference system (i.e., the most efficient CRS in which to request the data, possibly how the data is stored on the server); this is the default output coordinate reference system for Maps and Coverages. This should be a URI to a registered CRS if one is available, or a full description of the CRS otherwise using e.g., a WKT2CRS string, or a PROJJSON, or CRS JSON object.", + "anyOf": [ + { + "type": "string" + }, + { + "type": "object" + } + ], + "default": "http://www.opengis.net/def/crs/OGC/1.3/CRS84", + "example": "http://www.opengis.net/def/crs/OGC/1.3/CRS84" + }, + "epoch": { + "title": "Epoch of the data in the collection", + "description": "Epoch of the native (storage) Coordinate Reference System (CRS)", + "type": "number", + "example": 2021.33 + }, + "geometryDimension": { + "title": "Number of spatial dimensions of the primary geometry for the data", + "description": "Number of spatial dimensions of the primary geometry of individual elements of the data: 0 for points, 1 for curves, 2 for surfaces, 3 for solids and unspecified when mixed or unknown. Not to be confused with the dimensions of the domain which are defined by the extent element.", + "type": "integer", + "minimum": 0, + "maximum": 3 + }, + "minScaleDenominator": { + "title": "Minimum scale denominator for the collection", + "description": "Minimum scale denominator for usage of the collection.", + "type": "number" + }, + "maxScaleDenominator": { + "title": "Maximum scale denominator for the collection", + "description": "Maximum scale denominator for usage of the collection.", + "type": "number" + }, + "minCellSize": { + "title": "Minimum cell size for the collection", + "description": "Minimum cell size for usage of the collection.", + "type": "number" + }, + "maxCellSize": { + "title": "Maximum cell size for the collection", + "description": "Maximum cell size for usage of the collection.", + "type": "number" + }, + "created": { + "title": "Timestamp when the collection was first produced", + "description": "Timestamp indicating when the data in the collection was first produced.", + "type": "string", + "format": "date-time" + }, + "updated": { + "title": "Timestamp of the last change/revision to the collection", + "description": "Timestamp of the last change/revision to the data in the collection.", + "type": "string", + "format": "date-time" } - ] + } }, - "fieldsModifiers": { + "regularGrid": { "type": "object", + "title": "Regular grid", + "description": "Regular grid with samples spaced at equal intervals.", + "required": [ + "resolution", + "firstCoordinate" + ], "properties": { - "filter": { + "resolution": { + "title": "Resolution", + "description": "Resolution of regularly gridded data along the dimension in the collection.", "oneOf": [ { - "type": "string" + "type": "string", + "nullable": true, + "example": "PT1H" }, { - "description": "Basic CQL2-JSON definition", - "type": "array", - "items": { - "type": "object" - } + "type": "number", + "example": 0.0006866455078 } ] }, - "filter-lang": { - "type": "string", - "example": "cql2-text" - }, - "filter-crs": { - "type": "string", - "format": "uri-reference" + "availableResolutions": { + "title": "Available resolutions", + "description": "List of resolutions made available by the API. If not specified, there are no limit other than the limits indicated in `minCellSize` and `maxCellSize` of the collection description (though the API might still allow requesting data beyond these).", + "type": "array", + "items": { + "oneOf": [ + { + "type": "string", + "nullable": true + }, + { + "type": "number" + } + ] + }, + "example": [ + "P1H", + "P1D", + "P1M" + ] }, - "aliases": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "firstCoordinate": { + "title": "First coordinate", + "description": "First coordinate where a regular grid begins, with subsequent coordinates adding `resolution` unit at each step.", + "oneOf": [ + { + "type": "string", + "nullable": true + }, + { + "type": "number" + } + ], + "example": -180 }, - "properties": { + "relativeBounds": { + "title": "Relative bounds", + "description": "Distance in units from coordinate to the lower and upper bounds of each cell for regular grids, describing the geometry of the cells.", "type": "array", + "minItems": 2, + "maxItems": 2, "items": { - "type": "string" - } + "oneOf": [ + { + "type": "string", + "nullable": true + }, + { + "type": "number" + } + ] + }, + "example": [ + -0.5, + 0.5 + ] + } + } + }, + "irregularGrid": { + "type": "object", + "title": "Irregular grid.", + "description": "Irregular grid with samples spaced at different intervals.", + "required": [ + "coordinates" + ], + "properties": { + "coordinates": { + "title": "Coordinates of the irregular cells", + "description": "List of coordinates along the dimension for which data organized as an irregular grid in the collection is available.\n(e.g., 2, 10, 80, 100).", + "type": "array", + "minItems": 1, + "items": { + "oneOf": [ + { + "type": "string", + "nullable": true, + "example": "2020-11-12T12:15:00Z" + }, + { + "type": "number", + "example": 12.3 + } + ] + }, + "example": [ + 2, + 10, + 80, + 100 + ] }, - "sortBy": { + "boundsCoordinates": { + "title": "Bounds coordinates", + "description": "For irregular grids, an ordered list of the coordinates in absolute units of the lower and upper bounds of the dimension for each cell.", "type": "array", + "minItems": 1, "items": { - "type": "string" - } + "type": "array", + "minItems": 2, + "maxItems": 2, + "items": { + "oneOf": [ + { + "type": "string", + "nullable": true + }, + { + "type": "number" + } + ] + } + }, + "example": [ + [ + -180, + -179 + ], + [ + -179, + -178 + ] + ] } } }, - "statusInfo": { + "grid": { + "type": "object", + "title": "Grid.", + "description": "Provides information about the limited availability of data within the collection organized as a grid (regular or irregular) along the dimension.", "allOf": [ - { - "$ref": "#/components/schemas/descriptionType" - }, { "type": "object", "required": [ - "id", - "status", - "processingEntityType" + "cellsCount" ], "properties": { - "id": { - "type": "string" - }, - "processID": { - "type": "string", - "format": "uri" - }, - "processingEntityType": { - "description": "The type of entity that created the job and is doing the processing.\nThis includes all the data access apis listed in \"apis.yaml\" plus\nthe processing APIs of OGC API Processes and OpenEO.", - "anyOf": [ - { - "$ref": "#/components/schemas/apis" - }, - { - "type": "string", - "enum": [ - "ogc-api-processes", - "openeo" - ] - } - ] - }, - "profileEntityType": { - "description": "The type of entity requesting this status information. This may\nbe differernt than the processing entity. For example, the\nprocessing entity may be OGC API Processes but the status\ninformation is requested via the OpenEO API.", - "anyOf": [ - { - "$ref": "#/components/schemas/apis" - }, - { - "type": "string", - "enum": [ - "ogc-api-processes", - "openeo" - ] - } - ] - }, - "request": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "object" - }, - { - "$ref": "#/components/schemas/inlineOrRefValue/oneOf/2" - } - ] - }, - "status": { - "$ref": "#/components/schemas/statusCode" - }, - "message": { - "type": "string" - }, - "exception": { - "$ref": "#/components/schemas/exception" - }, - "created": { - "type": "string", - "format": "date-time" - }, - "started": { - "type": "string", - "format": "date-time" - }, - "finished": { - "type": "string", - "format": "date-time" - }, - "updated": { - "type": "string", - "format": "date-time" - }, - "progress": { + "cellsCount": { + "title": "Cell count", + "description": "Number of samples available along the dimension for data organized as a regular or irregular grid.", "type": "integer", - "minimum": 0, - "maximum": 100 - }, - "links": { - "type": "array", - "items": { - "$ref": "#/components/schemas/inlineOrRefValue/oneOf/2" - } + "example": 50 } } + }, + { + "oneOf": [ + { + "$ref": "#/components/schemas/regularGrid" + }, + { + "$ref": "#/components/schemas/irregularGrid" + } + ] } ] }, - "dataAccessAPIs": { + "spatialExtent": { + "title": "Spatial extent", + "description": "The spatial extent of the data in the collection.", "type": "object", "properties": { - "dataAccessAPIs": { + "bbox": { + "title": "Bounding box in the 'crs' coordinates", + "description": "One or more bounding boxes that describe the spatial extent of the dataset.\n\nThe first bounding box describes the overall spatial\nextent of the data. All subsequent bounding boxes describe\nmore precise bounding boxes, e.g., to identify clusters of data.\nClients only interested in the overall spatial extent will\nonly need to access the first item in each array.", "type": "array", + "minItems": 1, "items": { - "$ref": "#/components/schemas/apis" + "description": "Each bounding box is provided as four or six numbers, depending on\nwhether the coordinate reference system includes a vertical axis\n(height or depth):\n\n* Lower left corner, coordinate axis 1\n* Lower left corner, coordinate axis 2\n* Minimum value, coordinate axis 3 (optional)\n* Upper right corner, coordinate axis 1\n* Upper right corner, coordinate axis 2\n* Maximum value, coordinate axis 3 (optional)\n\nIf the value consists of four numbers, the coordinate reference system is\nWGS 84 longitude/latitude (http://www.opengis.net/def/crs/OGC/1.3/CRS84)\nunless a different coordinate reference system is specified in `crs` property.\n\nIf the value consists of six numbers, the coordinate reference system is WGS 84\nlongitude/latitude/ellipsoidal height (http://www.opengis.net/def/crs/OGC/0/CRS84h)\nunless a different coordinate reference system is specified in `crs` property.\n\nFor WGS 84 longitude/latitude the values are in most cases the sequence of\nminimum longitude, minimum latitude, maximum longitude and maximum latitude.\nHowever, in cases where the box spans the antimeridian the first value\n(west-most box edge) is larger than the third value (east-most box edge).\n\nIf the vertical axis is included, the third and the sixth number are\nthe bottom and the top of the 3-dimensional bounding box.\n\nIf a feature has multiple spatial geometry properties, it is the decision of the\nserver whether only a single spatial geometry property is used to determine\nthe extent or all relevant geometries.", + "type": "array", + "oneOf": [ + { + "minItems": 4, + "maxItems": 4 + }, + { + "minItems": 6, + "maxItems": 6 + } + ], + "items": { + "type": "number" + }, + "example": [ + -180, + -90, + 180, + 90 + ] } - } - } - }, - "apis": { - "description": "A non-exhaustive list of OGC and other data access APIs. This list can\nbe extended as required.", - "type": "string", - "enum": [ - "ogc-api-features", - "ogc-api-coverages", - "ogc-api-edr", - "ogc-api-tiles", - "ogc-api-moving-features", - "ogc-api-sensor-things", - "ogc-api-records", - "ogc-api-dggs", - "stac-api" - ] - }, - "dataClasses": { - "type": "object", - "properties": { - "dataClasses": { + }, + "storageCrsBbox": { + "title": "Bounding box in the storage CRS", + "description": "One or more bounding boxes that describe the spatial extent of the dataset in the storage (native) CRS (`storageCrs` property).\n\nThe first bounding box describes the overall spatial\nextent of the data. All subsequent bounding boxes describe\nmore precise bounding boxes, e.g., to identify clusters of data.\nClients only interested in the overall spatial extent will\nonly need to access the first item in each array.", + "type": "array", + "minItems": 1, + "items": { + "description": "Each bounding box is provided as four or six numbers, depending on\nwhether the coordinate reference system includes a vertical axis\n(height or depth):\n\n* Lower left corner, coordinate axis 1\n* Lower left corner, coordinate axis 2\n* Minimum value, coordinate axis 3 (optional)\n* Upper right corner, coordinate axis 1\n* Upper right corner, coordinate axis 2\n* Maximum value, coordinate axis 3 (optional)", + "type": "array", + "oneOf": [ + { + "minItems": 4, + "maxItems": 4 + }, + { + "minItems": 6, + "maxItems": 6 + } + ], + "items": { + "type": "number" + }, + "example": [ + -180, + -90, + 180, + 90 + ] + } + }, + "crs": { + "title": "Coordinate reference system", + "description": "Coordinate reference system of the coordinates of the `bbox` property.\nThe default reference system is WGS 84 longitude/latitude.\nWGS 84 longitude/latitude/ellipsoidal height for coordinates with height.\nFor data not referenced to Earth, another CRS may be specified.\nThis should be a URI to a registered CRS if one is available, or a full description of the CRS otherwise using e.g., a WKT2CRS string, or a PROJJSON, or CRS JSON object.", + "anyOf": [ + { + "type": "string" + }, + { + "type": "string", + "enum": [ + "http://www.opengis.net/def/crs/OGC/1.3/CRS84", + "http://www.opengis.net/def/crs/OGC/0/CRS84h" + ] + }, + { + "type": "object" + } + ], + "default": "http://www.opengis.net/def/crs/OGC/1.3/CRS84" + }, + "grid": { + "title": "Grid description", + "description": "Provides information about the limited availability of data within the collection organized\nas a grid (regular or irregular) along each spatial dimension.", "type": "array", + "minItems": 2, + "maxItems": 3, "items": { - "type": "string", - "format": "uri" + "$ref": "#/components/schemas/grid" } } } }, - "ogcapppkg": { + "temporalExtent": { + "title": "Temporal extent", + "description": "The temporal extent of the data in the collection.", "type": "object", - "required": [ - "executionUnit" - ], "properties": { - "processDescription": { - "type": "object", - "required": [ - "process" - ], - "properties": { - "process": { - "$ref": "#/components/schemas/process" + "interval": { + "title": "Temporal intervals", + "description": "One or more time intervals that describe the temporal extent of the dataset.\n\nThe first time interval describes the overall\ntemporal extent of the data. All subsequent time intervals describe\nmore precise time intervals, e.g., to identify clusters of data.\nClients only interested in the overall extent will only need\nto access the first item in each array.", + "type": "array", + "minItems": 1, + "items": { + "description": "Begin and end times of the time interval. The timestamps are in the\ntemporal coordinate reference system specified in `trs`. By default\nthis is the Gregorian calendar, expressed using RFC 3339 section 5.6.\nNote that these times may be specified using time zone offsets to UTC time other than zero.\n\nThe value `null` for start or end time is supported and indicates a half-bounded time interval.", + "type": "array", + "minItems": 2, + "maxItems": 2, + "items": { + "type": "string", + "format": "date-time", + "nullable": true, + "example": "2011-11-11T12:22:11Z" } } }, - "executionUnit": { - "oneOf": [ - { - "type": "object", - "description": "Resource containing executable or runtime information for executing the\nprocess.", - "required": [ - "type" - ], - "properties": { - "type": { - "description": "Type of execution unit.", - "type": "string", - "anyOf": [ - { - "enum": [ - "docker", - "oci" - ] - }, - { - "type": "string" - } - ] - }, - "image": { - "description": "Container image reference for the execution unit.", - "type": "string" - }, - "deployment": { - "description": "Deployment information for the execution unit.", - "type": "string", - "anyOf": [ - { - "enum": [ - "local", - "remote", - "hpc", - "cloud" - ] - }, - { - "type": "string" - } - ] - }, - "config": { - "type": "object", - "description": "Hardware requirements and configuration properties for executing the\nprocess.", - "properties": { - "cpuMin": { - "description": "Minimum number of CPUs required to run the process (unit is CPU core).", - "type": "number", - "minimum": 1 - }, - "cpuMax": { - "description": "Maximum number of CPU dedicated to the process (unit is CPU core)", - "type": "number" - }, - "memoryMin": { - "description": "Minimum RAM memory required to run the application (unit is GB)", - "type": "number" - }, - "memoryMax": { - "description": "Maximum RAM memory dedicated to the application (unit is GB)", - "type": "number" - }, - "storageTempMin": { - "description": "Minimum required temporary storage size (unit is GB)", - "type": "number" - }, - "storageOutputsMin": { - "description": "Minimum required output storage size (unit is GB)", - "type": "number" - }, - "jobTimeout": { - "description": "Timeout delay for a job execution (in seconds)", - "type": "number" - } - }, - "additionalProperties": true - }, - "bindings": { - "type": "object", - "properties": { - "inputBindings": { - "additionalProperties": { - "type": "object", - "description": ". Defines how to specify the input for the execution unit.\n. The value of various properties defined below can be expressions.\n . The expression language SHALL be JavaScript(???).\n. The \"$(...)\" syntax can be used to reference the current input or other\n process inputs in an expression.\n . The value \"self\" refers to the value of the current input.\n . The value \"inputs.\" refers to the value of another\n process input.\n . If the input is defined as a string of format \"file\" or \"directory\"\n then the meta-values \".path\", \".basename\", \".nameroot\" and \".nameext\"\n can be used to manipulate file or directory name without having to\n resort to complex regular expressions.\n . \".path\" returns the path of a file name without the file name\n . \".basename\" returns the name of the file without the path\n . \".nameroot\" returns the basename without any extension\n . \".nameext\" returns the extension of the basename", - "properties": { - "prefix": { - "description": "Command line prefix to add before the value.", - "type": "string" - }, - "position": { - "description": ". The zero-based sorting key.\n. The value can be an integer or a string.\n. If the value is a string then it should be an expression that evaluates\n to a single integer value or null.", - "oneOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ] - }, - "valueFrom": { - "description": ". If valueFrom is a constant string value, use this as the value.\n. If valueFrom is an expression, evaluate the expression to yield the\n actual value to use to build the command line.\n. If the value of the associated input parameter is null, valueFrom is\n not evaluated and nothing is added to the command line.", - "type": "string" - }, - "itemSeparator": { - "description": "Join the array elements into a single string with the elements separated\nby itemSeparator.", - "type": "string" - }, - "shellQuote": { - "description": ". A Boolean that controls whether the value is quoted on the command.\n. A value of true (or if shecllQuote is not provided) means that the\n implementation SHALL not permit the interpretation of any shell\n metacharacters or directives.\n. A value of false should be used to inject metacharacters for operations\n such as pipes.", - "type": "boolean" - } - }, - "additionalProperties": true - } - }, - "outputBindings": { - "additionalProperties": { - "type": "object", - "description": "Defines how to retrieve the output result from the command.", - "properties": { - "glob": { - "description": ". Wildcard pattern to find the output on disk or mounted volume.\n. Uses UNIX \"glob\" wildcard patterns (see: \"man 7 glob\").\n. See inputBinding.yaml for referencing input values in an output\n binding \"glob\" expression.", - "oneOf": [ - { - "type": "string" - }, - { - "type": "array", - "items": { - "type": "string" - } - } - ] - } - }, - "additionalProperties": true - } - } - } - } - }, - "additionalProperties": true, - "example": { - "type": "docker", - "image": "mydocker/ndvi:latest", - "bindings": { - "inputBindings": { - "inputImage": { - "prefix": "inputsImages=", - "inputSeparator": "," - } - }, - "outputBindings": { - "outputImage": { - "glob": "$(\"/outputs/ndvi_\" + inputs.inputImage.basename)" - } - } - }, - "deployment": "local", - "config": { - "cpuMin": 2, - "cpuMax": 5, - "memoryMin": 1, - "memoryMax": 3 - } - } - }, + "trs": { + "title": "Temporal Coordinate Reference System", + "description": "Coordinate reference system of the coordinates in the temporal extent\n(property `interval`). The default reference system is the Gregorian calendar.\nFor data for which the Gregorian calendar is not suitable, such as geological time scale, another temporal reference system may be used.\nThis should be a URI to a registered TRS if one is available, or a full description of the TRS otherwise using e.g., a WKT2CRS string, or a PROJJSON, or CRS JSON object.", + "anyOf": [ { - "$ref": "#/components/schemas/link" + "type": "string" }, { - "$ref": "#/components/schemas/qualifiedValue" + "type": "string", + "enum": [ + "http://www.opengis.net/def/uom/ISO-8601/0/Gregorian" + ] }, { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/ogcapppkg/properties/executionUnit/oneOf/0" - }, - { - "$ref": "#/components/schemas/link" - }, - { - "$ref": "#/components/schemas/qualifiedValue" - } - ] - } + "type": "object" } - ] + ], + "default": "http://www.opengis.net/def/uom/ISO-8601/0/Gregorian" + }, + "grid": { + "$ref": "#/components/schemas/grid" } } }, - "staticIndicator": { - "allOf": [ + "additionalDimensionExtent": { + "title": "Extent of any additional dimensions", + "description": "The domain intervals for any additional dimensions of the extent (envelope) beyond those described in temporal and spatial.", + "type": "object", + "oneOf": [ { - "$ref": "#/components/schemas/processSummary" + "required": [ + "interval", + "definition" + ] }, { - "type": "object", - "properties": { - "mutable": { - "type": "boolean", - "default": true + "required": [ + "interval", + "trs" + ] + }, + { + "required": [ + "interval", + "vrs" + ] + } + ], + "properties": { + "interval": { + "title": "Interval of the extent of this dimension", + "description": "One or more intervals that describe the extent for this dimension of the dataset.\nThe value `null` is supported and indicates an unbounded or half-bounded interval.\nThe first interval describes the overall extent of the data for this dimension.\nAll subsequent intervals describe more precise intervals, e.g., to identify clusters of data.\nClients only interested in the overall extent will only need\nto access the first item (a pair of lower and upper bound values).", + "type": "array", + "minItems": 1, + "items": { + "description": "Lower and upper bound values of the interval. The values\nare in the coordinate reference system specified in `crs`, `trs` or `vrs`.", + "type": "array", + "minItems": 2, + "maxItems": 2, + "items": { + "oneOf": [ + { + "type": "string", + "nullable": true, + "example": "2011-11-11T12:22:11Z" + }, + { + "type": "number", + "example": 32.7 + } + ] } } + }, + "trs": { + "title": "Temporal Coordinate Reference System", + "description": "Temporal Coordinate Reference System (e.g. as defined by Features for 'temporal'). This should be a URI to a registered TRS if one is available, or a full description of the TRS otherwise using e.g., a WKT2CRS string, or a PROJJSON, or CRS JSON object.", + "anyOf": [ + { + "type": "string" + }, + { + "type": "object" + } + ] + }, + "vrs": { + "title": "Vertical Coordinate Reference System", + "description": "Vertical Coordinate Reference System (e.g. as defined in EDR for 'vertical'). This should be a URI to a registered VRS if one is available, or a full description of the VRS otherwise using e.g., a WKT2CRS string, or a PROJJSON, or CRS JSON object.", + "anyOf": [ + { + "type": "string" + }, + { + "type": "object" + } + ] + }, + "grid": { + "$ref": "#/components/schemas/grid" + }, + "definition": { + "type": "string", + "format": "uri", + "title": "Observed property definition", + "description": "A URI for the definition of the measured or observed property corresponding to this dimension." + }, + "unit": { + "type": "string", + "title": "Units of measurement", + "description": "The unit of measure in which the interval and/or grid values are expressed." + }, + "unitLang": { + "type": "string", + "default": "UCUM", + "title": "Units of measurement vocabulary", + "description": "The language (or vocabulary) in which the unit is expressed (defaults to \"UCUM\" if not specified)." + }, + "variableType": { + "title": "Variable type", + "description": "The type of variable which may inform correct interpretation and interpolation methods.", + "type": "string", + "enum": [ + "continuous", + "numericalOrdinal", + "numericalNominal", + "categoricalOrdinal", + "categoricalNominal" + ] } - ] + } } }, "parameters": { @@ -7574,6 +8262,9 @@ } }, "w": { + "$ref": "#/components/parameters/w-param" + }, + "w-param": { "name": "w", "description": "Point to the workflow identifier for deploying a CWL containing multiple workflow definitions", "in": "query", @@ -7581,75 +8272,110 @@ "schema": { "type": "string" } + }, + "response": { + "name": "response", + "in": "query", + "description": "For executing the process using the _Collection Output_ mechanism, where the\nclient is redirected (_303_ status) to a collection resource, from which one\nor more OGC API data access mechanism is available. Data access requests may\ntrigger processing on-demand for a given area, time and resolution of interest.", + "required": false, + "schema": { + "type": "string", + "enum": [ + "collection" + ] + } + }, + "prefer-header-execution": { + "in": "header", + "description": "Indicates client preferences, including whether the client is capable of asynchronous processing.\nA `respond-async` preference indicates a preference for asynchronous processing.\nA `wait: s` preference indicates that the client prefers to wait up to x seconds to receive a reponse synchronously before the server falls back to asynchronous processing.", + "name": "Prefer", + "schema": { + "type": "string" + } } }, "responses": { "NotFound": { - "description": "The requested resource does not exist on the server. For example, a path parameter had an incorrect value.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/exception" - } - }, - "text/html": { - "schema": { - "type": "string" - } - } - } + "$ref": "#/components/responses/rNotFound" }, "NotAcceptable": { - "description": "Content negotiation failed. For example, the `Accept` header submitted in the request did not support any of the media types supported by the server for the requested resource.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/exception" - } - }, - "text/html": { - "schema": { - "type": "string" - } - } - } + "$ref": "#/components/responses/rNotAcceptable" + }, + "ServerError": { + "$ref": "#/components/responses/rServerError" + }, + "InvalidParameter": { + "$ref": "#/components/responses/rInvalidParameter" + }, + "NotAllowed": { + "$ref": "#/components/responses/rNotAllowed" + }, + "Exception": { + "$ref": "#/components/responses/rException" + }, + "LandingPage": { + "$ref": "#/components/responses/rLandingPage" + }, + "Conformance": { + "$ref": "#/components/responses/rConformance" + }, + "API": { + "$ref": "#/components/responses/rAPI" + }, + "Enumeration": { + "$ref": "#/components/responses/rEnumeration" + }, + "ProcessList": { + "$ref": "#/components/responses/rProcessList" + }, + "ProcessDescription": { + "$ref": "#/components/responses/rProcessDescription" + }, + "Results": { + "$ref": "#/components/responses/rResults" + }, + "Output": { + "$ref": "#/components/responses/rOutput" + }, + "OutputValue": { + "$ref": "#/components/responses/rOutputValue" + }, + "Status": { + "$ref": "#/components/responses/rStatus" + }, + "JobList": { + "$ref": "#/components/responses/rJobList" + }, + "ExecuteAsync": { + "$ref": "#/components/responses/rExecuteAsync" }, - "ServerError": { - "description": "A server error occurred.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/exception" - } - }, - "text/html": { - "schema": { - "type": "string" - } - } - } + "ExecuteSync": { + "$ref": "#/components/responses/rExecuteSync" }, - "InvalidParameter": { - "description": "A query parameter has an invalid value.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/exception" - } - }, - "text/html": { - "schema": { - "type": "string" - } - } - } + "ExecuteSyncRawRef": { + "$ref": "#/components/responses/rExecuteSyncRawRef" }, - "NotAllowed": { - "description": "The method is not allowed at the path.", + "EmptyResponse": { + "$ref": "#/components/responses/rEmpty" + }, + "DeployProcess": { + "$ref": "#/components/responses/rDeployProcess" + }, + "ProcessSummary": { + "$ref": "#/components/responses/rProcessSummary" + }, + "DuplicateProcess": { + "$ref": "#/components/responses/rDuplicateProcess" + }, + "ImmutableProcess": { + "$ref": "#/components/responses/rImmutableProcess" + }, + "rLandingPage": { + "description": "The landing page provides links to the API definition (link relation `service-desc`, in this case path `/api`),\nto the Conformance declaration (path `/conformance`, link relation `http://www.opengis.net/def/rel/ogc/1.0/conformance`), and to other resources.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/exception" + "$ref": "#/components/schemas/landingPage" } }, "text/html": { @@ -7659,8 +8385,8 @@ } } }, - "Exception": { - "description": "An error occured.", + "rNotAcceptable": { + "description": "Content negotiation failed. For example, the `Accept` header submitted in the request did not support any of the media types supported by the server for the requested resource.", "content": { "application/json": { "schema": { @@ -7674,12 +8400,12 @@ } } }, - "LandingPage": { - "description": "The landing page provides links to the API definition (link relation `service-desc`, in this case path `/api`),\nto the Conformance declaration (path `/conformance`, link relation `http://www.opengis.net/def/rel/ogc/1.0/conformance`), and to other resources.", + "rServerError": { + "description": "A server error occurred.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/landingPage" + "$ref": "#/components/schemas/exception" } }, "text/html": { @@ -7689,7 +8415,7 @@ } } }, - "Conformance": { + "rConformance": { "description": "The URIs of all conformance classes supported by the server\n\nTo support \"generic\" clients that want to access multiple\nOGC API - Processes implementations - and not \"just\" a specific\nAPI / server, the server declares the conformance\nclasses it implements and conforms to.", "content": { "application/json": { @@ -7735,7 +8461,7 @@ } } }, - "API": { + "rAPI": { "description": "The OpenAPI definition of the API.", "content": { "application/vnd.oai.openapi+json;version=3.0": { @@ -7750,7 +8476,7 @@ } } }, - "Enumeration": { + "rEnumeration": { "description": "An enumerated list of valid string values for API parameters.", "content": { "application/json": { @@ -7765,101 +8491,100 @@ } } }, - "ProcessList": { - "description": "Information about the available processes", + "rNotFound": { + "description": "The requested resource does not exist on the server. For example, a path parameter had an incorrect value.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/processList" + "$ref": "#/components/schemas/exception" } - } - } - }, - "ProcessDescription": { - "description": "A process description.", - "content": { - "application/json": { + }, + "text/html": { "schema": { - "$ref": "#/components/schemas/process" + "type": "string" } } } }, - "Results": { - "description": "The processing results of a job.", + "rProcessList": { + "description": "Information about the available processes", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/results" + "$ref": "#/components/schemas/processList" } } } }, - "Output": { - "description": "An output resulting from a job", + "rProcessSummary": { + "description": "A process summary.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/values" + "$ref": "#/components/schemas/processSummary" } } } }, - "OutputValue": { - "description": "An individual value of an output allowing multiple values resulting from a job", + "rException": { + "description": "An error occured.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/inlineOrRefValue" + "$ref": "#/components/schemas/exception" + } + }, + "text/html": { + "schema": { + "type": "string" } } } }, - "Status": { - "description": "The status of a job.", + "rImmutableProcess": { + "description": "the processes is not mutable", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/statusInfo" + "$ref": "#/components/schemas/exception" + } + }, + "text/html": { + "schema": { + "type": "string" } } } }, - "JobList": { - "description": "A list of jobs for this process.", + "rDuplicateProcess": { + "description": "the processes being added is already deployed (i.e. duplicate)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/jobList" + "$ref": "#/components/schemas/exception" } - } - } - }, - "ExecuteAsync": { - "description": "Started asynchronous execution. Created job.", - "headers": { - "Location": { - "schema": { - "type": "string" - }, - "description": "URL to check the status of the execution/job." }, - "Preference-Applied": { + "text/html": { "schema": { "type": "string" - }, - "description": "The preference applied to execute the process asynchronously (see. RFC 2740)." + } } - }, + } + }, + "rProcessDescription": { + "description": "A process description.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/statusInfo" + "$ref": "#/components/schemas/process" } } } }, - "ExecuteSync": { + "rEmpty": { + "description": "successful operation (no response body)" + }, + "rExecuteSync": { "description": "Result of synchronous execution", "content": { "application/json": { @@ -7924,334 +8649,90 @@ "format": "geojson-feature-collection" }, { - "title": "GeoJSON FeatureCollection", - "type": "object", - "required": [ - "type", - "features" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "FeatureCollection" - ] - }, - "features": { - "type": "array", - "items": { - "title": "GeoJSON Feature", - "type": "object", - "required": [ - "type", - "properties", - "geometry" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "Feature" - ] - }, - "id": { - "oneOf": [ - { - "type": "number" - }, - { - "type": "string" - } - ] - }, - "properties": { - "type": "object", - "nullable": true - }, - "geometry": { - "oneOf": [ - { - "title": "GeoJSON Point", - "type": "object", - "nullable": true, - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "Point" - ] - }, - "coordinates": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - }, - "bbox": { - "type": "array", - "minItems": 4, - "items": { - "type": "number" - } - } - } - }, - { - "title": "GeoJSON LineString", - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "LineString" - ] - }, - "coordinates": { - "type": "array", - "minItems": 2, - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - }, - "bbox": { - "type": "array", - "minItems": 4, - "items": { - "type": "number" - } - } - } - }, - { - "title": "GeoJSON Polygon", - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "Polygon" - ] - }, - "coordinates": { - "type": "array", - "items": { - "type": "array", - "minItems": 4, - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - } - }, - "bbox": { - "type": "array", - "minItems": 4, - "items": { - "type": "number" - } - } - } - }, - { - "title": "GeoJSON MultiPoint", - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "MultiPoint" - ] - }, - "coordinates": { - "type": "array", - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - }, - "bbox": { - "type": "array", - "minItems": 4, - "items": { - "type": "number" - } - } - } - }, - { - "title": "GeoJSON MultiLineString", - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "MultiLineString" - ] - }, - "coordinates": { - "type": "array", - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - } - }, - "bbox": { - "type": "array", - "minItems": 4, - "items": { - "type": "number" - } - } - } - }, - { - "title": "GeoJSON MultiPolygon", - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "MultiPolygon" - ] - }, - "coordinates": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "array", - "minItems": 4, - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - } - } - }, - "bbox": { - "type": "array", - "minItems": 4, - "items": { - "type": "number" - } - } - } - } - ] - }, - "bbox": { - "type": "array", - "minItems": 4, - "items": { - "type": "number" - } - } - } - } - }, - "bbox": { - "type": "array", - "minItems": 4, - "items": { - "type": "number" - } - } - } + "$ref": "#/components/schemas/FeatureCollection" } ] } } } }, - "ExecuteSyncRawRef": { - "description": "Synchronous execution response.", + "rExecuteAsync": { + "description": "Started asynchronous execution. Created job.", "headers": { - "Link": { + "Location": { "schema": { "type": "string" }, - "description": "One or more Link headers pointing to each raw output." + "description": "URL to check the status of the execution/job." + }, + "Preference-Applied": { + "schema": { + "type": "string" + }, + "description": "The preference applied to execute the process asynchronously (see. RFC 2740)." + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/statusInfo" + } } } }, - "EmptyResponse": { - "description": "successful operation (no response body)" - }, - "DeployProcess": { - "description": "the process is deployed", + "rExecuteCollectionRedirect": { + "description": "For _Collection Output_ execution, redirection to an OGC API landing page or collection.", "headers": { "Location": { "schema": { "type": "string" }, - "description": "URL to fetch the processDescription of the deployed process" + "description": "Location for redirection to an [OGC API collection description](https://github.com/opengeospatial/ogcapi-common/blob/master/collections/openapi/schemas/common-geodata/collectionDesc.yaml) (for `response=collection`) as described in\n[OGC API - Common - Part 2: Geospatial data](http://docs.ogc.org/DRAFTS/20-024.html#collection-description).\nThe collection redirected to must contain links to at least one data access mechanism (such as\n[_OGC API - Tiles_](https://docs.ogc.org/is/20-057/20-057.html),\n[_DGGS_](https://docs.ogc.org/is/21-038r1/21-038r1.html),\n[_Coverages_](http://docs.ogc.org/DRAFTS/19-087.html),\n[_Features_](https://docs.opengeospatial.org/is/17-069r4/17-069r4.html),\n[_EDR_](https://docs.ogc.org/is/19-086r5/19-086r5.html), or\n[_Maps_](https://docs.ogc.org/is/20-058/20-058.html)...) to retrieve output results, which may\ntrigger on-demand processing." } - }, + } + }, + "rJobList": { + "description": "A list of jobs for this process.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/staticIndicator" + "$ref": "#/components/schemas/jobList" } } } }, - "ProcessSummary": { - "description": "A process summary.", + "rStatus": { + "description": "The status of a job.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/processSummary" + "$ref": "#/components/schemas/statusInfo" } } } }, - "DuplicateProcess": { - "description": "the processes being added is already deployed (i.e. duplicate)", + "rResults": { + "description": "The processing results of a job.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/results" + } + } + } + }, + "rOutput": { + "description": "An output resulting from a job", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/values" + } + } + } + }, + "rInvalidParameter": { + "description": "A query parameter has an invalid value.", "content": { "application/json": { "schema": { @@ -8265,8 +8746,8 @@ } } }, - "ImmutableProcess": { - "description": "the processes is not mutable", + "rNotAllowed": { + "description": "The method is not allowed at the path.", "content": { "application/json": { "schema": { @@ -8279,7 +8760,46 @@ } } } + }, + "rOutputValue": { + "description": "An individual value of an output allowing multiple values resulting from a job", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/inlineOrRefValue" + } + } + } + }, + "rExecuteSyncRawRef": { + "description": "Synchronous execution response.", + "headers": { + "Link": { + "schema": { + "type": "string" + }, + "description": "One or more Link headers pointing to each raw output." + } + } + }, + "rDeployProcess": { + "description": "the process is deployed", + "headers": { + "Location": { + "schema": { + "type": "string" + }, + "description": "URL to fetch the processDescription of the deployed process" + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/staticIndicator" + } + } + } } } } -} +} \ No newline at end of file From 9a52bf2c5a7176ab62e4ef9e6ac2ff2855598688 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 27 Apr 2026 10:33:15 -0400 Subject: [PATCH 06/20] redocly config action full path --- .github/workflows/openapi.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index 4c388e36..7ebde2df 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -22,7 +22,11 @@ jobs: cd openapi ./update.sh - name: Run linting - run: redocly lint openapi/ogcapi-processes.bundled.json --format=github-actions --config redocly.lint-config.yaml + run: | + redocly lint \ + openapi/ogcapi-processes.bundled.json \ + --format=github-actions \ + --config=.github/workflows/redocly.lint-config.yaml - name: Commit updated OpenAPI bundle uses: stefanzweifel/git-auto-commit-action@v7 From eb0918c053a543973d273cfacff04018144d8fef Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 27 Apr 2026 10:39:36 -0400 Subject: [PATCH 07/20] avoid cd into openapi dir --- .github/workflows/openapi.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index 7ebde2df..d00c3ca1 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -18,9 +18,7 @@ jobs: - name: Install Redocly CLI run: npm install -g @redocly/cli@latest - name: Bundle OpenAPI - run: | - cd openapi - ./update.sh + run: openapi/update.sh - name: Run linting run: | redocly lint \ From 3bb5c2a8f83ccfc1a35d833328e3bfc2dd3d1429 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 27 Apr 2026 10:44:40 -0400 Subject: [PATCH 08/20] force using github workspace path --- .github/workflows/openapi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index d00c3ca1..c5d8a0a3 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -24,7 +24,7 @@ jobs: redocly lint \ openapi/ogcapi-processes.bundled.json \ --format=github-actions \ - --config=.github/workflows/redocly.lint-config.yaml + --config=${{ github.workspace }}/.github/workflows/redocly.lint-config.yaml - name: Commit updated OpenAPI bundle uses: stefanzweifel/git-auto-commit-action@v7 From f6381290dae9ea31463d6c27e2ddd0eb66554648 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 27 Apr 2026 10:48:57 -0400 Subject: [PATCH 09/20] adjust config param --- .github/workflows/openapi.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index c5d8a0a3..bd7bebd8 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -22,9 +22,9 @@ jobs: - name: Run linting run: | redocly lint \ - openapi/ogcapi-processes.bundled.json \ --format=github-actions \ - --config=${{ github.workspace }}/.github/workflows/redocly.lint-config.yaml + --config .github/workflows/redocly.lint-config.yaml \ + openapi/ogcapi-processes.bundled.json - name: Commit updated OpenAPI bundle uses: stefanzweifel/git-auto-commit-action@v7 From e6c0c02c9857ce4b8968f4fd9d75ebe99649bae0 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 27 Apr 2026 10:54:11 -0400 Subject: [PATCH 10/20] explicit workspace dir --- .github/workflows/openapi.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index bd7bebd8..fd0c08f4 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -20,10 +20,11 @@ jobs: - name: Bundle OpenAPI run: openapi/update.sh - name: Run linting + working-directory: ${{ github.workspace }} run: | redocly lint \ - --format=github-actions \ - --config .github/workflows/redocly.lint-config.yaml \ + --format github-actions \ + --config '.github/workflows/redocly.lint-config.yaml' \ openapi/ogcapi-processes.bundled.json - name: Commit updated OpenAPI bundle From 583e0a74ab18b9013e8926927c5410cf0e045706 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 27 Apr 2026 10:57:09 -0400 Subject: [PATCH 11/20] Add .redocly.yaml config in standard location for auto-detection --- .redocly.yaml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .redocly.yaml diff --git a/.redocly.yaml b/.redocly.yaml new file mode 100644 index 00000000..1c6deecf --- /dev/null +++ b/.redocly.yaml @@ -0,0 +1,2 @@ +rules: + security-defined: off From d080fdfd9b638e134465c2d2952f3d00cf62db5c Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 27 Apr 2026 11:07:44 -0400 Subject: [PATCH 12/20] move redocly config avoid github workflows confusion --- .../{workflows/redocly.lint-config.yaml => redocly/config.yaml} | 0 .github/workflows/openapi.yml | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename .github/{workflows/redocly.lint-config.yaml => redocly/config.yaml} (100%) diff --git a/.github/workflows/redocly.lint-config.yaml b/.github/redocly/config.yaml similarity index 100% rename from .github/workflows/redocly.lint-config.yaml rename to .github/redocly/config.yaml diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index fd0c08f4..e3b5792c 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -24,7 +24,7 @@ jobs: run: | redocly lint \ --format github-actions \ - --config '.github/workflows/redocly.lint-config.yaml' \ + --config .github/redocly/config.yaml \ openapi/ogcapi-processes.bundled.json - name: Commit updated OpenAPI bundle From b1733b84e7d1ef2da298617031ac4e47b1a7af45 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 27 Apr 2026 11:11:29 -0400 Subject: [PATCH 13/20] debug what is happening --- .github/workflows/openapi.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index e3b5792c..1f964208 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -19,6 +19,13 @@ jobs: run: npm install -g @redocly/cli@latest - name: Bundle OpenAPI run: openapi/update.sh + - name: Debug + run: | + ls -la openapi + ls -la .github + ls -la .github/redocly + ls -la .github/workflows + redocly --version - name: Run linting working-directory: ${{ github.workspace }} run: | From 90335c0f0605cf502d14ec2e9295ea2adccbdba5 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 27 Apr 2026 11:22:13 -0400 Subject: [PATCH 14/20] drop ref head checkout --- .github/workflows/openapi.yml | 3 --- .redocly.yaml | 2 -- 2 files changed, 5 deletions(-) delete mode 100644 .redocly.yaml diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index 1f964208..3fb39279 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -10,8 +10,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v6 - with: - ref: ${{ github.head_ref }} - name: Set up node uses: actions/setup-node@v6 @@ -27,7 +25,6 @@ jobs: ls -la .github/workflows redocly --version - name: Run linting - working-directory: ${{ github.workspace }} run: | redocly lint \ --format github-actions \ diff --git a/.redocly.yaml b/.redocly.yaml deleted file mode 100644 index 1c6deecf..00000000 --- a/.redocly.yaml +++ /dev/null @@ -1,2 +0,0 @@ -rules: - security-defined: off From 706c2d5c19c46e3a8dea64de34d702ad30f6029f Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 27 Apr 2026 11:23:46 -0400 Subject: [PATCH 15/20] cleaup action --- .github/workflows/openapi.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index 3fb39279..640a304e 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -3,7 +3,7 @@ name: API linting on: [pull_request] jobs: - build: + lint-check-openapi: runs-on: ubuntu-latest permissions: contents: write @@ -17,13 +17,6 @@ jobs: run: npm install -g @redocly/cli@latest - name: Bundle OpenAPI run: openapi/update.sh - - name: Debug - run: | - ls -la openapi - ls -la .github - ls -la .github/redocly - ls -la .github/workflows - redocly --version - name: Run linting run: | redocly lint \ From 94be08f952b45d272082089b0b02dfb84647f31e Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 27 Apr 2026 11:33:57 -0400 Subject: [PATCH 16/20] add ref head to specific action commit step --- .github/workflows/openapi.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index 640a304e..73febf4a 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -1,6 +1,8 @@ name: API linting -on: [pull_request] +on: + - pull_request + - push jobs: lint-check-openapi: @@ -10,6 +12,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v6 + with: + fetch-depth: '0' - name: Set up node uses: actions/setup-node@v6 @@ -29,3 +33,4 @@ jobs: with: commit_message: Auto-update OpenAPI bundle file_pattern: 'openapi/ogcapi-processes.bundled.json' + branch: ${{ github.head_ref }} From 8a280792c43e4d43e6e990ca49f1ed4ab77d4da4 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 27 Apr 2026 11:42:36 -0400 Subject: [PATCH 17/20] add checkout ref --- .github/workflows/openapi.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index 73febf4a..28b927ca 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -14,6 +14,8 @@ jobs: uses: actions/checkout@v6 with: fetch-depth: '0' + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Set up node uses: actions/setup-node@v6 From 7d8a2acb036657389bfdd26aed9f152364b43e34 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 27 Apr 2026 12:28:23 -0400 Subject: [PATCH 18/20] fix actual OpenAPI invalid reference for CWLWorkflowStepOut --- openapi/ogcapi-processes.bundled.json | 29 ++++++++++++--------------- openapi/ogcapi-processes.yaml | 2 +- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/openapi/ogcapi-processes.bundled.json b/openapi/ogcapi-processes.bundled.json index 04f7c4ae..77b891ad 100644 --- a/openapi/ogcapi-processes.bundled.json +++ b/openapi/ogcapi-processes.bundled.json @@ -1841,7 +1841,7 @@ "$ref": "#/components/schemas/CWLExpression" }, "out": { - "$ref": "#/components/schemas/CWLWorkflowStepOut-2" + "$ref": "#/components/schemas/CWLWorkflowStepOut" } }, "required": [ @@ -1939,7 +1939,18 @@ "$ref": "#/components/schemas/CWLExpression" }, "CWLWorkflowStepOut": { - "$ref": "#/components/schemas/CWLExpression" + "description": "Mapping of Workflow step inputs to nested CWL tool definitions inputs or outputs.", + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/CWLIdentifier" + }, + { + "$ref": "#/components/schemas/CWLWorkflowStepOutId" + } + ] + } }, "CWLWorkflowStepInMap": { "type": "object", @@ -6612,20 +6623,6 @@ ], "additionalProperties": false }, - "CWLWorkflowStepOut-2": { - "description": "Mapping of Workflow step inputs to nested CWL tool definitions inputs or outputs.", - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLIdentifier" - }, - { - "$ref": "#/components/schemas/CWLWorkflowStepOutId" - } - ] - } - }, "IdentifierArray": { "type": "array", "title": "IdentifierArray", diff --git a/openapi/ogcapi-processes.yaml b/openapi/ogcapi-processes.yaml index 398b5e2b..2576a38d 100644 --- a/openapi/ogcapi-processes.yaml +++ b/openapi/ogcapi-processes.yaml @@ -210,7 +210,7 @@ components: CWLWorkflowStepWhen: $ref: 'schemas/cwl/cwl-json-schema.yaml#/$defs/CWLWorkflowStepWhen' CWLWorkflowStepOut: - $ref: 'schemas/cwl/cwl-json-schema.yaml#/$defs/CWLWorkflowStepWhen' + $ref: 'schemas/cwl/cwl-json-schema.yaml#/$defs/CWLWorkflowStepOut' CWLWorkflowStepInMap: $ref: 'schemas/cwl/cwl-json-schema.yaml#/$defs/CWLWorkflowStepInMap' CWLWorkflowStepInList: From cfa51c21a008a8e83687b45fb209a90c9c6ed3af Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 27 Apr 2026 14:17:22 -0400 Subject: [PATCH 19/20] plugin variant to allow unique-name schema references --- .github/redocly/config.yaml | 6 + .github/redocly/schema-name-prefix.plugin.js | 119 + openapi/ogcapi-processes.bundled.json | 6986 ++++-------------- openapi/update.sh | 9 +- 4 files changed, 1562 insertions(+), 5558 deletions(-) create mode 100644 .github/redocly/schema-name-prefix.plugin.js diff --git a/.github/redocly/config.yaml b/.github/redocly/config.yaml index 6b47c50e..dab9ebf8 100644 --- a/.github/redocly/config.yaml +++ b/.github/redocly/config.yaml @@ -1,3 +1,9 @@ +plugins: + - './schema-name-prefix.plugin.js' + +decorators: + schema-prefix/preserve-schema-name-prefixes: on + rules: security-defined: off diff --git a/.github/redocly/schema-name-prefix.plugin.js b/.github/redocly/schema-name-prefix.plugin.js new file mode 100644 index 00000000..40b74f87 --- /dev/null +++ b/.github/redocly/schema-name-prefix.plugin.js @@ -0,0 +1,119 @@ +/** + * Redocly plugin to preserve schema name prefixes based on directory structure. + * Workaround for: https://github.com/Redocly/redocly-cli/issues/661 + * + * When bundling, Redocly auto-renames conflicting schemas (e.g., link.yaml -> link-2). + * This plugin modifies the bundled output to use directory-based prefixes for schema names. + */ + +// Store mapping of schema objects to their source information +const schemaSourceMap = new WeakMap(); + +const PreserveSchemaNamePrefixes = () => { + return { + any: { + enter(node, ctx) { + // Track all nodes from schema files + if (!node || typeof node !== 'object') { + return; + } + + const location = ctx.location; + if (!location || !location.source || !location.source.absoluteRef) { + return; + } + + const filePath = location.source.absoluteRef; + + // Skip component references + if (filePath.includes('#/components/')) { + return; + } + + // Extract: .../schemas/{directory}/{filename}.yaml + const match = filePath.match(/\/schemas\/([^\/]+)\/([^\/]+)\.yaml$/); + if (match) { + const [, directory, filename] = match; + + if (directory && directory !== 'schemas') { + // Store the source info for this node + schemaSourceMap.set(node, { + directory, + filename, + prefixedName: `${directory}-${filename}` + }); + } + } + } + }, + Root: { + leave(root) { + // Post-process: rename component schemas after bundling + if (!root.components || !root.components.schemas) { + return; + } + + const schemas = root.components.schemas; + const renameMap = new Map(); + + // Identify schemas that should be renamed + for (const [schemaName, schemaContent] of Object.entries(schemas)) { + const sourceInfo = schemaSourceMap.get(schemaContent); + + if (sourceInfo && sourceInfo.prefixedName) { + // Only rename if the name differs + if (schemaName !== sourceInfo.prefixedName) { + renameMap.set(schemaName, sourceInfo.prefixedName); + } + } + } + + // Apply renames + for (const [oldName, newName] of renameMap.entries()) { + // Move the schema to new name + if (schemas[oldName]) { + schemas[newName] = schemas[oldName]; + delete schemas[oldName]; + } + } + + // Update all $ref occurrences throughout the document + function updateRefs(obj) { + if (!obj || typeof obj !== 'object') { + return; + } + + if (obj.$ref && typeof obj.$ref === 'string') { + for (const [oldName, newName] of renameMap.entries()) { + const oldRef = `#/components/schemas/${oldName}`; + const newRef = `#/components/schemas/${newName}`; + if (obj.$ref === oldRef) { + obj.$ref = newRef; + } + } + } + + // Recursively update refs in nested objects + for (const value of Object.values(obj)) { + if (value && typeof value === 'object') { + updateRefs(value); + } + } + } + + updateRefs(root); + } + } + }; +}; + +module.exports = { + id: 'schema-prefix', + decorators: { + oas3: { + 'preserve-schema-name-prefixes': PreserveSchemaNamePrefixes, + } + } +}; + + diff --git a/openapi/ogcapi-processes.bundled.json b/openapi/ogcapi-processes.bundled.json index 77b891ad..7ed27ec3 100644 --- a/openapi/ogcapi-processes.bundled.json +++ b/openapi/ogcapi-processes.bundled.json @@ -155,22 +155,22 @@ "content": { "application/ogcapppkg+json": { "schema": { - "$ref": "#/components/schemas/ogcapppkg" + "$ref": "#/components/schemas/processes-dru-ogcapppkg" } }, "application/cwl": { "schema": { - "$ref": "#/components/schemas/CWL" + "$ref": "#/components/schemas/cwl-cwl-json-schema" } }, "application/cwl+json": { "schema": { - "$ref": "#/components/schemas/CWL" + "$ref": "#/components/schemas/cwl-cwl-json-schema" } }, "application/cwl+yaml": { "schema": { - "$ref": "#/components/schemas/CWL" + "$ref": "#/components/schemas/cwl-cwl-json-schema" } } } @@ -234,22 +234,22 @@ "content": { "application/ogcapppkg+json": { "schema": { - "$ref": "#/components/schemas/ogcapppkg" + "$ref": "#/components/schemas/processes-dru-ogcapppkg" } }, "application/cwl": { "schema": { - "$ref": "#/components/schemas/CWL" + "$ref": "#/components/schemas/cwl-cwl-json-schema" } }, "application/cwl+json": { "schema": { - "$ref": "#/components/schemas/CWL" + "$ref": "#/components/schemas/cwl-cwl-json-schema" } }, "application/cwl+yaml": { "schema": { - "$ref": "#/components/schemas/CWL" + "$ref": "#/components/schemas/cwl-cwl-json-schema" } } } @@ -322,22 +322,22 @@ "content": { "application/ogcapppkg+json": { "schema": { - "$ref": "#/components/schemas/ogcapppkg" + "$ref": "#/components/schemas/processes-dru-ogcapppkg" } }, "application/cwl": { "schema": { - "$ref": "#/components/schemas/CWL" + "$ref": "#/components/schemas/cwl-cwl-json-schema" } }, "application/cwl+json": { "schema": { - "$ref": "#/components/schemas/CWL" + "$ref": "#/components/schemas/cwl-cwl-json-schema" } }, "application/cwl+yaml": { "schema": { - "$ref": "#/components/schemas/CWL" + "$ref": "#/components/schemas/cwl-cwl-json-schema" } } } @@ -373,7 +373,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/execute-workflows" + "$ref": "#/components/schemas/processes-workflows-execute-workflows" } } } @@ -406,7 +406,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/results" + "$ref": "#/components/schemas/processes-core-results" } } } @@ -609,7 +609,236 @@ }, "components": { "schemas": { - "confClasses": { + "CWLWorkflowStepWhen": { + "$ref": "#/components/schemas/cwl-cwl-json-schema" + }, + "CQL2": { + "$ref": "#/components/schemas/cql2-cql2" + }, + "processes-list": { + "type": "string", + "enum": [ + "RenderMap", + "ElevationContours", + "OSMERE" + ] + }, + "bbox-processes": { + "$ref": "#/components/schemas/processes-core-bbox" + }, + "execute-workflow": { + "$ref": "#/components/schemas/processes-workflows-execute-workflows" + }, + "pointGeoJSON": { + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "Point" + ] + }, + "coordinates": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + } + }, + "multipointGeoJSON": { + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "MultiPoint" + ] + }, + "coordinates": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + } + } + }, + "linestringGeoJSON": { + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "LineString" + ] + }, + "coordinates": { + "type": "array", + "minItems": 2, + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + } + } + }, + "multilinestringGeoJSON": { + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "MultiLineString" + ] + }, + "coordinates": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + } + } + } + }, + "polygonGeoJSON": { + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "Polygon" + ] + }, + "coordinates": { + "type": "array", + "items": { + "type": "array", + "minItems": 4, + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + } + } + } + }, + "multipolygonGeoJSON": { + "type": "object", + "required": [ + "type", + "coordinates" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "MultiPolygon" + ] + }, + "coordinates": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "array", + "minItems": 4, + "items": { + "type": "array", + "minItems": 2, + "items": { + "type": "number" + } + } + } + } + } + } + }, + "geometryGeoJSON": { + "oneOf": [ + { + "$ref": "#/components/schemas/pointGeoJSON" + }, + { + "$ref": "#/components/schemas/multipointGeoJSON" + }, + { + "$ref": "#/components/schemas/linestringGeoJSON" + }, + { + "$ref": "#/components/schemas/multilinestringGeoJSON" + }, + { + "$ref": "#/components/schemas/polygonGeoJSON" + }, + { + "$ref": "#/components/schemas/multipolygonGeoJSON" + }, + { + "$ref": "#/components/schemas/geometrycollectionGeoJSON" + } + ] + }, + "geometrycollectionGeoJSON": { + "type": "object", + "required": [ + "type", + "geometries" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "GeometryCollection" + ] + }, + "geometries": { + "type": "array", + "items": { + "$ref": "#/components/schemas/geometryGeoJSON" + } + } + } + }, + "common-core-confClasses": { "type": "object", "required": [ "conformsTo" @@ -624,7 +853,7 @@ } } }, - "link": { + "common-core-link": { "type": "object", "required": [ "href" @@ -650,7 +879,7 @@ } } }, - "landingPage": { + "common-core-landingPage": { "type": "object", "required": [ "links" @@ -672,12 +901,12 @@ "links": { "type": "array", "items": { - "$ref": "#/components/schemas/link" + "$ref": "#/components/schemas/common-core-link" } } } }, - "exception": { + "common-core-exception": { "title": "Exception Schema", "description": "JSON schema for exceptions based on RFC 7807", "type": "object", @@ -703,7 +932,7 @@ }, "additionalProperties": true }, - "collections": { + "common-geodata-collections": { "type": "object", "required": [ "links", @@ -715,41 +944,41 @@ "title": "Links to resource in the collections", "description": "Links to this or other resources provided by the collections.", "items": { - "$ref": "#/components/schemas/link" + "$ref": "#/components/schemas/common-core-link" } }, "numberMatched": { - "$ref": "#/components/schemas/numberMatched" + "$ref": "#/components/schemas/common-geodata-numberMatched" }, "numberReturned": { - "$ref": "#/components/schemas/numberReturned" + "$ref": "#/components/schemas/common-geodata-numberReturned" }, "collections": { "type": "array", "title": "Collections descriptions", "description": "Descriptions of each collection in this API.", "items": { - "$ref": "#/components/schemas/collectionDesc" + "$ref": "#/components/schemas/common-geodata-collectionDesc" } } } }, - "collectionDesc": { + "common-geodata-collectionDesc": { "allOf": [ { - "$ref": "#/components/schemas/collectionProperties" + "$ref": "#/components/schemas/common-geodata-collectionProperties" }, { "type": "object", "properties": { "extent": { - "$ref": "#/components/schemas/extent" + "$ref": "#/components/schemas/common-geodata-extent" } } } ] }, - "extent": { + "common-geodata-extent": { "title": "Extent with (optional) Uniform Additional Dimensions Schema", "description": "The extent of the data in the collection.\nThis extent schema includes optional additional dimensions, but will still validate for objects not conforming to UAD.\nOGC API - Common - Part 2 \"Collections\" requirements class specifies only the definition of the spatial and temporal extents.\nThe \"Uniform Additional Dimensions\" requirements class specifies a generic schema for describing any additional dimension, such as thermal or pressure ranges.", "allOf": [ @@ -757,10 +986,10 @@ "type": "object", "properties": { "spatial": { - "$ref": "#/components/schemas/spatialExtent" + "$ref": "#/components/schemas/common-geodata-spatialExtent" }, "temporal": { - "$ref": "#/components/schemas/temporalExtent" + "$ref": "#/components/schemas/common-geodata-temporalExtent" } } }, @@ -773,14 +1002,14 @@ { "type": "object", "additionalProperties": { - "$ref": "#/components/schemas/additionalDimensionExtent" + "$ref": "#/components/schemas/common-geodata-additionalDimensionExtent" } } ] } ] }, - "extent-UAD": { + "common-geodata-extent-UAD": { "title": "Extent conforming to Uniform Additional Dimensions Schema", "description": "The extent of the data in the collection.\nThis extent schema requires that if any dimension beyond spatial and temporal are specified, they conform to the Uniform Additional Dimensions schema.\nIn addition to the spatial and temporal extents defined in the \"Collections\" requirements class of OGC API - Common - Part 2,\nthe \"Uniform Additional Dimensions\" requirements class specifies a generic schema for describing any additional dimension, such as thermal or pressure ranges.", "allOf": [ @@ -788,19 +1017,19 @@ "type": "object", "properties": { "spatial": { - "$ref": "#/components/schemas/spatialExtent" + "$ref": "#/components/schemas/common-geodata-spatialExtent" }, "temporal": { - "$ref": "#/components/schemas/temporalExtent" + "$ref": "#/components/schemas/common-geodata-temporalExtent" } }, "additionalProperties": { - "$ref": "#/components/schemas/additionalDimensionExtent" + "$ref": "#/components/schemas/common-geodata-additionalDimensionExtent" } } ] }, - "crs": { + "crs-crs": { "title": "CRS", "oneOf": [ { @@ -854,7 +1083,7 @@ } ] }, - "dataType": { + "common-geodata-dataType": { "anyOf": [ { "type": "string" @@ -869,5802 +1098,1445 @@ } ] }, - "timeStamp": { + "common-geodata-timeStamp": { "title": "Time stamp", "description": "This property indicates the time and date when the response was generated using RFC 3339 notation.", "type": "string", "format": "date-time", "example": "2017-08-17T08:05:32Z" }, - "numberReturned": { + "common-geodata-numberReturned": { "title": "The number of elements in the response", "description": "A server may omit this information, if the information about the number of elements is not known or difficult to compute. If the value is provided, the value shall be identical to the number of elements in the response.", "type": "integer", "minimum": 0, "example": 10 }, - "numberMatched": { + "common-geodata-numberMatched": { "title": "The number of elements in the response", "description": "The number of elements in the response that match the selection parameters like `bbox`.", "type": "integer", "minimum": 0, "example": 127 }, - "CWL": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLAtomic" - }, + "cwl-cwl-json-schema": { + "allOf": [ { - "$ref": "#/components/schemas/CWLGraph" + "$ref": "#/components/schemas/cwl-cwl-json-schema" }, { - "$ref": "#/components/schemas/CWLWorkflow" + "$ref": "#/components/schemas/cwl-cwl-json-schema" } ] }, - "cwltool_CUDARequirement": { + "dynamic-enumeration": { "type": "object", - "title": "cwltool:CUDARequirement", + "required": [ + "type", + "enum" + ], "properties": { - "class": { + "type": { "type": "string", "enum": [ - "cwltool:CUDARequirement" + "enum" ] }, - "cudaVersionMin": { - "type": "string", - "title": "CUDA version minimum", - "description": "The minimum CUDA version required to run the software. This corresponds to a CUDA SDK release.\n\nWhen run in a container, the container image should provide the CUDA runtime,\nand the host driver is injected into the container. In this case, because CUDA drivers\nare backwards compatible, it is possible to use an older SDK with a newer driver across major versions.\n\nSee https://docs.nvidia.com/deploy/cuda-compatibility/ for details.\n", - "example": "11.4", - "pattern": "^\\d+\\.\\d+$" - }, - "cudaComputeCapability": { - "$ref": "#/components/schemas/CUDAComputeCapability" - }, - "cudaDeviceCountMin": { - "type": "integer", - "title": "CUDA device count minimum", - "description": "The minimum amount of devices required.", - "default": 1, - "example": 1, - "minimum": 1 - }, - "cudaDeviceCountMax": { - "type": "integer", - "title": "CUDA device count maximum", - "description": "The maximum amount of devices required.", - "default": 1, - "example": 8, - "minimum": 1 + "enum": { + "type": "array", + "items": { + "type": "string" + } } - }, - "required": [ - "cudaVersionMin", - "cudaComputeCapability" - ], - "additionalProperties": false + } }, - "CWLAtomic": { + "processes-core-processSummary": { "allOf": [ { - "$ref": "#/components/schemas/CWLVersion" - }, - { - "$ref": "#/components/schemas/CWLMetadata" - }, - { - "$ref": "#/components/schemas/CWLDocumentation" + "$ref": "#/components/schemas/processes-core-descriptionType" }, { - "$ref": "#/components/schemas/CWLAtomicBase" - } - ] - }, - "CWLAtomicNested": { - "description": "Same as 'CWLAtomic', but 'cwlVersion' not repeated (only at root).", - "allOf": [ - { - "$ref": "#/components/schemas/CWLMetadata" - }, - { - "$ref": "#/components/schemas/CWLDocumentation" - }, - { - "$ref": "#/components/schemas/CWLAtomicBase" + "type": "object", + "required": [ + "id", + "version" + ], + "properties": { + "id": { + "type": "string" + }, + "version": { + "type": "string" + }, + "jobControlOptions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/processes-core-jobControlOptions" + } + }, + "links": { + "type": "array", + "items": { + "$ref": "#/components/schemas/processes-core-link" + } + } + } } ] }, - "CWLGraph": { - "title": "CWLGraph", + "processes-core-process": { "allOf": [ { - "$ref": "#/components/schemas/CWLVersion" + "$ref": "#/components/schemas/processes-core-processSummary" }, { - "$ref": "#/components/schemas/CWLMetadata" - }, - { - "$ref": "#/components/schemas/CWLDocumentation" - }, - { - "$ref": "#/components/schemas/CWLGraphBase" + "type": "object", + "properties": { + "inputs": { + "additionalProperties": { + "$ref": "#/components/schemas/processes-core-inputDescription" + } + }, + "outputs": { + "additionalProperties": { + "$ref": "#/components/schemas/processes-core-outputDescription" + } + } + } } ] }, - "CWLWorkflow": { - "allOf": [ - { - "$ref": "#/components/schemas/CWLVersion" - }, - { - "$ref": "#/components/schemas/CWLMetadata" - }, - { - "$ref": "#/components/schemas/CWLDocumentation" - }, - { - "$ref": "#/components/schemas/CWLWorkflowClass" + "processes-core-processList": { + "type": "object", + "required": [ + "processes", + "links" + ], + "properties": { + "processes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/processes-core-processSummary" + } }, - { - "$ref": "#/components/schemas/CWLWorkflowBase" + "links": { + "type": "array", + "items": { + "$ref": "#/components/schemas/processes-core-link" + } } - ] + } }, - "CWLWorkflowClass": { + "processes-core-jobList": { "type": "object", + "required": [ + "jobs", + "links" + ], "properties": { - "class": { - "type": "string", - "enum": [ - "Workflow" - ] + "jobs": { + "type": "array", + "items": { + "$ref": "#/components/schemas/processes-core-statusInfo" + } + }, + "links": { + "type": "array", + "items": { + "$ref": "#/components/schemas/processes-core-link" + } } } }, - "CWLWorkflowBase": { + "processes-core-descriptionType": { "type": "object", "properties": { - "steps": { - "$ref": "#/components/schemas/CWLWorkflowSteps" - }, - "inputs": { - "$ref": "#/components/schemas/CWLInputsDefinition" + "title": { + "type": "string" }, - "outputs": { - "$ref": "#/components/schemas/CWLOutputsDefinition" + "description": { + "type": "string" }, - "requirements": { - "description": "Technically a different subset, but lots of redefinitions to be done.", - "$ref": "#/components/schemas/CWLRequirements" + "keywords": { + "type": "array", + "items": { + "type": "string" + } }, - "hints": { - "description": "Technically a different subset, but lots of redefinitions to be done.", - "$ref": "#/components/schemas/CWLHints" + "metadata": { + "type": "array", + "items": { + "$ref": "#/components/schemas/processes-core-metadata" + } } } }, - "CWLWorkflowSteps": { - "oneOf": [ + "processes-core-binaryValue": { + "type": "string" + }, + "processes-workflows-inputParameterized": { + "allOf": [ { - "$ref": "#/components/schemas/CWLWorkflowStepMap" + "type": "object", + "required": [ + "$input" + ], + "properties": { + "$input": { + "type": "string" + } + } }, { - "$ref": "#/components/schemas/CWLWorkflowStepList" + "$ref": "#/components/schemas/processes-core-fieldsModifiers" } ] }, - "CWLInputsDefinition": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLInputList" + "processes-core-format": { + "type": "object", + "properties": { + "mediaType": { + "type": "string" }, - { - "description": "Avoid 'oneOf' conflict of generic mapping key strings as input identifier matching against '$import'.", - "allOf": [ + "encoding": { + "type": "string" + }, + "schema": { + "oneOf": [ { - "$ref": "#/components/schemas/CWLInputMap" + "type": "string", + "format": "url" }, { - "not": { - "$ref": "#/components/schemas/CWLImport" - } + "type": "object" } ] - }, - { - "$ref": "#/components/schemas/CWLImport" } - ], - "title": "CWLInputsDefinition", - "description": "All inputs available to the Application Package." + } }, - "CWLOutputsDefinition": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLOutputList" + "processes-core-schemaAndOccurrences": { + "type": "object", + "required": [ + "schema" + ], + "properties": { + "schema": { + "$ref": "#/components/schemas/processes-core-schema" }, - { - "description": "Avoid 'oneOf' conflict of generic mapping key strings as output identifier matching against '$import'.", - "allOf": [ + "minOccurs": { + "type": "integer", + "default": 1 + }, + "maxOccurs": { + "oneOf": [ { - "$ref": "#/components/schemas/CWLOutputMap" + "type": "integer", + "default": 1 }, { - "not": { - "$ref": "#/components/schemas/CWLImport" - } + "type": "string", + "enum": [ + "unbounded" + ] } ] - }, - { - "$ref": "#/components/schemas/CWLImport" } - ], - "title": "CWLOutputsDefinition", - "description": "All outputs produced by the Application Package." - }, - "CWLWorkflowStepMap": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/CWLWorkflowStepObject" - } - }, - "CWLWorkflowStepList": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CWLWorkflowStepItem" - } - }, - "CWLInputList": { - "type": "array", - "title": "CWLInputList", - "description": "Package inputs defined as items.", - "items": { - "$ref": "#/components/schemas/CWLInputItem" - } - }, - "CWLInputMap": { - "type": "object", - "title": "CWLInputMap", - "description": "Package inputs defined as mapping.", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLType" - }, - { - "$ref": "#/components/schemas/CWLInputObject" - }, - { - "$ref": "#/components/schemas/CWLInputStdIn" - }, - { - "$ref": "#/components/schemas/CWLImport" - } - ] } }, - "ResourceQuantityOrFractional": { - "title": "An item quantity that can also represent a proportion of use by resources.", - "description": "Technically should be minimum=1, but fractional for scheduling algorithms are allowed.\nThere is no way to distinguish between float/long simultaneously in JSON schema (multi-match oneOf).\nTherefore, only validate that it is greater than zero.\n", - "type": "number", - "exclusiveMinimum": true, - "minimum": 0, - "default": 1 - }, - "CWLExpression": { - "type": "string", - "title": "CWLExpression", - "description": "When combined with 'InlineJavascriptRequirement', this field allows runtime parameter references\n(see also: https://www.commonwl.org/v1.2/CommandLineTool.html#Expression).\nWhenever this option is applicable for a parameter, any other 'normal' string should not be specified.\nFor JSON schema validation, there is no easy way to distinguish them unless using complicated string patterns.\n" - }, - "InitialWorkDirListing": { - "title": "InitialWorkDirListing", - "oneOf": [ + "processes-core-inputDescription": { + "allOf": [ { - "$ref": "#/components/schemas/CWLExpression" + "$ref": "#/components/schemas/processes-core-descriptionType" }, { - "type": "array", - "title": "InitialWorkDirListingItems", - "items": { - "oneOf": [ - { - "nullable": true, + "$ref": "#/components/schemas/processes-core-dataClasses" + }, + { + "$ref": "#/components/schemas/processes-core-dataAccessAPIs" + }, + { + "$ref": "#/components/schemas/processes-core-executionUnitRequirements" + }, + { + "$ref": "#/components/schemas/processes-core-schemaAndOccurrences" + }, + { + "type": "object", + "properties": { + "valuePassing": { + "type": "array", + "items": { + "type": "string", "enum": [ - null + "byValue", + "byReference" ] }, - { - "$ref": "#/components/schemas/CWLExpression" - }, - { - "$ref": "#/components/schemas/DirectoryListingDirent" - }, - { - "$ref": "#/components/schemas/DirectoryListingFileOrDirectory" - }, - { - "type": "array", - "items": { - "$ref": "#/components/schemas/DirectoryListingFileOrDirectory" - } - } - ] + "default": [ + "byValue", + "byReference" + ] + } } } ] }, - "CWLRequirementsMap": { - "title": "CWLRequirementsMap", - "type": "object", - "properties": { - "cwltool:CUDARequirement": { - "$ref": "#/components/schemas/cwltool_CUDARequirement" - }, - "DockerRequirement": { - "$ref": "#/components/schemas/DockerRequirement" - }, - "SoftwareRequirement": { - "$ref": "#/components/schemas/SoftwareRequirement" - }, - "ShellCommandRequirement": { - "$ref": "#/components/schemas/ShellCommandRequirement" - }, - "EnvVarRequirement": { - "$ref": "#/components/schemas/EnvVarRequirement" - }, - "SchemaDefRequirement": { - "$ref": "#/components/schemas/SchemaDefRequirement" - }, - "InitialWorkDirRequirement": { - "$ref": "#/components/schemas/InitialWorkDirRequirement" - }, - "InlineJavascriptRequirement": { - "$ref": "#/components/schemas/InlineJavascriptRequirement" - }, - "InplaceUpdateRequirement": { - "$ref": "#/components/schemas/InplaceUpdateRequirement" + "processes-core-value": { + "anyOf": [ + { + "$ref": "#/components/schemas/processes-core-valueNoObject" }, - "LoadListingRequirement": { - "$ref": "#/components/schemas/LoadListingRequirement" + { + "type": "object" + } + ] + }, + "processes-core-collectionValue": { + "allOf": [ + { + "$ref": "#/components/schemas/processes-core-format" }, - "NetworkAccess": { - "allOf": [ - { - "description": "Not 'NetworkAccessRequirement'" - }, - { - "$ref": "#/components/schemas/NetworkAccessRequirement" - } - ] - }, - "ResourceRequirement": { - "$ref": "#/components/schemas/ResourceRequirement" - }, - "ScatterFeatureRequirement": { - "$ref": "#/components/schemas/ScatterFeatureRequirement" - }, - "ToolTimeLimit": { - "allOf": [ - { - "description": "Not 'ToolTimeLimitRequirement'" + { + "type": "object", + "required": [ + "collection" + ], + "properties": { + "collection": { + "description": "The URI of the OGC API collection that should be accessed to provide\ninput values from the corresponding process input. The server\noffering this collection is referred to as the \"value source server\".", + "anyOf": [ + { + "type": "string", + "description": "Collection identifier for a collection available at `{root}/collections/{collectionID}`, where `{root}` represents the landing page\nof the process using the collection as an input (for the top-level process, that is the landing page of the process execution endpoint\nto which the execution request is posted), or the landing page of the document being retrieved in the case of an output.\nIf the `collection` string includes a `/`, it must be interpreted as a URI reference rather than as a collection ID." + }, + { + "type": "string", + "description": "The URI of an OGC API collection.\nIf a relative URI reference is used, the Base URI is defined as such:\n- For a Collection value received as input to a process, the Base URI is defined as the URI of the description\n (`{root}/processes/{processId}`) of that process, with the receiving process object understood as the Encapsulating Entity as per\n [RFC 3986 Section 5.1.2](https://datatracker.ietf.org/doc/html/rfc3986#section-5.1.2).\n- For a Collection Output value, the Base URI is defined from the Retrieval URI as as per\n [RFC 3986 Section 5.1.3](https://datatracker.ietf.org/doc/html/rfc3986#section-5.1.3),\n for example, `/jobs/{jobId}/results`, `/jobs/{jobId}/results/{outputID}` or `/jobs/{jobId}/results/{outputID}/{N}` depending on the\n resource being retrieved.\nIf a collection string does not contain any `/`, it must not be interpreted as a URI reference, and must instead be resolved as a\ncollection identifier. For example, `countries` would resolve to `{root}/collections/countries` rather than `{root}/processes/countries`.", + "format": "uri-reference" + } + ] }, - { - "$ref": "#/components/schemas/ToolTimeLimitRequirement" - } - ] - }, - "WorkReuse": { - "allOf": [ - { - "description": "Not 'WorkReuseRequirement'" + "bbox": { + "description": "Only resources that have a geometry that intersects the bounding box\nare selected. The bounding box is provided as four or six numbers,\ndepending on whether the coordinate reference system includes a\nvertical axis (height or depth):\n\n* Lower left corner, coordinate axis 1\n* Lower left corner, coordinate axis 2\n* Minimum value, coordinate axis 3 (optional)\n* Upper right corner, coordinate axis 1\n* Upper right corner, coordinate axis 2\n* Maximum value, coordinate axis 3 (optional)\n\nIf the value consists of four numbers, the coordinate reference\nsystem is WGS84 longitude/latitude\n (http://www.opengis.net/def/crs/OGC/1.3/CRS84)\nunless a different coordinate reference system is specified in the\nparameter `bboxCrs`.\n\nIf the value consists of six numbers, the coordinate reference system\nis WGS84 (http://www.opengis.net/def/crs/OGC/0/CRS84h) longitude/\nlatitude/ ellipsoidal height unless a different coordinate reference\nsystem is specified in the parameter `bboxCrs`.\n\nFor WGS84 longitude/latitude the values are in most cases the sequence\nof minimum longitude, minimum latitude, maximum longitude and maximum\nlatitude. However, in cases where the box spans the antimeridian the\nfirst value (west-most box edge) is larger than the third value\n(east-most box edge).\n\nIf the vertical axis is included, the third and the sixth number are\nthe bottom and the top of the 3-dimensional bounding box.\n\nIf a resource has multiple spatial geometry properties, it is the\ndecision of the server whether only a single spatial geometry property\nis used to determine the extent or all relevant geometries.", + "type": "array", + "oneOf": [ + { + "minItems": 4, + "maxItems": 4 + }, + { + "minItems": 6, + "maxItems": 6 + } + ], + "items": { + "type": "number" + } }, - { - "$ref": "#/components/schemas/WorkReuseRequirement" - } - ] - }, - "MultipleInputFeatureRequirement": { - "$ref": "#/components/schemas/MultipleInputFeatureRequirement" - }, - "StepInputExpressionRequirement": { - "$ref": "#/components/schemas/StepInputExpressionRequirement" - }, - "SubworkflowFeatureRequirement": { - "$ref": "#/components/schemas/SubworkflowFeatureRequirement" - } - }, - "additionalProperties": false - }, - "CWLRequirements": { - "title": "CWLRequirements", - "description": "Explicit requirement to execute the application package.", - "oneOf": [ - { - "$ref": "#/components/schemas/CWLRequirementsMap" - }, - { - "$ref": "#/components/schemas/CWLRequirementsList" - } - ] - }, - "CWLCommand": { - "oneOf": [ - { - "type": "string", - "title": "String command." - }, - { - "$ref": "#/components/schemas/CommandParts" - } - ], - "title": "CWLCommand", - "description": "Command called in the docker image or on shell according to requirements\nand hints specifications. Can be omitted if already defined in the docker\nimage.\n" - }, - "InputBinding": { - "type": "object", - "title": "Input Binding", - "description": "Defines how to specify the input for the command.", - "properties": { - "prefix": { - "type": "string" - }, - "position": { - "oneOf": [ - { - "type": "integer" + "bboxCrs": { + "description": "Asserts the CRS used for the coordinate values of the `bbox`\nparameter. The default is WGS 84 or WGS84h depending on whether\nellipsoidal height is included or not:\n * WGS 84 longitude/latitude [4 numbers]\n (http://www.opengis.net/def/crs/OGC/1.3/CRS84)\n * WGS 84h longitude/latitude/ellipsoidal height [6 numbers]\n (http://www.opengis.net/def/crs/OGC/0/CRS84h_", + "type": "string", + "format": "uri" }, - { - "$ref": "#/components/schemas/CWLExpression" - } - ] - }, - "valueFrom": { - "$ref": "#/components/schemas/CWLExpression" - }, - "itemSeparator": { - "type": "string" - }, - "shellQuote": { - "type": "boolean" - } - }, - "additionalProperties": false - }, - "CWLInputItem": { - "title": "Input", - "description": "Input specification. Note that multiple formats are supported and\nnot all specification variants or parameters are presented here. Please refer\nto official CWL documentation for more details (https://www.commonwl.org).\n", - "allOf": [ - { - "$ref": "#/components/schemas/CWLInputItemBase" - }, - { - "$ref": "#/components/schemas/CWLDefaultTypedConditional" - }, - { - "$ref": "#/components/schemas/CWLDocumentation" - } - ] - }, - "DirectoryListingDirent": { - "description": "Called 'Dirent' in documentation.", - "type": "object", - "title": "DirectoryListingDirent", - "properties": { - "entry": { - "$ref": "#/components/schemas/CWLExpression" - }, - "entryname": { - "$ref": "#/components/schemas/CWLExpression" - }, - "writable": { - "type": "boolean" - } - }, - "required": [ - "entry" - ], - "additionalProperties": false - }, - "DirectoryListingFileOrDirectory": { - "type": "object", - "properties": { - "class": { - "type": "string", - "enum": [ - "File", - "Directory" - ] - }, - "location": { - "type": "string" - }, - "checksum": { - "$ref": "#/components/schemas/Checksum" - }, - "size": { - "type": "integer", - "minimum": 0 - } - }, - "required": [ - "class", - "location" - ], - "additionalProperties": false - }, - "SoftwareRequirement": { - "type": "object", - "properties": { - "class": { - "type": "string", - "enum": [ - "SoftwareRequirement" - ] - }, - "packages": { - "oneOf": [ - { + "geometry": { + "description": "Only resources that have a geometry that intersects the geometry\nspecified using the `geometry` parameter are selected. The value of\nthe `geometry` parameter can be specified using WKT or GeoJSON.\nIf a resource has multiple spatial geometry properties, it is the\ndecision of the server whether only a single spatial geometry property\nis used to determine the extent or all relevant geometries.", + "oneOf": [ + { + "type": "string" + }, + { + "$ref": "#/components/schemas/geometryGeoJSON" + } + ] + }, + "geometryCrs": { + "description": "Asserts the CRS used for the coordinate values of the `geometry`\nparameter. The default is WGS 84 or WGS84h depending on whether\nellipsoidal height is included or not:\n * WGS 84 longitude/latitude [4 numbers]\n (http://www.opengis.net/def/crs/OGC/1.3/CRS84)\n * WGS 84h longitude/latitude/ellipsoidal height [6 numbers]\n (http://www.opengis.net/def/crs/OGC/0/CRS84h_", + "type": "string" + }, + "datetime": { + "description": "Either a date-time or an interval, half-bounded or bounded. Date and\ntime expressions adhere to RFC 3339. Half-bounded intervals are\nexpressed using double-dots.\n\nExamples:\n * A date-time:\n \"2018-02-12T23:20:50Z\"\n * A bounded interval:\n \"2018-02-12T00:00:00Z/2018-03-18T12:31:12Z\"\n * Half-bounded intervals:\n \"2018-02-12T00:00:00Z/..\" or \"../2018-03-18T12:31:12Z\"\n\nOnly resources that have a temporal property that intersects the\nvalue of `datetime` are selected.\n\nIf a resource has multiple temporal properties, it is the decision of\nthe server whether only a single temporal property is used to\ndetermine the extent or all relevant temporal properties.", + "type": "string" + }, + "limit": { + "description": "The optional limit parameter limits the number of items that are\npresented in the response document.\nOnly items are counted that are on the first level of the collection\nin the response document. Nested objects contained within the\nexplicitly requested items shall not be counted.", + "type": "integer", + "minimum": 1, + "maximum": 10000, + "default": 10 + }, + "crs": { + "description": "If the parameter is specified, then the coordinates of all\ngeometry-valued properties in the response document are in\nthe requested CRS. Otherwise the coordinates are in the default CRS,\nthat is http://www.opengis.net/def/crs/OGC/1.3/CRS84 for coordinates\nwithout height and http://www.opengis.net/def/crs/OGC/0/CRS84h for\ncoordinates with ellipsoidal height.", + "type": "string", + "format": "uri" + }, + "filter": { + "description": "A search or filter condition. This condition determines which\nresources from the OGC API collection are included in the result\nset and are thus passed as values to the corresponding process input.\nThe `filter` parameter can be a string where the search condition is\nencoded in some text-based query langauge (e.g. cql2-text) or a\nCQL2 JSON object that encodes the search condition using JSON.", + "oneOf": [ + { + "type": "string" + }, + { + "$ref": "#/components/schemas/cql2-cql2" + } + ] + }, + "filterCrs": { + "description": "Asserts the CRS used for the coordinate values of the `filter`\nparameter. The default is WGS 84 or WGS 84h depending on whether\nellispoidal jeight is included with the coordinates or not:\n * WGS 84 longitude/latitude\n (http://www.opengis.net/def/crs/OGC/1.3/CRS84)\n * WGS 84h longitude/latitude/ellipsoidal height\n (http://www.opengis.net/def/crs/OGC/0/CRS84h_", + "type": "string", + "format": "uri-reference" + }, + "filterLang": { + "description": "Indicates the language used to encode a filter expression specified\nusing the `filter` parameter. Query languages can include CQL2 text,\nCQL 2 JSON or OGC Filter Encoding (XML).", + "type": "string", + "enum": [ + "cql2-text", + "cql2-json", + "fes-xml" + ] + }, + "subset": { + "description": "Retrieve only part of the data by slicing or trimming along one or\nmore axis. For trimming: {axisAbbrev}({low}:{high}) (preserves\ndimensionality). An asterisk (`*`) can be used instead of {low} or\n{high} to indicate the minimum/maximum value. For slicing:\n{axisAbbrev}({value}) (reduces dimensionality).", "type": "array", "items": { - "$ref": "#/components/schemas/SoftwarePackage" + "type": "string" } }, - { + "subsetCrs": { + "description": "Asserts the CRS used for the coordinate values of the `subset`\nparameter. The default is WGS 84 or WGS 84h depending on whether\nellispoidal height in included with the coordinates or not:\n * WGS 84 longitude/latitude\n (http://www.opengis.net/def/crs/OGC/1.3/CRS84)\n * WGS 84h longitude/latitude/ellipsoidal height\n (http://www.opengis.net/def/crs/OGC/0/CRS84h_", + "type": "string" + }, + "ids": { + "description": "The optional ids parameter allows a specific list of resources,\nindicated by their identifiers, to be fetched from the OGC API\ncollection. Only resources whose identifier matches one of the\nvalues listed for this parameter shall appear in the result set.", + "type": "array", + "items": { + "type": "string" + } + }, + "q": { + "description": "The optional q parameter supports keyword searching. Only resources\nwhose text fields contain one or more of the specified search terms\nare selected. The specific set of text keys/fields/properties of a\nresource to which the q operator is applied is up to the discretion\nof the server. Implementations should, however, apply the q\noperator to the title, description and keywords keys/fields/properties\nif they exist in the resource.", + "type": "array", + "items": { + "type": "string" + } + }, + "assets": { + "description": "A list of STAC asset tags.", + "type": "array", + "items": { + "type": "string" + } + }, + "properties": { + "description": "A filter that selects resource properties to be included in a\nresponse document. The elements in the `properties` parameter can\nbe the names of resource properties, aliases for resources properties\nor synthetic properties. Synthetic properties are properties that\nare computed on the fly and can reference resource property names\nor aliases for resource properties.", + "type": "array", + "items": { + "type": "string" + } + }, + "aliases": { + "description": "A dictionary of aliases that can be used as values for the\n`properties` parameter. Aliases can be alternative names for\nresource properties or synthetic properties. Synthetic properties\nare named expressions that are computed at run-time. Expressions\nfor synthetic properties are encoded using some expression language\nand can include references to resource property names or aliases\nfor resource properties..", "type": "object", - "description": "Mapping of 'package' name to its specifications.", "additionalProperties": { "oneOf": [ { - "$ref": "#/components/schemas/SoftwarePackageSpecs" + "type": "string" }, { - "$ref": "#/components/schemas/SoftwarePackage" + "type": "object", + "properties": { + "expressionLang": { + "type": "string", + "enum": [ + "cql2-text", + "cql2-json" + ] + }, + "expression": { + "oneOf": [ + { + "type": "string" + }, + { + "$ref": "#/components/schemas/cql2-cql2" + } + ] + } + } } ] - } - } - ] - } - }, - "required": [ - "packages" - ], - "additionalProperties": false - }, - "DockerRequirement": { - "type": "object", - "title": "DockerRequirement", - "properties": { - "class": { - "type": "string", - "enum": [ - "DockerRequirement" - ] - }, - "dockerPull": { - "type": "string", - "title": "Docker pull reference", - "description": "Reference package that will be retrieved and executed by CWL.", - "example": "docker-registry.host.com/namespace/image:1.2.3" - }, - "dockerImport": { - "type": "string" - }, - "dockerLoad": { - "type": "string" - }, - "dockerFile": { - "type": "string" - }, - "dockerImageId": { - "type": "string" - }, - "dockerOutputDirectory": { - "type": "string" - } - }, - "oneOf": [ - { - "required": [ - "dockerPull" - ] - }, - { - "required": [ - "dockerImport" - ] - }, - { - "required": [ - "dockerLoad" - ] - }, - { - "required": [ - "dockerFile" - ] - } - ], - "additionalProperties": false - }, - "ShellCommandRequirement": { - "type": "object", - "properties": { - "class": { - "type": "string", - "enum": [ - "ShellCommandRequirement" - ] - } - }, - "additionalProperties": false - }, - "EnvVarRequirement": { - "type": "object", - "properties": { - "class": { - "type": "string", - "enum": [ - "EnvVarRequirement" - ] - }, - "envDef": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/components/schemas/EnvironmentDef" - } - }, - { - "type": "object", - "description": "Mapping of 'envName' to environment value or definition.", - "additionalProperties": { - "oneOf": [ - { - "description": "The 'envValue' specified directly", - "$ref": "#/components/schemas/CWLExpression" - }, - { - "$ref": "#/components/schemas/EnvironmentDef" - } - ] - } - } - ] - } - }, - "required": [ - "envDef" - ], - "additionalProperties": false - }, - "SchemaDefRequirement": { - "type": "object", - "properties": { - "class": { - "type": "string", - "enum": [ - "SchemaDefRequirement" - ] - }, - "types": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLTypeEnum" - }, - { - "$ref": "#/components/schemas/CWLTypeRecordSchema" - }, - { - "$ref": "#/components/schemas/CWLTypeRecordArray" - }, - { - "$ref": "#/components/schemas/CWLImport" - } - ] - } - } - }, - "required": [ - "types" - ], - "additionalProperties": false - }, - "InitialWorkDirRequirement": { - "type": "object", - "title": "InitialWorkDirRequirement", - "properties": { - "class": { - "type": "string", - "enum": [ - "InitialWorkDirRequirement" - ] - }, - "listing": { - "$ref": "#/components/schemas/InitialWorkDirListing" - } - }, - "required": [ - "listing" - ], - "additionalProperties": false - }, - "InlineJavascriptRequirement": { - "type": "object", - "title": "InlineJavascriptRequirement", - "description": "Indicates that the workflow platform must support inline Javascript expressions.\n\nIf this requirement is not present, the workflow platform must not perform expression interpolation\n(see also: https://www.commonwl.org/v1.2/CommandLineTool.html#InlineJavascriptRequirement).\n", - "properties": { - "class": { - "type": "string", - "enum": [ - "InlineJavascriptRequirement" - ] - }, - "expressionLib": { - "$ref": "#/components/schemas/InlineJavascriptLibraries" - } - }, - "required": [ - "expressionLib" - ], - "additionalProperties": false - }, - "InplaceUpdateRequirement": { - "type": "object", - "title": "InplaceUpdateRequirement", - "description": "If 'inplaceUpdate' is true, then an implementation supporting this feature may permit tools to directly\nupdate files with 'writable: true' in 'InitialWorkDirRequirement'. That is, as an optimization,\nfiles may be destructively modified in place as opposed to copied and updated\n(see also: https://www.commonwl.org/v1.2/CommandLineTool.html#InplaceUpdateRequirement).\n", - "properties": { - "class": { - "type": "string", - "enum": [ - "InplaceUpdateRequirement" - ] - }, - "inplaceUpdate": { - "type": "boolean", - "title": "inplaceUpdate" - } - }, - "required": [ - "inplaceUpdate" - ], - "additionalProperties": false - }, - "LoadListingRequirement": { - "type": "object", - "title": "LoadListingRequirement", - "description": "Specify the desired behavior for loading the listing field of a 'Directory' object for use by expressions\n(see also: https://www.commonwl.org/v1.2/CommandLineTool.html#LoadListingRequirement).\n", - "properties": { - "class": { - "type": "string", - "enum": [ - "LoadListingRequirement" - ] - }, - "loadListing": { - "$ref": "#/components/schemas/LoadListingEnum" - } - }, - "required": [ - "loadListing" - ], - "additionalProperties": false - }, - "NetworkAccessRequirement": { - "type": "object", - "title": "NetworkAccessRequirement", - "properties": { - "class": { - "type": "string", - "description": "Not 'NetworkAccessRequirement'", - "enum": [ - "NetworkAccess" - ] - }, - "networkAccess": { - "$ref": "#/components/schemas/NetworkAccess" - } - }, - "required": [ - "networkAccess" - ], - "additionalProperties": false - }, - "ResourceRequirement": { - "type": "object", - "title": "ResourceRequirement", - "description": "Specify basic hardware resource requirements\n(see also: https://www.commonwl.org/v1.2/CommandLineTool.html#ResourceRequirement).\n", - "properties": { - "class": { - "type": "string", - "enum": [ - "ResourceRequirement" - ] - }, - "coresMin": { - "$ref": "#/components/schemas/ResourceCoresMinimum" - }, - "coresMax": { - "$ref": "#/components/schemas/ResourceCoresMaximum" - }, - "ramMin": { - "$ref": "#/components/schemas/ResourceRAMMinimum" - }, - "ramMax": { - "$ref": "#/components/schemas/ResourceRAMMaximum" - }, - "tmpdirMin": { - "$ref": "#/components/schemas/ResourceTmpDirMinimum" - }, - "tmpdirMax": { - "$ref": "#/components/schemas/ResourceTmpDirMaximum" - }, - "outdirMin": { - "$ref": "#/components/schemas/ResourceOutDirMinimum" - }, - "outdirMax": { - "$ref": "#/components/schemas/ResourceOutDirMaximum" - } - }, - "additionalProperties": false - }, - "ScatterFeatureRequirement": { - "type": "object", - "title": "ScatterFeatureRequirement", - "description": "A 'scatter' operation specifies that the associated Workflow step should execute separately over a list of\ninput elements. Each job making up a scatter operation is independent and may be executed concurrently\n(see also: https://www.commonwl.org/v1.2/Workflow.html#WorkflowStep).\nFields 'scatter' and 'scatterMethod' at the root of a 'WorkflowStep', not within the requirement.\n", - "properties": { - "class": { - "type": "string", - "description": "CWL requirement class specification.", - "enum": [ - "ScatterFeatureRequirement" - ] - } - }, - "additionalProperties": false - }, - "WorkReuseRequirement": { - "type": "object", - "title": "WorkReuseRequirement", - "description": "For implementations that support reusing output from past work\n(on the assumption that same code and same input produce same results),\ncontrol whether to enable or disable the reuse behavior for a particular tool\nor step (to accommodate situations where that assumption is incorrect).\nA reused step is not executed but instead returns the same output as the original execution.\nIf 'WorkReuse' is not specified, correct tools should assume it is enabled by default.\n", - "properties": { - "class": { - "type": "string", - "description": "Not 'WorkReuseRequirement'.", - "enum": [ - "WorkReuse" - ] - }, - "enableReuse": { - "$ref": "#/components/schemas/EnableReuseValue" - } - }, - "required": [ - "enableReuse" - ], - "additionalProperties": false - }, - "ToolTimeLimitRequirement": { - "type": "object", - "title": "ToolTimeLimitRequirement", - "description": "Set an upper limit on the execution time of a CommandLineTool.\n\nA CommandLineTool whose execution duration exceeds the time limit may be preemptively\nterminated and considered failed. May also be used by batch systems to make scheduling decisions.\n\nThe execution duration excludes external operations, such as staging of files,\npulling a docker image etc., and only counts wall-time for the execution of the command line itself.\n", - "properties": { - "class": { - "type": "string", - "description": "not 'ToolTimeLimitRequirement'", - "enum": [ - "ToolTimeLimit" - ] - }, - "timelimit": { - "$ref": "#/components/schemas/TimeLimitValue" - } - }, - "required": [ - "timelimit" - ], - "additionalProperties": false - }, - "MultipleInputFeatureRequirement": { - "type": "object", - "title": "MultipleInputFeatureRequirement", - "description": "Indicates that the 'Workflow' must support multiple inbound data links listed in the 'source'\nfield of 'WorkflowStepInput'.\n", - "properties": { - "class": { - "type": "string", - "description": "CWL requirement class specification.", - "enum": [ - "MultipleInputFeatureRequirement" - ] - } - }, - "additionalProperties": false - }, - "StepInputExpressionRequirement": { - "type": "object", - "title": "StepInputExpressionRequirement", - "description": "Indicates that the 'Workflow' must support the 'valueFrom' field of 'WorkflowStepInput'.", - "properties": { - "class": { - "type": "string", - "description": "CWL requirement class specification.", - "enum": [ - "StepInputExpressionRequirement" - ] - } - }, - "additionalProperties": false - }, - "SubworkflowFeatureRequirement": { - "type": "object", - "title": "SubworkflowFeatureRequirement", - "description": "Indicates that the 'Workflow' must support nested workflows in the 'run' field of 'WorkflowStep'.", - "properties": { - "class": { - "type": "string", - "description": "CWL requirement class specification.", - "enum": [ - "SubworkflowFeatureRequirement" - ] - } - }, - "additionalProperties": false - }, - "CWLHints": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLHintsMap" - }, - { - "$ref": "#/components/schemas/CWLHintsList" - } - ], - "title": "CWLHints", - "description": "Non-failing additional hints that can help resolve extra requirements." - }, - "CWLWorkflowStepDefinition": { - "type": "object", - "properties": { - "in": { - "$ref": "#/components/schemas/CWLWorkflowStepIn" - }, - "run": { - "$ref": "#/components/schemas/CWLWorkflowStepRun" - }, - "when": { - "$ref": "#/components/schemas/CWLExpression" - }, - "out": { - "$ref": "#/components/schemas/CWLWorkflowStepOut" - } - }, - "required": [ - "in", - "run", - "out" - ] - }, - "CWLWorkflowStepScatter": { - "type": "object", - "properties": { - "scatter": { - "$ref": "#/components/schemas/Scatter" - }, - "scatterMethod": { - "$ref": "#/components/schemas/ScatterMethod" - } - } - }, - "CWLWorkflowStepId": { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/CWLIdentifier" - } - }, - "required": [ - "id" - ] - }, - "CWLHintsMap": { - "title": "CWLHintsMap", - "anyOf": [ - { - "$ref": "#/components/schemas/CWLRequirementsMap" - }, - { - "$ref": "#/components/schemas/CWLHintsMapExtras" - } - ] - }, - "CWLHintsList": { - "type": "array", - "title": "CWLHintsList", - "items": { - "oneOf": [ - { - "allOf": [ - { - "description": "When using the list representation, 'class' is required to indicate which one is being represented.\nWhen using the mapping representation, 'class' is optional since it's the key, but it must match by name.\n", - "required": [ - "class" - ] - }, - { - "$ref": "#/components/schemas/CWLHintsItem" - } - ] - }, - { - "$ref": "#/components/schemas/CWLImport" - } - ] - } - }, - "CWLWorkflowStepIn": { - "description": "Mapping of Workflow step inputs to nested CWL tool definitions inputs or outputs.", - "oneOf": [ - { - "$ref": "#/components/schemas/CWLWorkflowStepInMap" - }, - { - "$ref": "#/components/schemas/CWLWorkflowStepInList" - } - ] - }, - "CWLWorkflowStepRun": { - "description": "Nested CWL definition to run as Workflow step.", - "oneOf": [ - { - "description": "File or URL reference to a CWL tool definition.", - "type": "string" - }, - { - "description": "Nested CWL tool definition for the step.", - "$ref": "#/components/schemas/CWLAtomicNested" - }, - { - "description": "Nested CWL Workflow definition for the step.", - "$ref": "#/components/schemas/CWLWorkflowNested" - } - ] - }, - "CWLWorkflowStepWhen": { - "$ref": "#/components/schemas/CWLExpression" - }, - "CWLWorkflowStepOut": { - "description": "Mapping of Workflow step inputs to nested CWL tool definitions inputs or outputs.", - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLIdentifier" - }, - { - "$ref": "#/components/schemas/CWLWorkflowStepOutId" - } - ] - } - }, - "CWLWorkflowStepInMap": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "$ref": "#/components/schemas/CWLWorkflowStepInput" - } - ] - } - }, - "CWLWorkflowStepInList": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CWLWorkflowStepInItem" - } - }, - "CWLWorkflowStepInItem": { - "allOf": [ - { - "$ref": "#/components/schemas/CWLWorkflowStepInputId" - }, - { - "$ref": "#/components/schemas/CWLWorkflowStepInputBase" - }, - { - "$ref": "#/components/schemas/CWLWorkflowStepInputDefault" - } - ] - }, - "CWLWorkflowStepInputId": { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/CWLIdentifier" - } - }, - "required": [ - "id" - ] - }, - "CWLWorkflowStepInputBase": { - "type": "object", - "properties": { - "source": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "array", - "items": { - "type": "string" - } - } - ] - }, - "linkMerge": { - "$ref": "#/components/schemas/LinkMergeMethod" - }, - "valueFrom": { - "$ref": "#/components/schemas/CWLExpression" - } - } - }, - "CWLWorkflowStepInputDefault": { - "description": "CWL 'type' is not specified at this level for step inputs\n(it is provided by the mapped input of the nested tool instead).\nTherefore, cannot validate against 'CWLDefaultTypedConditional'.\n", - "type": "object", - "properties": { - "default": { - "$ref": "#/components/schemas/CWLDefault" - } - } - }, - "NetworkAccess": { - "title": "NetworkAccess", - "description": "Indicate whether a process requires outgoing IPv4/IPv6 network access.", - "example": true, - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "#/components/schemas/CWLExpression" - } - ] - }, - "EnvironmentDef": { - "type": "object", - "properties": { - "envName": { - "type": "string", - "minLength": 1 - }, - "envValue": { - "$ref": "#/components/schemas/CWLExpression" - } - }, - "required": [ - "envName", - "envValue" - ], - "additionalProperties": false - }, - "CWLType": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLTypeBase" - }, - { - "$ref": "#/components/schemas/CWLTypeList" - } - ], - "title": "CWL Type" - }, - "CWLOutputObject": { - "allOf": [ - { - "$ref": "#/components/schemas/CWLDocumentation" - }, - { - "$ref": "#/components/schemas/CWLOutputObjectBase" - } - ] - }, - "CWLOutputStdOut": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLOutputStdOutDefinition" - }, - { - "$ref": "#/components/schemas/CWLOutputStdOutObjectType" - } - ] - }, - "CWLOutputStdErr": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLOutputStdErrDefinition" - }, - { - "$ref": "#/components/schemas/CWLOutputStdErrObjectType" - } - ] - }, - "CWLTypeEnum": { - "type": "object", - "title": "CWLTypeEnum (CWL type as enum of values).", - "properties": { - "type": { - "type": "string", - "title": "type", - "example": "enum", - "enum": [ - "enum" - ] - }, - "symbols": { - "$ref": "#/components/schemas/CWLTypeSymbols" - } - }, - "required": [ - "type", - "symbols" - ] - }, - "CWLTypeRecordSchema": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "record" - ] - }, - "fields": { - "$ref": "#/components/schemas/CWLTypeRecordFields" - }, - "name": { - "type": "string" - } - }, - "required": [ - "type" - ] - }, - "CWLTypeRecordArray": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "array" - ] - }, - "items": { - "$ref": "#/components/schemas/CWLType" - } - }, - "required": [ - "type", - "items" - ] - }, - "CWLDefaultTypedConditional": { - "description": "Validate that the 'default' value, if specified, is of same type as the CWL 'type'.\nThis avoids over-accepting anything that does not match the intended type.\nHowever, validation limits itself to data literals and arrays.\nNested type and multi-type definitions will validate against 'Any'.\n", - "oneOf": [ - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "null" - ] - }, - "default": { - "nullable": true, - "enum": [ - null - ] - } - }, - "required": [ - "type" - ] - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "string", - "string?" - ] - }, - "default": { - "type": "string", - "nullable": true - } - }, - "required": [ - "type" - ] - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "boolean", - "boolean?" - ] - }, - "default": { - "type": "boolean", - "nullable": true - } - }, - "required": [ - "type" - ] - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "int", - "int?", - "long", - "long?", - "float", - "float?", - "double", - "double?", - "integer", - "integer?" - ] - }, - "default": { - "type": "number", - "nullable": true - } - }, - "required": [ - "type" - ] - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "File", - "File?", - "Directory", - "Directory?" - ] - }, - "default": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLDefaultLocation" - }, - { - "nullable": true, - "enum": [ - null - ] - } - ] - } - }, - "required": [ - "type" - ] - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "pattern": "^[a-zA-Z]+\\\\[\\\\]$" - }, - "default": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AnyType" - } - } - }, - "required": [ - "type" - ] - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "array" - ] - }, - "items": { - "$ref": "#/components/schemas/AnyType" - }, - "default": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AnyType" - } - } - }, - "required": [ - "type", - "items" - ] - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "enum", - "enum?" - ] - }, - "symbols": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": { - "type": "string", - "nullable": true - } - }, - "required": [ - "type", - "symbols" - ] - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "Any", - "Any?" - ] - }, - "default": { - "$ref": "#/components/schemas/AnyType" - } - }, - "required": [ - "type" - ] - } - ] - }, - "CWLTypeBase": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLTypeDefinition" - }, - { - "$ref": "#/components/schemas/CWLTypeArray" - }, - { - "$ref": "#/components/schemas/CWLTypeEnum" - }, - { - "$ref": "#/components/schemas/CWLTypeRecordRef" - }, - { - "$ref": "#/components/schemas/CWLTypeRecordSchema" - } - ], - "title": "CWLTypeBase" - }, - "CWLTypeList": { - "type": "array", - "title": "CWLTypeList (Combination of allowed CWL types).", - "items": { - "$ref": "#/components/schemas/CWLTypeBase" - } - }, - "AnyType": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "number" - }, - { - "type": "string" - }, - { - "type": "array", - "items": {} - }, - { - "type": "object" - } - ] - }, - "CWLTypeDefinition": { - "type": "string", - "title": "CWL type string definition", - "description": "Note that 'Any' is equivalent to any of the non-null types.\nTherefore, a nullable 'Any' explicitly specified by 'Any?' or its array-nullable form 'Any[]?' are not equivalent.\nField type definition.\n", - "enum": [ - "null", - "Any", - "Any?", - "Any[]", - "Any[]?", - "Directory", - "Directory?", - "Directory[]", - "Directory[]?", - "File", - "File?", - "File[]", - "File[]?", - "boolean", - "boolean?", - "boolean[]", - "boolean[]?", - "double", - "double?", - "double[]", - "double[]?", - "enum?", - "enum[]", - "enum[]?", - "float", - "float?", - "float[]", - "float[]?", - "int", - "int?", - "int[]", - "int[]?", - "integer", - "integer?", - "integer[]", - "integer[]?", - "long", - "long?", - "long[]", - "long[]?", - "string", - "string?", - "string[]", - "string[]?" - ] - }, - "CWLTypeArray": { - "type": "object", - "title": "CWLTypeArray (CWL type as list of items).", - "properties": { - "type": { - "type": "string", - "title": "type", - "example": "array", - "enum": [ - "array" - ] - }, - "items": { - "$ref": "#/components/schemas/CWLType" - } - }, - "required": [ - "type", - "items" - ] - }, - "CWLTypeRecordRef": { - "description": "An IRI with minimally a '{Record}' identifier to look for a schema definition locally or remotely.\n\nThe identifier resolution is performed accordingly to the specified reference and as described in\nhttps://www.commonwl.org/v1.2/SchemaSalad.html#Identifier_resolution.\nAvoid 'oneOf' conflict of valid strings between this CWL record reference and the generic CWL types.\n", - "allOf": [ - { - "not": { - "$ref": "#/components/schemas/CWLTypeDefinition" - } - }, - { - "not": { - "$ref": "#/components/schemas/CWLInputStdInDefinition" - } - }, - { - "not": { - "$ref": "#/components/schemas/CWLOutputStdOutDefinition" - } - }, - { - "not": { - "$ref": "#/components/schemas/CWLOutputStdErrDefinition" - } - }, - { - "$ref": "#/components/schemas/CWLTypeRecordRefPattern" - } - ] - }, - "CWLTypeRecordFieldsMap": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLType" - }, - { - "$ref": "#/components/schemas/CWLTypeRecordFieldDef" - } - ] - } - }, - "CWLTypeRecordFieldsList": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CWLTypeRecordFieldsItem" - } - }, - "CWLTypeRecordFieldDefBase": { - "type": "object", - "properties": { - "name": { - "description": "Required if list item. Otherwise, optional since it is the mapping key.\nThis requirement is defined in 'CWLTypeRecordFieldsItem' to allow reuse of this schema.\n", - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/CWLType" - } - }, - "required": [ - "type" - ] - }, - "CWLFileOnlyParametersConditional": { - "description": "Explicitly disallow these parameters when non-File type is detected.\nOtherwise, validate their schema definitions according to what is permitted.\nParameters that are only valid when 'type' or 'items' evaluates to 'File'.\n", - "type": "object", - "anyOf": [ - { - "$ref": "#/components/schemas/CWLFileOnlyParameters" - }, - { - "not": { - "properties": { - "secondaryFiles": {}, - "streamable": {}, - "format": {}, - "loadContents": {} - } - } - } - ] - }, - "CWLDirectoryOnlyParametersConditional": { - "description": "Explicitly disallow these parameters when non-Directory type is detected.\nOtherwise, validate their schema definitions according to what is permitted.\nParameters that are only valid when 'type' or 'items' evaluates to 'Directory'.\n", - "type": "object", - "oneOf": [ - { - "$ref": "#/components/schemas/CWLDirectoryOnlyParameters" - }, - { - "not": { - "properties": { - "loadListing": {} - } - } - } - ] - }, - "CWLFileOnlyParameters": { - "type": "object", - "properties": { - "secondaryFiles": { - "$ref": "#/components/schemas/CWLTypeRecordSecondaryFiles" - }, - "streamable": { - "type": "boolean" - }, - "format": { - "$ref": "#/components/schemas/CWLFormat" - }, - "loadContents": { - "type": "boolean" - } - } - }, - "CWLTypeRecordSecondaryFiles": { - "oneOf": [ - { - "description": "Either an expression or the regex pattern directly.", - "$ref": "#/components/schemas/CWLExpression" - }, - { - "$ref": "#/components/schemas/CWLTypeRecordSecondaryFileSchema" - }, - { - "type": "array", - "items": { - "description": "Either an expression or the regex pattern directly.", - "$ref": "#/components/schemas/CWLExpression" - } - }, - { - "type": "array", - "items": { - "$ref": "#/components/schemas/CWLTypeRecordSecondaryFileSchema" - } - } - ] - }, - "CWLTypeRecordSecondaryFileSchema": { - "type": "object", - "properties": { - "pattern": { - "description": "Either an expression or the regex pattern directly.", - "$ref": "#/components/schemas/CWLExpression" - }, - "required": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "#/components/schemas/CWLExpression" - } - ] - } - }, - "required": [ - "pattern" - ], - "additionalProperties": false - }, - "CWLRequirementsList": { - "type": "array", - "title": "CWLRequirementsList", - "items": { - "oneOf": [ - { - "allOf": [ - { - "description": "When using the list representation, 'class' is required to indicate which one is being represented.\nWhen using the mapping representation, 'class' is optional since it's the key, but it must match by name.\n", - "required": [ - "class" - ] - }, - { - "$ref": "#/components/schemas/CWLRequirementsItem" - } - ] - }, - { - "$ref": "#/components/schemas/CWLImport" - } - ] - } - }, - "CWLRequirementsItem": { - "title": "CWLRequirementsItem", - "description": "For any new items added, ensure they are added under 'class' of 'UnknownRequirement' as well.\nOtherwise, insufficiently restrictive classes could cause multiple matches, failing the 'oneOf' condition.\n", - "oneOf": [ - { - "$ref": "#/components/schemas/cwltool_CUDARequirement" - }, - { - "$ref": "#/components/schemas/DockerRequirement" - }, - { - "$ref": "#/components/schemas/SoftwareRequirement" - }, - { - "$ref": "#/components/schemas/ShellCommandRequirement" - }, - { - "$ref": "#/components/schemas/EnvVarRequirement" - }, - { - "$ref": "#/components/schemas/SchemaDefRequirement" - }, - { - "$ref": "#/components/schemas/InitialWorkDirRequirement" - }, - { - "$ref": "#/components/schemas/InlineJavascriptRequirement" - }, - { - "$ref": "#/components/schemas/InplaceUpdateRequirement" - }, - { - "$ref": "#/components/schemas/LoadListingRequirement" - }, - { - "$ref": "#/components/schemas/NetworkAccessRequirement" - }, - { - "$ref": "#/components/schemas/ResourceRequirement" - }, - { - "$ref": "#/components/schemas/ScatterFeatureRequirement" - }, - { - "$ref": "#/components/schemas/ToolTimeLimitRequirement" - }, - { - "$ref": "#/components/schemas/WorkReuseRequirement" - }, - { - "$ref": "#/components/schemas/MultipleInputFeatureRequirement" - }, - { - "$ref": "#/components/schemas/StepInputExpressionRequirement" - }, - { - "$ref": "#/components/schemas/SubworkflowFeatureRequirement" - } - ] - }, - "CWLOutputStdOutDefinition": { - "description": "Indicates that the data pushed to the standard output stream by the command will be redirected to this CWL output.\nCan be defined for only one output. If combined with 'stdout' at the root of the CWL document, that definition\nwill indicate the desired name of the output file where the output stream will be written to. A random name will\nbe applied for the file of this output unless otherwise specified.\n", - "type": "string", - "enum": [ - "stdout" - ] - }, - "CWLOutputStdOutObjectType": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/CWLOutputStdOutDefinition" - } - }, - "required": [ - "type" - ] - }, - "CWLOutputStdErrDefinition": { - "description": "Indicates that the data pushed to the standard error stream by the command will be redirected to this CWL output.\nCan be defined for only one output. If combined with 'stderr' at the root of the CWL document, that definition\nwill indicate the desired name of the output file where the error stream will be written to. A random name will\nbe applied for the file of this output unless otherwise specified.\n", - "type": "string", - "enum": [ - "stderr" - ] - }, - "CWLOutputStdErrObjectType": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/CWLOutputStdErrDefinition" - } - }, - "required": [ - "type" - ] - }, - "CWLTypeRecordFieldDef": { - "allOf": [ - { - "$ref": "#/components/schemas/CWLTypeRecordFieldDefBase" - }, - { - "$ref": "#/components/schemas/CWLFileOnlyParametersConditional" - }, - { - "$ref": "#/components/schemas/CWLDirectoryOnlyParametersConditional" - } - ] - }, - "CWLDefault": { - "title": "CWLDefault", - "description": "Default value of input if not provided for task execution.", - "oneOf": [ - { - "$ref": "#/components/schemas/AnyLiteralType" - }, - { - "$ref": "#/components/schemas/AnyLiteralList" - }, - { - "$ref": "#/components/schemas/CWLDefaultLocation" - }, - { - "$ref": "#/components/schemas/CWLDefaultObject" - }, - { - "type": "array", - "items": { - "$ref": "#/components/schemas/CWLDefaultObject" - } - } - ] - }, - "AnyLiteralType": { - "oneOf": [ - { - "type": "number" - }, - { - "type": "boolean" - }, - { - "type": "string" - } - ] - }, - "AnyLiteralList": { - "type": "array", - "title": "AnyLiteralList", - "items": { - "$ref": "#/components/schemas/AnyLiteralType" - } - }, - "CWLDefaultLocation": { - "type": "object", - "properties": { - "class": { - "type": "string", - "enum": [ - "File", - "Directory" - ] - }, - "path": { - "type": "string" - }, - "location": { - "type": "string" - }, - "basename": { - "type": "string" - }, - "nameroot": { - "type": "string" - } - }, - "required": [ - "class" - ], - "oneOf": [ - { - "required": [ - "path" - ] - }, - { - "required": [ - "location" - ] - } - ], - "additionalProperties": false - }, - "CWLDefaultObject": { - "type": "object", - "not": { - "description": "Avoid false-positive match of default File or Directory location definition.", - "properties": { - "class": { - "type": "string", - "enum": [ - "File", - "Directory" - ] - } - } - } - }, - "CWLTypeRecordFields": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLTypeRecordFieldsMap" - }, - { - "$ref": "#/components/schemas/CWLTypeRecordFieldsList" - } - ] - }, - "CWLImport": { - "title": "CWLImport", - "description": "The schema validation of the CWL will not itself perform the '$import' to resolve and validate its contents.\nTherefore, the complete schema will not be validated entirely, and could still be partially malformed.\nTo ensure proper and exhaustive validation of a CWL definition with this schema, all '$import' directives\nshould be resolved and extended beforehand.\nRepresents an '$import' directive that should point toward another compatible CWL file to import where specified.\nThe contents of the imported file should be relevant contextually where it is being imported.\n", - "type": "object", - "properties": { - "$import": { - "type": "string" - } - }, - "required": [ - "$import" - ], - "additionalProperties": false - }, - "CWLVersion": { - "type": "object", - "properties": { - "cwlVersion": { - "type": "string", - "title": "cwlVersion", - "description": "CWL version of the described application package.", - "pattern": "^v\\d+(\\.\\d+(\\.\\d+)*)*$" - } - }, - "required": [ - "cwlVersion" - ] - }, - "CWLMetadata": { - "type": "object", - "properties": { - "s:keywords": { - "$ref": "#/components/schemas/CWLKeywordList" - }, - "version": { - "type": "string", - "title": "version", - "description": "Version of the process.", - "example": "1.2.3", - "pattern": "^\\d+(\\.\\d+(\\.\\d+(\\.[A-Za-z0-9\\-_]+)*)*)*$" - } - } - }, - "CWLDocumentation": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "doc": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "array", - "items": { - "type": "string" - } - } - ] - } - } - }, - "CWLAtomicBase": { - "type": "object", - "title": "CWL atomic definition", - "description": "Direct CWL definition instead of the graph representation.", - "properties": { - "id": { - "$ref": "#/components/schemas/CWLIdentifier" - }, - "class": { - "type": "string", - "title": "Class", - "description": "CWL class specification. This is used to differentiate between single Application Package (AP)definitions and Workflow that chains multiple packages.", - "enum": [ - "CommandLineTool", - "ExpressionTool" - ] - }, - "intent": { - "$ref": "#/components/schemas/CWLIntent" - }, - "requirements": { - "$ref": "#/components/schemas/CWLRequirements" - }, - "hints": { - "$ref": "#/components/schemas/CWLHints" - }, - "baseCommand": { - "$ref": "#/components/schemas/CWLCommand" - }, - "arguments": { - "$ref": "#/components/schemas/CWLArguments" - }, - "inputs": { - "$ref": "#/components/schemas/CWLInputsDefinition" - }, - "outputs": { - "$ref": "#/components/schemas/CWLOutputsDefinition" - }, - "stdin": { - "description": "Source of the input stream.\nTypically, an expression referring to an existing file name or an input of the CWL document.\n", - "$ref": "#/components/schemas/CWLExpression" - }, - "stdout": { - "description": "Destination of the output stream.\nTypically, an expression referring to a desired file name or provided by a CWL input reference.\n", - "$ref": "#/components/schemas/CWLExpression" - }, - "stderr": { - "description": "Destination of the error stream.\nTypically, an expression referring to a desired file name or provided by a CWL input reference.\n", - "$ref": "#/components/schemas/CWLExpression" - }, - "scatter": { - "$ref": "#/components/schemas/CWLScatter" - }, - "scatterMethod": { - "$ref": "#/components/schemas/CWLScatterMethod" - } - }, - "required": [ - "class", - "inputs", - "outputs" - ] - }, - "CWLOutputList": { - "type": "array", - "title": "CWLOutputList", - "description": "Package outputs defined as items.", - "items": { - "$ref": "#/components/schemas/CWLOutputItem" - } - }, - "CWLOutputMap": { - "type": "object", - "title": "CWLOutputMap", - "description": "Package outputs defined as mapping.", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLType" - }, - { - "$ref": "#/components/schemas/CWLOutputObject" - }, - { - "$ref": "#/components/schemas/CWLOutputStdOut" - }, - { - "$ref": "#/components/schemas/CWLOutputStdErr" - }, - { - "$ref": "#/components/schemas/CWLImport" - } - ] - } - }, - "CWLOutputItem": { - "type": "object", - "title": "CWLOutputItem", - "description": "Output specification. Note that multiple formats are supported\nand not all specification variants or parameters are presented here. Please\nrefer to official CWL documentation for more details (https://www.commonwl.org).\n", - "properties": { - "type": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLType" - }, - { - "$ref": "#/components/schemas/CWLOutputStdOut" - }, - { - "$ref": "#/components/schemas/CWLOutputStdErr" - } - ] - }, - "outputBinding": { - "$ref": "#/components/schemas/OutputBinding" - }, - "id": { - "description": "Identifier of the CWL output.", - "$ref": "#/components/schemas/CWLIdentifier" - } - }, - "required": [ - "type", - "id" - ] - }, - "CWLWorkflowStepObject": { - "allOf": [ - { - "$ref": "#/components/schemas/CWLWorkflowStepDefinition" - }, - { - "$ref": "#/components/schemas/CWLWorkflowStepScatter" - } - ] - }, - "CWLInputStdInDefinition": { - "description": "Indicates that the value passed to this CWL input will be redirected to the standard input stream of the command.\nCan be defined for only one input and must not be combined with 'stdin' at the root of the CWL document.\n", - "type": "string", - "enum": [ - "stdin" - ] - }, - "CWLInputStdInObjectType": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/CWLInputStdInDefinition" - } - }, - "required": [ - "type" - ] - }, - "CWLInputStdIn": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLInputStdInDefinition" - }, - { - "$ref": "#/components/schemas/CWLInputStdInObjectType" - } - ] - }, - "CWLArguments": { - "type": "array", - "title": "CWLArguments", - "description": "Base arguments passed to the command.", - "items": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/InputBinding" - } - ] - } - }, - "SoftwarePackage": { - "type": "object", - "properties": { - "package": { - "type": "string" - }, - "version": { - "type": "array", - "items": { - "type": "string" - } - }, - "specs": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ReferenceURL" - } - } - }, - "required": [ - "package" - ], - "additionalProperties": false - }, - "SoftwarePackageSpecs": { - "type": "array", - "items": { - "type": "string" - } - }, - "CQL2": { - "$ref": "#/components/schemas/cql2" - }, - "enumeration": { - "type": "object", - "required": [ - "type", - "enum" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "enum" - ] - }, - "enum": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "processes-list": { - "type": "string", - "enum": [ - "RenderMap", - "ElevationContours", - "OSMERE" - ] - }, - "processSummary": { - "allOf": [ - { - "$ref": "#/components/schemas/descriptionType" - }, - { - "type": "object", - "required": [ - "id", - "version" - ], - "properties": { - "id": { - "type": "string" - }, - "version": { - "type": "string" - }, - "jobControlOptions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/jobControlOptions" - } - }, - "links": { - "type": "array", - "items": { - "$ref": "#/components/schemas/link-2" - } - } - } - } - ] - }, - "process": { - "allOf": [ - { - "$ref": "#/components/schemas/processSummary" - }, - { - "type": "object", - "properties": { - "inputs": { - "additionalProperties": { - "$ref": "#/components/schemas/inputDescription" - } - }, - "outputs": { - "additionalProperties": { - "$ref": "#/components/schemas/outputDescription" - } - } - } - } - ] - }, - "processList": { - "type": "object", - "required": [ - "processes", - "links" - ], - "properties": { - "processes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/processSummary" - } - }, - "links": { - "type": "array", - "items": { - "$ref": "#/components/schemas/link-2" - } - } - } - }, - "jobList": { - "type": "object", - "required": [ - "jobs", - "links" - ], - "properties": { - "jobs": { - "type": "array", - "items": { - "$ref": "#/components/schemas/statusInfo" - } - }, - "links": { - "type": "array", - "items": { - "$ref": "#/components/schemas/link-2" - } - } - } - }, - "bbox-processes": { - "$ref": "#/components/schemas/bbox" - }, - "descriptionType": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "keywords": { - "type": "array", - "items": { - "type": "string" - } - }, - "metadata": { - "type": "array", - "items": { - "$ref": "#/components/schemas/metadata" - } - } - } - }, - "binaryValue": { - "type": "string" - }, - "execute-workflow": { - "$ref": "#/components/schemas/execute-workflows" - }, - "inputParameterized": { - "allOf": [ - { - "type": "object", - "required": [ - "$input" - ], - "properties": { - "$input": { - "type": "string" - } - } - }, - { - "$ref": "#/components/schemas/fieldsModifiers" - } - ] - }, - "format": { - "type": "object", - "properties": { - "mediaType": { - "type": "string" - }, - "encoding": { - "type": "string" - }, - "schema": { - "oneOf": [ - { - "type": "string", - "format": "url" - }, - { - "type": "object" - } - ] - } - } - }, - "schemaAndOccurrences": { - "type": "object", - "required": [ - "schema" - ], - "properties": { - "schema": { - "$ref": "#/components/schemas/schema" - }, - "minOccurs": { - "type": "integer", - "default": 1 - }, - "maxOccurs": { - "oneOf": [ - { - "type": "integer", - "default": 1 - }, - { - "type": "string", - "enum": [ - "unbounded" - ] - } - ] - } - } - }, - "inputDescription": { - "allOf": [ - { - "$ref": "#/components/schemas/descriptionType" - }, - { - "$ref": "#/components/schemas/dataClasses" - }, - { - "$ref": "#/components/schemas/dataAccessAPIs" - }, - { - "$ref": "#/components/schemas/executionUnitRequirements" - }, - { - "$ref": "#/components/schemas/schemaAndOccurrences" - }, - { - "type": "object", - "properties": { - "valuePassing": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "byValue", - "byReference" - ] - }, - "default": [ - "byValue", - "byReference" - ] - } - } - } - ] - }, - "value": { - "anyOf": [ - { - "$ref": "#/components/schemas/valueNoObject" - }, - { - "type": "object" - } - ] - }, - "collectionValue": { - "allOf": [ - { - "$ref": "#/components/schemas/format" - }, - { - "type": "object", - "required": [ - "collection" - ], - "properties": { - "collection": { - "description": "The URI of the OGC API collection that should be accessed to provide\ninput values from the corresponding process input. The server\noffering this collection is referred to as the \"value source server\".", - "anyOf": [ - { - "type": "string", - "description": "Collection identifier for a collection available at `{root}/collections/{collectionID}`, where `{root}` represents the landing page\nof the process using the collection as an input (for the top-level process, that is the landing page of the process execution endpoint\nto which the execution request is posted), or the landing page of the document being retrieved in the case of an output.\nIf the `collection` string includes a `/`, it must be interpreted as a URI reference rather than as a collection ID." - }, - { - "type": "string", - "description": "The URI of an OGC API collection.\nIf a relative URI reference is used, the Base URI is defined as such:\n- For a Collection value received as input to a process, the Base URI is defined as the URI of the description\n (`{root}/processes/{processId}`) of that process, with the receiving process object understood as the Encapsulating Entity as per\n [RFC 3986 Section 5.1.2](https://datatracker.ietf.org/doc/html/rfc3986#section-5.1.2).\n- For a Collection Output value, the Base URI is defined from the Retrieval URI as as per\n [RFC 3986 Section 5.1.3](https://datatracker.ietf.org/doc/html/rfc3986#section-5.1.3),\n for example, `/jobs/{jobId}/results`, `/jobs/{jobId}/results/{outputID}` or `/jobs/{jobId}/results/{outputID}/{N}` depending on the\n resource being retrieved.\nIf a collection string does not contain any `/`, it must not be interpreted as a URI reference, and must instead be resolved as a\ncollection identifier. For example, `countries` would resolve to `{root}/collections/countries` rather than `{root}/processes/countries`.", - "format": "uri-reference" - } - ] - }, - "bbox": { - "description": "Only resources that have a geometry that intersects the bounding box\nare selected. The bounding box is provided as four or six numbers,\ndepending on whether the coordinate reference system includes a\nvertical axis (height or depth):\n\n* Lower left corner, coordinate axis 1\n* Lower left corner, coordinate axis 2\n* Minimum value, coordinate axis 3 (optional)\n* Upper right corner, coordinate axis 1\n* Upper right corner, coordinate axis 2\n* Maximum value, coordinate axis 3 (optional)\n\nIf the value consists of four numbers, the coordinate reference\nsystem is WGS84 longitude/latitude\n (http://www.opengis.net/def/crs/OGC/1.3/CRS84)\nunless a different coordinate reference system is specified in the\nparameter `bboxCrs`.\n\nIf the value consists of six numbers, the coordinate reference system\nis WGS84 (http://www.opengis.net/def/crs/OGC/0/CRS84h) longitude/\nlatitude/ ellipsoidal height unless a different coordinate reference\nsystem is specified in the parameter `bboxCrs`.\n\nFor WGS84 longitude/latitude the values are in most cases the sequence\nof minimum longitude, minimum latitude, maximum longitude and maximum\nlatitude. However, in cases where the box spans the antimeridian the\nfirst value (west-most box edge) is larger than the third value\n(east-most box edge).\n\nIf the vertical axis is included, the third and the sixth number are\nthe bottom and the top of the 3-dimensional bounding box.\n\nIf a resource has multiple spatial geometry properties, it is the\ndecision of the server whether only a single spatial geometry property\nis used to determine the extent or all relevant geometries.", - "type": "array", - "oneOf": [ - { - "minItems": 4, - "maxItems": 4 - }, - { - "minItems": 6, - "maxItems": 6 - } - ], - "items": { - "type": "number" - } - }, - "bboxCrs": { - "description": "Asserts the CRS used for the coordinate values of the `bbox`\nparameter. The default is WGS 84 or WGS84h depending on whether\nellipsoidal height is included or not:\n * WGS 84 longitude/latitude [4 numbers]\n (http://www.opengis.net/def/crs/OGC/1.3/CRS84)\n * WGS 84h longitude/latitude/ellipsoidal height [6 numbers]\n (http://www.opengis.net/def/crs/OGC/0/CRS84h_", - "type": "string", - "format": "uri" - }, - "geometry": { - "description": "Only resources that have a geometry that intersects the geometry\nspecified using the `geometry` parameter are selected. The value of\nthe `geometry` parameter can be specified using WKT or GeoJSON.\nIf a resource has multiple spatial geometry properties, it is the\ndecision of the server whether only a single spatial geometry property\nis used to determine the extent or all relevant geometries.", - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/geometryGeoJSON" - } - ] - }, - "geometryCrs": { - "description": "Asserts the CRS used for the coordinate values of the `geometry`\nparameter. The default is WGS 84 or WGS84h depending on whether\nellipsoidal height is included or not:\n * WGS 84 longitude/latitude [4 numbers]\n (http://www.opengis.net/def/crs/OGC/1.3/CRS84)\n * WGS 84h longitude/latitude/ellipsoidal height [6 numbers]\n (http://www.opengis.net/def/crs/OGC/0/CRS84h_", - "type": "string" - }, - "datetime": { - "description": "Either a date-time or an interval, half-bounded or bounded. Date and\ntime expressions adhere to RFC 3339. Half-bounded intervals are\nexpressed using double-dots.\n\nExamples:\n * A date-time:\n \"2018-02-12T23:20:50Z\"\n * A bounded interval:\n \"2018-02-12T00:00:00Z/2018-03-18T12:31:12Z\"\n * Half-bounded intervals:\n \"2018-02-12T00:00:00Z/..\" or \"../2018-03-18T12:31:12Z\"\n\nOnly resources that have a temporal property that intersects the\nvalue of `datetime` are selected.\n\nIf a resource has multiple temporal properties, it is the decision of\nthe server whether only a single temporal property is used to\ndetermine the extent or all relevant temporal properties.", - "type": "string" - }, - "limit": { - "description": "The optional limit parameter limits the number of items that are\npresented in the response document.\nOnly items are counted that are on the first level of the collection\nin the response document. Nested objects contained within the\nexplicitly requested items shall not be counted.", - "type": "integer", - "minimum": 1, - "maximum": 10000, - "default": 10 - }, - "crs": { - "description": "If the parameter is specified, then the coordinates of all\ngeometry-valued properties in the response document are in\nthe requested CRS. Otherwise the coordinates are in the default CRS,\nthat is http://www.opengis.net/def/crs/OGC/1.3/CRS84 for coordinates\nwithout height and http://www.opengis.net/def/crs/OGC/0/CRS84h for\ncoordinates with ellipsoidal height.", - "type": "string", - "format": "uri" - }, - "filter": { - "description": "A search or filter condition. This condition determines which\nresources from the OGC API collection are included in the result\nset and are thus passed as values to the corresponding process input.\nThe `filter` parameter can be a string where the search condition is\nencoded in some text-based query langauge (e.g. cql2-text) or a\nCQL2 JSON object that encodes the search condition using JSON.", - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/cql2" - } - ] - }, - "filterCrs": { - "description": "Asserts the CRS used for the coordinate values of the `filter`\nparameter. The default is WGS 84 or WGS 84h depending on whether\nellispoidal jeight is included with the coordinates or not:\n * WGS 84 longitude/latitude\n (http://www.opengis.net/def/crs/OGC/1.3/CRS84)\n * WGS 84h longitude/latitude/ellipsoidal height\n (http://www.opengis.net/def/crs/OGC/0/CRS84h_", - "type": "string", - "format": "uri-reference" - }, - "filterLang": { - "description": "Indicates the language used to encode a filter expression specified\nusing the `filter` parameter. Query languages can include CQL2 text,\nCQL 2 JSON or OGC Filter Encoding (XML).", - "type": "string", - "enum": [ - "cql2-text", - "cql2-json", - "fes-xml" - ] - }, - "subset": { - "description": "Retrieve only part of the data by slicing or trimming along one or\nmore axis. For trimming: {axisAbbrev}({low}:{high}) (preserves\ndimensionality). An asterisk (`*`) can be used instead of {low} or\n{high} to indicate the minimum/maximum value. For slicing:\n{axisAbbrev}({value}) (reduces dimensionality).", - "type": "array", - "items": { - "type": "string" - } - }, - "subsetCrs": { - "description": "Asserts the CRS used for the coordinate values of the `subset`\nparameter. The default is WGS 84 or WGS 84h depending on whether\nellispoidal height in included with the coordinates or not:\n * WGS 84 longitude/latitude\n (http://www.opengis.net/def/crs/OGC/1.3/CRS84)\n * WGS 84h longitude/latitude/ellipsoidal height\n (http://www.opengis.net/def/crs/OGC/0/CRS84h_", - "type": "string" - }, - "ids": { - "description": "The optional ids parameter allows a specific list of resources,\nindicated by their identifiers, to be fetched from the OGC API\ncollection. Only resources whose identifier matches one of the\nvalues listed for this parameter shall appear in the result set.", - "type": "array", - "items": { - "type": "string" - } - }, - "q": { - "description": "The optional q parameter supports keyword searching. Only resources\nwhose text fields contain one or more of the specified search terms\nare selected. The specific set of text keys/fields/properties of a\nresource to which the q operator is applied is up to the discretion\nof the server. Implementations should, however, apply the q\noperator to the title, description and keywords keys/fields/properties\nif they exist in the resource.", - "type": "array", - "items": { - "type": "string" - } - }, - "assets": { - "description": "A list of STAC asset tags.", - "type": "array", - "items": { - "type": "string" - } - }, - "properties": { - "description": "A filter that selects resource properties to be included in a\nresponse document. The elements in the `properties` parameter can\nbe the names of resource properties, aliases for resources properties\nor synthetic properties. Synthetic properties are properties that\nare computed on the fly and can reference resource property names\nor aliases for resource properties.", - "type": "array", - "items": { - "type": "string" - } - }, - "aliases": { - "description": "A dictionary of aliases that can be used as values for the\n`properties` parameter. Aliases can be alternative names for\nresource properties or synthetic properties. Synthetic properties\nare named expressions that are computed at run-time. Expressions\nfor synthetic properties are encoded using some expression language\nand can include references to resource property names or aliases\nfor resource properties..", - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "object", - "properties": { - "expressionLang": { - "type": "string", - "enum": [ - "cql2-text", - "cql2-json" - ] - }, - "expression": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/cql2" - } - ] - } - } - } - ] - } - }, - "passThroughParameters": { - "description": "Parameters specified in this object are passed through to the value\nsource server for processing on that server. The keys used in this\nobject should be identical to query parameters that the value source\nserver would recognize. In the case where the OAProc server supports\nlocal filtering, the `passThroughParameters` property provides a\nmechanism to force filtering to happen on the value source server.", - "type": "object" - } - } - } - ] - }, - "valueNoObject": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "integer" - }, - { - "type": "boolean" - }, - { - "type": "array", - "items": {} - }, - { - "$ref": "#/components/schemas/binaryValue" - }, - { - "$ref": "#/components/schemas/bbox" - }, - { - "$ref": "#/components/schemas/collectionValue" - } - ] - }, - "valueNoObject-workflows": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "integer" - }, - { - "type": "boolean" - }, - { - "type": "array", - "items": {} - }, - { - "$ref": "#/components/schemas/binaryValue" - }, - { - "$ref": "#/components/schemas/bbox" - }, - { - "$ref": "#/components/schemas/collectionValue" - }, - { - "$ref": "#/components/schemas/inputProcess" - }, - { - "$ref": "#/components/schemas/inputParameterized" - } - ] - }, - "jobControlOptions": { - "type": "string", - "enum": [ - "sync-execute", - "async-execute", - "dismiss" - ] - }, - "metadata": { - "oneOf": [ - { - "allOf": [ - { - "$ref": "#/components/schemas/link-2" - }, - { - "type": "object", - "properties": { - "role": { - "type": "string" - } - } - } - ] - }, - { - "type": "object", - "properties": { - "role": { - "type": "string" - }, - "title": { - "type": "string" - }, - "lang": { - "type": "string" - }, - "value": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "object" - } - ] - } - } - } - ] - }, - "values": { - "anyOf": [ - { - "$ref": "#/components/schemas/inlineOrRefValue" - }, - { - "type": "array", - "items": { - "$ref": "#/components/schemas/inlineOrRefValue" - } - } - ] - }, - "values-workflows": { - "oneOf": [ - { - "$ref": "#/components/schemas/inlineOrRefValue-workflows" - }, - { - "type": "array", - "items": { - "$ref": "#/components/schemas/inlineOrRefValue-workflows" - } - } - ] - }, - "outputSelection": { - "type": "object", - "properties": { - "format": { - "$ref": "#/components/schemas/format" - } - } - }, - "outputDescription": { - "allOf": [ - { - "$ref": "#/components/schemas/descriptionType" - }, - { - "$ref": "#/components/schemas/dataClasses" - }, - { - "$ref": "#/components/schemas/dataAccessAPIs" - }, - { - "$ref": "#/components/schemas/schemaAndOccurrences" - } - ] - }, - "qualifiedValue": { - "allOf": [ - { - "$ref": "#/components/schemas/format" - }, - { - "type": "object", - "required": [ - "value" - ], - "properties": { - "value": { - "$ref": "#/components/schemas/value" - } - } - } - ] - }, - "reference": { - "type": "object", - "required": [ - "$ref" - ], - "properties": { - "$ref": { - "type": "string", - "format": "uri-reference" - } - }, - "additionalProperties": false - }, - "results": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/values" - } - }, - "schema": { - "description": "Attributes of the features or fields of a coverage range. Defined by a subset of the JSON Schema for the properties of a feature", - "type": "object", - "required": [ - "type", - "properties" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "object" - ] - }, - "required": { - "type": "array", - "minItems": 1, - "items": { - "type": "string" - } - }, - "properties": { - "type": "object", - "default": {}, - "additionalProperties": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "array", - "boolean", - "integer", - "null", - "number", - "object", - "string" - ] - }, - "enum": { - "type": "array", - "minItems": 1, - "items": {}, - "uniqueItems": true - }, - "format": { - "type": "string" - }, - "contentMediaType": { - "type": "string" - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "pattern": { - "type": "string", - "format": "regex" - }, - "maxItems": { - "type": "integer", - "minimum": 0 - }, - "minItems": { - "type": "integer", - "default": 0, - "minimum": 0 - }, - "x-ogc-definition": { - "type": "string", - "format": "uri" - }, - "x-ogc-unit": { - "type": "string" - }, - "x-ogc-unitLang": { - "type": "string" - } - } - } - } - } - }, - "statusCode": { - "type": "string", - "nullable": false, - "enum": [ - "accepted", - "running", - "successful", - "failed", - "dismissed" - ] - }, - "subscriber": { - "description": "Optional URIs for callbacks for this job.\n\nSupport for this parameter is not required and the parameter may be\nremoved from the API definition, if conformance class **'callback'**\nis not listed in the conformance declaration under `/conformance`.", - "type": "object", - "properties": { - "successUri": { - "type": "string", - "format": "uri" - }, - "inProgressUri": { - "type": "string", - "format": "uri" - }, - "failedUri": { - "type": "string", - "format": "uri" - } - } - }, - "inlineOrRefValue": { - "oneOf": [ - { - "$ref": "#/components/schemas/valueNoObject" - }, - { - "$ref": "#/components/schemas/qualifiedValue" - }, - { - "$ref": "#/components/schemas/link-2" - } - ] - }, - "inlineOrRefValue-workflows": { - "oneOf": [ - { - "$ref": "#/components/schemas/valueNoObject-workflows" - }, - { - "$ref": "#/components/schemas/qualifiedValue-workflows" - }, - { - "$ref": "#/components/schemas/link" - } - ] - }, - "fieldsModifiers": { - "type": "object", - "properties": { - "filter": { - "oneOf": [ - { - "type": "string" - }, - { - "description": "Basic CQL2-JSON definition", - "type": "array", - "items": { - "type": "object" - } - } - ] - }, - "filter-lang": { - "type": "string", - "example": "cql2-text" - }, - "filter-crs": { - "type": "string", - "format": "uri-reference" - }, - "aliases": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "properties": { - "type": "array", - "items": { - "type": "string" - } - }, - "sortBy": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "statusInfo": { - "allOf": [ - { - "$ref": "#/components/schemas/descriptionType" - }, - { - "type": "object", - "required": [ - "id", - "status", - "processingEntityType" - ], - "properties": { - "id": { - "type": "string" - }, - "processID": { - "type": "string", - "format": "uri" - }, - "processingEntityType": { - "description": "The type of entity that created the job and is doing the processing.\nThis includes all the data access apis listed in \"apis.yaml\" plus\nthe processing APIs of OGC API Processes and OpenEO.", - "anyOf": [ - { - "$ref": "#/components/schemas/apis" - }, - { - "type": "string", - "enum": [ - "ogc-api-processes", - "openeo" - ] - } - ] - }, - "profileEntityType": { - "description": "The type of entity requesting this status information. This may\nbe differernt than the processing entity. For example, the\nprocessing entity may be OGC API Processes but the status\ninformation is requested via the OpenEO API.", - "anyOf": [ - { - "$ref": "#/components/schemas/apis" - }, - { - "type": "string", - "enum": [ - "ogc-api-processes", - "openeo" - ] - } - ] - }, - "request": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "object" - }, - { - "$ref": "#/components/schemas/link-2" - } - ] - }, - "status": { - "$ref": "#/components/schemas/statusCode" - }, - "message": { - "type": "string" - }, - "exception": { - "$ref": "#/components/schemas/exception" - }, - "created": { - "type": "string", - "format": "date-time" - }, - "started": { - "type": "string", - "format": "date-time" - }, - "finished": { - "type": "string", - "format": "date-time" - }, - "updated": { - "type": "string", - "format": "date-time" - }, - "progress": { - "type": "integer", - "minimum": 0, - "maximum": 100 - }, - "links": { - "type": "array", - "items": { - "$ref": "#/components/schemas/link-2" - } - } - } - } - ] - }, - "dataAccessAPIs": { - "type": "object", - "properties": { - "dataAccessAPIs": { - "type": "array", - "items": { - "$ref": "#/components/schemas/apis" - } - } - } - }, - "apis": { - "description": "A non-exhaustive list of OGC and other data access APIs. This list can\nbe extended as required.", - "type": "string", - "enum": [ - "ogc-api-features", - "ogc-api-coverages", - "ogc-api-edr", - "ogc-api-tiles", - "ogc-api-moving-features", - "ogc-api-sensor-things", - "ogc-api-records", - "ogc-api-dggs", - "stac-api" - ] - }, - "dataClasses": { - "type": "object", - "properties": { - "dataClasses": { - "type": "array", - "items": { - "type": "string", - "format": "uri" - } - } - } - }, - "ogcapppkg": { - "type": "object", - "required": [ - "executionUnit" - ], - "properties": { - "processDescription": { - "type": "object", - "required": [ - "process" - ], - "properties": { - "process": { - "$ref": "#/components/schemas/process" - } - } - }, - "executionUnit": { - "oneOf": [ - { - "$ref": "#/components/schemas/executionUnit" - }, - { - "$ref": "#/components/schemas/link" - }, - { - "$ref": "#/components/schemas/qualifiedValue" - }, - { - "$ref": "#/components/schemas/ogcapppkg-array" - } - ] - } - } - }, - "staticIndicator": { - "allOf": [ - { - "$ref": "#/components/schemas/processSummary" - }, - { - "type": "object", - "properties": { - "mutable": { - "type": "boolean", - "default": true - } - } - } - ] - }, - "linkBase": { - "type": "object", - "required": [ - "rel" - ], - "properties": { - "rel": { - "type": "string" - }, - "type": { - "type": "string" - }, - "hreflang": { - "type": "string" - }, - "title": { - "type": "string" - }, - "length": { - "type": "integer" - } - } - }, - "linkBaseExtended": { - "type": "object", - "properties": { - "method": { - "type": "string", - "enum": [ - "POST", - "GET", - "DELETE", - "PATCH" - ] - }, - "body": {}, - "headers": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "link-2": { - "allOf": [ - { - "$ref": "#/components/schemas/linkBase" - }, - { - "$ref": "#/components/schemas/linkBaseExtended" - }, - { - "type": "object", - "required": [ - "href" - ], - "properties": { - "href": { - "type": "string" - } - } - } - ] - }, - "executionUnitRequirements": { - "type": "object", - "properties": { - "executionUnitRequirements": { - "type": "object", - "properties": { - "remote-access": { - "type": "boolean" - }, - "staging": { - "type": "string", - "enum": [ - "local-file", - "remote-access" - ] - } - } - } - } - }, - "inputBinding": { - "type": "object", - "description": ". Defines how to specify the input for the execution unit.\n. The value of various properties defined below can be expressions.\n . The expression language SHALL be JavaScript(???).\n. The \"$(...)\" syntax can be used to reference the current input or other\n process inputs in an expression.\n . The value \"self\" refers to the value of the current input.\n . The value \"inputs.\" refers to the value of another\n process input.\n . If the input is defined as a string of format \"file\" or \"directory\"\n then the meta-values \".path\", \".basename\", \".nameroot\" and \".nameext\"\n can be used to manipulate file or directory name without having to\n resort to complex regular expressions.\n . \".path\" returns the path of a file name without the file name\n . \".basename\" returns the name of the file without the path\n . \".nameroot\" returns the basename without any extension\n . \".nameext\" returns the extension of the basename", - "properties": { - "prefix": { - "description": "Command line prefix to add before the value.", - "type": "string" - }, - "position": { - "description": ". The zero-based sorting key.\n. The value can be an integer or a string.\n. If the value is a string then it should be an expression that evaluates\n to a single integer value or null.", - "oneOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ] - }, - "valueFrom": { - "description": ". If valueFrom is a constant string value, use this as the value.\n. If valueFrom is an expression, evaluate the expression to yield the\n actual value to use to build the command line.\n. If the value of the associated input parameter is null, valueFrom is\n not evaluated and nothing is added to the command line.", - "type": "string" - }, - "itemSeparator": { - "description": "Join the array elements into a single string with the elements separated\nby itemSeparator.", - "type": "string" - }, - "shellQuote": { - "description": ". A Boolean that controls whether the value is quoted on the command.\n. A value of true (or if shecllQuote is not provided) means that the\n implementation SHALL not permit the interpretation of any shell\n metacharacters or directives.\n. A value of false should be used to inject metacharacters for operations\n such as pipes.", - "type": "boolean" - } - }, - "additionalProperties": true - }, - "outputBinding": { - "type": "object", - "description": "Defines how to retrieve the output result from the command.", - "properties": { - "glob": { - "description": ". Wildcard pattern to find the output on disk or mounted volume.\n. Uses UNIX \"glob\" wildcard patterns (see: \"man 7 glob\").\n. See inputBinding.yaml for referencing input values in an output\n binding \"glob\" expression.", - "oneOf": [ - { - "type": "string" - }, - { - "type": "array", - "items": { - "type": "string" - } - } - ] - } - }, - "additionalProperties": true - }, - "executionUnit": { - "type": "object", - "description": "Resource containing executable or runtime information for executing the\nprocess.", - "required": [ - "type" - ], - "properties": { - "type": { - "description": "Type of execution unit.", - "type": "string", - "anyOf": [ - { - "enum": [ - "docker", - "oci" - ] - }, - { - "type": "string" - } - ] - }, - "image": { - "description": "Container image reference for the execution unit.", - "type": "string" - }, - "deployment": { - "description": "Deployment information for the execution unit.", - "type": "string", - "anyOf": [ - { - "enum": [ - "local", - "remote", - "hpc", - "cloud" - ] - }, - { - "type": "string" - } - ] - }, - "config": { - "type": "object", - "description": "Hardware requirements and configuration properties for executing the\nprocess.", - "properties": { - "cpuMin": { - "description": "Minimum number of CPUs required to run the process (unit is CPU core).", - "type": "number", - "minimum": 1 - }, - "cpuMax": { - "description": "Maximum number of CPU dedicated to the process (unit is CPU core)", - "type": "number" - }, - "memoryMin": { - "description": "Minimum RAM memory required to run the application (unit is GB)", - "type": "number" - }, - "memoryMax": { - "description": "Maximum RAM memory dedicated to the application (unit is GB)", - "type": "number" - }, - "storageTempMin": { - "description": "Minimum required temporary storage size (unit is GB)", - "type": "number" - }, - "storageOutputsMin": { - "description": "Minimum required output storage size (unit is GB)", - "type": "number" - }, - "jobTimeout": { - "description": "Timeout delay for a job execution (in seconds)", - "type": "number" - } - }, - "additionalProperties": true - }, - "bindings": { - "type": "object", - "properties": { - "inputBindings": { - "additionalProperties": { - "$ref": "#/components/schemas/inputBinding" - } - }, - "outputBindings": { - "additionalProperties": { - "$ref": "#/components/schemas/outputBinding" - } - } - } - } - }, - "additionalProperties": true, - "example": { - "type": "docker", - "image": "mydocker/ndvi:latest", - "bindings": { - "inputBindings": { - "inputImage": { - "prefix": "inputsImages=", - "inputSeparator": "," - } - }, - "outputBindings": { - "outputImage": { - "glob": "$(\"/outputs/ndvi_\" + inputs.inputImage.basename)" - } - } - }, - "deployment": "local", - "config": { - "cpuMin": 2, - "cpuMax": 5, - "memoryMin": 1, - "memoryMax": 3 - } - } - }, - "bbox-def-crs": { - "anyOf": [ - { - "type": "string", - "format": "uri", - "enum": [ - "http://www.opengis.net/def/crs/OGC/1.3/CRS84", - "http://www.opengis.net/def/crs/OGC/0/CRS84h" - ], - "default": "http://www.opengis.net/def/crs/OGC/1.3/CRS84" - }, - { - "type": "string", - "format": "uri", - "default": "http://www.opengis.net/def/crs/OGC/1.3/CRS84" - } - ] - }, - "bbox": { - "type": "object", - "required": [ - "bbox" - ], - "properties": { - "bbox": { - "type": "array", - "oneOf": [ - { - "minItems": 4, - "maxItems": 4 - }, - { - "minItems": 6, - "maxItems": 6 - } - ], - "items": { - "type": "number" - } - }, - "crs": { - "$ref": "#/components/schemas/bbox-def-crs" - } - } - }, - "pointGeoJSON": { - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "Point" - ] - }, - "coordinates": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - } - }, - "multipointGeoJSON": { - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "MultiPoint" - ] - }, - "coordinates": { - "type": "array", - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - } - } - }, - "linestringGeoJSON": { - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "LineString" - ] - }, - "coordinates": { - "type": "array", - "minItems": 2, - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - } - } - }, - "multilinestringGeoJSON": { - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "MultiLineString" - ] - }, - "coordinates": { - "type": "array", - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - } - } - } - }, - "polygonGeoJSON": { - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "Polygon" - ] - }, - "coordinates": { - "type": "array", - "items": { - "type": "array", - "minItems": 4, - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - } - } - } - }, - "multipolygonGeoJSON": { - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "MultiPolygon" - ] - }, - "coordinates": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "array", - "minItems": 4, - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - } - } - } - } - }, - "geometryGeoJSON": { - "oneOf": [ - { - "$ref": "#/components/schemas/pointGeoJSON" - }, - { - "$ref": "#/components/schemas/multipointGeoJSON" - }, - { - "$ref": "#/components/schemas/linestringGeoJSON" - }, - { - "$ref": "#/components/schemas/multilinestringGeoJSON" - }, - { - "$ref": "#/components/schemas/polygonGeoJSON" - }, - { - "$ref": "#/components/schemas/multipolygonGeoJSON" - }, - { - "$ref": "#/components/schemas/geometrycollectionGeoJSON" - } - ] - }, - "geometrycollectionGeoJSON": { - "type": "object", - "required": [ - "type", - "geometries" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "GeometryCollection" - ] - }, - "geometries": { - "type": "array", - "items": { - "$ref": "#/components/schemas/geometryGeoJSON" - } - } - } - }, - "cql2": { - "oneOf": [ - { - "$ref": "#/components/schemas/andOrExpression" - }, - { - "$ref": "#/components/schemas/notExpression" - }, - { - "$ref": "#/components/schemas/comparisonPredicate" - }, - { - "$ref": "#/components/schemas/spatialPredicate" - }, - { - "$ref": "#/components/schemas/temporalPredicate" - }, - { - "$ref": "#/components/schemas/arrayPredicate" - }, - { - "$ref": "#/components/schemas/functionRef" - }, - { - "type": "boolean" - } - ] - }, - "andOrExpression": { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "and", - "or" - ] - }, - "args": { - "type": "array", - "minItems": 2, - "items": { - "$ref": "#/components/schemas/cql2" - } - } - } - }, - "notExpression": { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "not" - ] - }, - "args": { - "type": "array", - "minItems": 1, - "maxItems": 1, - "items": { - "$ref": "#/components/schemas/cql2" - } - } - } - }, - "characterExpression": { - "oneOf": [ - { - "$ref": "#/components/schemas/casei" - }, - { - "$ref": "#/components/schemas/accenti" - }, - { - "type": "string" - } - ] - }, - "propertyRef": { - "type": "object", - "required": [ - "property" - ], - "properties": { - "property": { - "type": "string" - } - } - }, - "arithmeticExpression": { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "+", - "-", - "*", - "/", - "^", - "%", - "div" - ] - }, - "args": { - "$ref": "#/components/schemas/arithmeticOperands" - } - } - }, - "functionRef": { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "not": { - "enum": [ - "and", - "or", - "not", - "=", - "<>", - "<", - ">", - "<=", - ">=", - "like", - "between", - "in", - "isNull", - "casei", - "accenti", - "s_contains", - "s_crosses", - "s_disjoint", - "s_equals", - "s_intersects", - "s_overlaps", - "s_touches", - "s_within", - "t_after", - "t_before", - "t_contains", - "t_disjoint", - "t_during", - "t_equals", - "t_finishedBy", - "t_finishes", - "t_intersects", - "t_meets", - "t_metBy", - "t_overlappedBy", - "t_overlaps", - "t_startedBy", - "t_starts", - "a_containedBy", - "a_contains", - "a_equals", - "a_overlaps", - "+", - "-", - "*", - "/", - "^", - "%", - "div" - ] - } - }, - "args": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/characterExpression" - }, - { - "$ref": "#/components/schemas/numericExpression" - }, - { - "$ref": "#/components/schemas/cql2" - }, - { - "$ref": "#/components/schemas/spatialInstance" - }, - { - "$ref": "#/components/schemas/temporalInstance" - }, - { - "$ref": "#/components/schemas/arrayExpression" - }, - { - "$ref": "#/components/schemas/propertyRef" - } - ] - } - } - } - }, - "arithmeticOperands": { - "type": "array", - "minItems": 2, - "maxItems": 2, - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/arithmeticExpression" - }, - { - "$ref": "#/components/schemas/propertyRef" - }, - { - "$ref": "#/components/schemas/functionRef" - }, - { - "type": "number" - } - ] - } - }, - "numericExpression": { - "oneOf": [ - { - "$ref": "#/components/schemas/arithmeticExpression" - }, - { - "type": "number" - } - ] - }, - "point": { - "title": "GeoJSON Point", - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "Point" - ] - }, - "coordinates": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - }, - "bbox": { - "type": "array", - "minItems": 4, - "items": { - "type": "number" - } - } - } - }, - "linestring": { - "title": "GeoJSON LineString", - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "LineString" - ] - }, - "coordinates": { - "type": "array", - "minItems": 2, - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - }, - "bbox": { - "type": "array", - "minItems": 4, - "items": { - "type": "number" - } - } - } - }, - "polygon": { - "title": "GeoJSON Polygon", - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "Polygon" - ] - }, - "coordinates": { - "type": "array", - "items": { - "type": "array", - "minItems": 4, - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - } - }, - "bbox": { - "type": "array", - "minItems": 4, - "items": { - "type": "number" - } - } - } - }, - "multipoint": { - "title": "GeoJSON MultiPoint", - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "MultiPoint" - ] - }, - "coordinates": { - "type": "array", - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - }, - "bbox": { - "type": "array", - "minItems": 4, - "items": { - "type": "number" - } - } - } - }, - "multilinestring": { - "title": "GeoJSON MultiLineString", - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "MultiLineString" - ] - }, - "coordinates": { - "type": "array", - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - } - }, - "bbox": { - "type": "array", - "minItems": 4, - "items": { - "type": "number" - } - } - } - }, - "multipolygon": { - "title": "GeoJSON MultiPolygon", - "type": "object", - "required": [ - "type", - "coordinates" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "MultiPolygon" - ] - }, - "coordinates": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "array", - "minItems": 4, - "items": { - "type": "array", - "minItems": 2, - "items": { - "type": "number" - } - } - } - } - }, - "bbox": { - "type": "array", - "minItems": 4, - "items": { - "type": "number" - } - } - } - }, - "geometrycollection": { - "title": "GeoJSON GeometryCollection", - "type": "object", - "required": [ - "type", - "geometries" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "GeometryCollection" - ] - }, - "geometries": { - "type": "array", - "minItems": 2, - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/point" - }, - { - "$ref": "#/components/schemas/linestring" - }, - { - "$ref": "#/components/schemas/polygon" - }, - { - "$ref": "#/components/schemas/multipoint" - }, - { - "$ref": "#/components/schemas/multilinestring" - }, - { - "$ref": "#/components/schemas/multipolygon" - } - ] - } - } - } - }, - "geometryLiteral": { - "oneOf": [ - { - "$ref": "#/components/schemas/point" - }, - { - "$ref": "#/components/schemas/linestring" - }, - { - "$ref": "#/components/schemas/polygon" - }, - { - "$ref": "#/components/schemas/multipoint" - }, - { - "$ref": "#/components/schemas/multilinestring" - }, - { - "$ref": "#/components/schemas/multipolygon" - }, - { - "$ref": "#/components/schemas/geometrycollection" - } - ] - }, - "bbox-2": { - "type": "array", - "oneOf": [ - { - "minItems": 4, - "maxItems": 4 - }, - { - "minItems": 6, - "maxItems": 6 - } - ], - "items": { - "type": "number" - } - }, - "bboxLiteral": { - "type": "object", - "required": [ - "bbox" - ], - "properties": { - "bbox": { - "$ref": "#/components/schemas/bbox-2" - } - } - }, - "spatialInstance": { - "oneOf": [ - { - "$ref": "#/components/schemas/geometryLiteral" - }, - { - "$ref": "#/components/schemas/bboxLiteral" + } + }, + "passThroughParameters": { + "description": "Parameters specified in this object are passed through to the value\nsource server for processing on that server. The keys used in this\nobject should be identical to query parameters that the value source\nserver would recognize. In the case where the OAProc server supports\nlocal filtering, the `passThroughParameters` property provides a\nmechanism to force filtering to happen on the value source server.", + "type": "object" + } + } } ] }, - "dateString": { - "type": "string", - "pattern": "^\\d{4}-\\d{2}-\\d{2}$" - }, - "dateInstant": { - "type": "object", - "required": [ - "date" - ], - "properties": { - "date": { - "$ref": "#/components/schemas/dateString" - } - } - }, - "timestampString": { - "type": "string", - "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$" - }, - "timestampInstant": { - "type": "object", - "required": [ - "timestamp" - ], - "properties": { - "timestamp": { - "$ref": "#/components/schemas/timestampString" - } - } - }, - "instantInstance": { - "oneOf": [ + "processes-core-valueNoObject": { + "anyOf": [ { - "$ref": "#/components/schemas/dateInstant" + "type": "string" }, { - "$ref": "#/components/schemas/timestampInstant" - } - ] - }, - "instantString": { - "oneOf": [ - { - "$ref": "#/components/schemas/dateString" + "type": "number" }, { - "$ref": "#/components/schemas/timestampString" - } - ] - }, - "intervalArray": { - "type": "array", - "minItems": 2, - "maxItems": 2, - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/instantString" - }, - { - "type": "string", - "enum": [ - ".." - ] - }, - { - "$ref": "#/components/schemas/propertyRef" - }, - { - "$ref": "#/components/schemas/functionRef" - } - ] - } - }, - "intervalInstance": { - "type": "object", - "required": [ - "interval" - ], - "properties": { - "interval": { - "$ref": "#/components/schemas/intervalArray" - } - } - }, - "temporalInstance": { - "oneOf": [ - { - "$ref": "#/components/schemas/instantInstance" + "type": "integer" }, { - "$ref": "#/components/schemas/intervalInstance" - } - ] - }, - "arrayExpression": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/characterExpression" - }, - { - "$ref": "#/components/schemas/numericExpression" - }, - { - "$ref": "#/components/schemas/cql2" - }, - { - "$ref": "#/components/schemas/spatialInstance" - }, - { - "$ref": "#/components/schemas/temporalInstance" - }, - { - "$ref": "#/components/schemas/arrayExpression" - }, - { - "$ref": "#/components/schemas/propertyRef" - } - ] - } - }, - "casei": { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "casei" - ] + "type": "boolean" }, - "args": { + { "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/characterExpression" - }, - { - "$ref": "#/components/schemas/propertyRef" - }, - { - "$ref": "#/components/schemas/functionRef" - } - ] - }, - "minItems": 1, - "maxItems": 1 - } - } - }, - "accenti": { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "accenti" - ] + "items": {} }, - "args": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/characterExpression" - }, - { - "$ref": "#/components/schemas/propertyRef" - }, - { - "$ref": "#/components/schemas/functionRef" - } - ] - }, - "minItems": 1, - "maxItems": 1 - } - } - }, - "scalarExpression": { - "oneOf": [ { - "$ref": "#/components/schemas/characterExpression" + "$ref": "#/components/schemas/processes-core-binaryValue" }, { - "$ref": "#/components/schemas/numericExpression" + "$ref": "#/components/schemas/processes-core-bbox" }, { - "type": "boolean" + "$ref": "#/components/schemas/processes-core-collectionValue" + } + ] + }, + "processes-workflows-valueNoObject-workflows": { + "anyOf": [ + { + "type": "string" }, { - "$ref": "#/components/schemas/instantInstance" + "type": "number" }, { - "$ref": "#/components/schemas/functionRef" + "type": "integer" }, { - "$ref": "#/components/schemas/propertyRef" - } - ] - }, - "scalarOperands": { - "type": "array", - "minItems": 2, - "maxItems": 2, - "items": { - "$ref": "#/components/schemas/scalarExpression" - } - }, - "binaryComparisonPredicate": { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "=", - "<>", - "<", - ">", - "<=", - ">=" - ] + "type": "boolean" }, - "args": { - "$ref": "#/components/schemas/scalarOperands" - } - } - }, - "patternExpression": { - "oneOf": [ { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "casei" - ] - }, - "args": { - "type": "array", - "items": { - "$ref": "#/components/schemas/patternExpression" - }, - "minItems": 1, - "maxItems": 1 - } - } + "type": "array", + "items": {} }, { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "accenti" - ] - }, - "args": { - "type": "array", - "items": { - "$ref": "#/components/schemas/patternExpression" - }, - "minItems": 1, - "maxItems": 1 - } - } + "$ref": "#/components/schemas/processes-core-binaryValue" }, { - "type": "string" - } - ] - }, - "isLikeOperands": { - "type": "array", - "minItems": 2, - "maxItems": 2, - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/characterExpression" - }, - { - "$ref": "#/components/schemas/propertyRef" - }, - { - "$ref": "#/components/schemas/functionRef" - }, - { - "$ref": "#/components/schemas/patternExpression" - } - ] - } - }, - "isLikePredicate": { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "like" - ] + "$ref": "#/components/schemas/processes-core-bbox" }, - "args": { - "$ref": "#/components/schemas/isLikeOperands" - } - } - }, - "isBetweenOperands": { - "type": "array", - "minItems": 3, - "maxItems": 3, - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/numericExpression" - }, - { - "$ref": "#/components/schemas/propertyRef" - }, - { - "$ref": "#/components/schemas/functionRef" - } - ] - } - }, - "isBetweenPredicate": { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "between" - ] + { + "$ref": "#/components/schemas/processes-core-collectionValue" }, - "args": { - "$ref": "#/components/schemas/isBetweenOperands" + { + "$ref": "#/components/schemas/processes-workflows-inputProcess" + }, + { + "$ref": "#/components/schemas/processes-workflows-inputParameterized" } - } + ] }, - "inListOperands": { - "type": "array", - "minItems": 2, - "maxItems": 2, - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/scalarExpression" - }, - { - "type": "array", - "items": { - "$ref": "#/components/schemas/scalarExpression" + "processes-core-jobControlOptions": { + "type": "string", + "enum": [ + "sync-execute", + "async-execute", + "dismiss" + ] + }, + "processes-core-metadata": { + "oneOf": [ + { + "allOf": [ + { + "$ref": "#/components/schemas/processes-core-link" + }, + { + "type": "object", + "properties": { + "role": { + "type": "string" + } + } + } + ] + }, + { + "type": "object", + "properties": { + "role": { + "type": "string" + }, + "title": { + "type": "string" + }, + "lang": { + "type": "string" + }, + "value": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "object" + } + ] } } - ] - } + } + ] }, - "isInListPredicate": { - "type": "object", - "required": [ - "op", - "args" - ], - "properties": { - "op": { - "type": "string", - "enum": [ - "in" - ] + "processes-core-values": { + "anyOf": [ + { + "$ref": "#/components/schemas/processes-core-inlineOrRefValue" }, - "args": { - "$ref": "#/components/schemas/inListOperands" + { + "type": "array", + "items": { + "$ref": "#/components/schemas/processes-core-inlineOrRefValue" + } } - } + ] }, - "isNullOperand": { - "type": "array", - "minItems": 1, - "maxItems": 1, - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/characterExpression" - }, - { - "$ref": "#/components/schemas/numericExpression" - }, - { - "$ref": "#/components/schemas/cql2" - }, - { - "$ref": "#/components/schemas/spatialInstance" - }, - { - "$ref": "#/components/schemas/temporalInstance" - }, - { - "$ref": "#/components/schemas/propertyRef" + "processes-workflows-values-workflows": { + "oneOf": [ + { + "$ref": "#/components/schemas/processes-workflows-inlineOrRefValue-workflows" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/processes-workflows-inlineOrRefValue-workflows" } - ] - } + } + ] }, - "isNullPredicate": { + "processes-core-outputSelection": { "type": "object", - "required": [ - "op", - "args" - ], "properties": { - "op": { - "type": "string", - "enum": [ - "isNull" - ] - }, - "args": { - "$ref": "#/components/schemas/isNullOperand" + "format": { + "$ref": "#/components/schemas/processes-core-format" } } }, - "comparisonPredicate": { - "oneOf": [ - { - "$ref": "#/components/schemas/binaryComparisonPredicate" - }, + "processes-core-outputDescription": { + "allOf": [ { - "$ref": "#/components/schemas/isLikePredicate" + "$ref": "#/components/schemas/processes-core-descriptionType" }, { - "$ref": "#/components/schemas/isBetweenPredicate" + "$ref": "#/components/schemas/processes-core-dataClasses" }, { - "$ref": "#/components/schemas/isInListPredicate" + "$ref": "#/components/schemas/processes-core-dataAccessAPIs" }, { - "$ref": "#/components/schemas/isNullPredicate" + "$ref": "#/components/schemas/processes-core-schemaAndOccurrences" } ] }, - "spatialOperands": { - "type": "array", - "minItems": 2, - "maxItems": 2, - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/spatialInstance" - }, - { - "$ref": "#/components/schemas/propertyRef" - }, - { - "$ref": "#/components/schemas/functionRef" + "processes-core-qualifiedValue": { + "allOf": [ + { + "$ref": "#/components/schemas/processes-core-format" + }, + { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "$ref": "#/components/schemas/processes-core-value" + } } - ] - } + } + ] }, - "spatialPredicate": { + "processes-core-reference": { "type": "object", "required": [ - "op", - "args" + "$ref" ], "properties": { - "op": { + "$ref": { "type": "string", - "enum": [ - "s_contains", - "s_crosses", - "s_disjoint", - "s_equals", - "s_intersects", - "s_overlaps", - "s_touches", - "s_within" - ] - }, - "args": { - "$ref": "#/components/schemas/spatialOperands" + "format": "uri-reference" } - } + }, + "additionalProperties": false }, - "temporalOperands": { - "type": "array", - "minItems": 2, - "maxItems": 2, - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/temporalInstance" - }, - { - "$ref": "#/components/schemas/propertyRef" - }, - { - "$ref": "#/components/schemas/functionRef" - } - ] + "processes-core-results": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/processes-core-values" } }, - "temporalPredicate": { + "processes-core-schema": { + "description": "Attributes of the features or fields of a coverage range. Defined by a subset of the JSON Schema for the properties of a feature", "type": "object", "required": [ - "op", - "args" + "type", + "properties" ], "properties": { - "op": { + "type": { "type": "string", "enum": [ - "t_after", - "t_before", - "t_contains", - "t_disjoint", - "t_during", - "t_equals", - "t_finishedBy", - "t_finishes", - "t_intersects", - "t_meets", - "t_metBy", - "t_overlappedBy", - "t_overlaps", - "t_startedBy", - "t_starts" + "object" ] }, - "args": { - "$ref": "#/components/schemas/temporalOperands" + "required": { + "type": "array", + "minItems": 1, + "items": { + "type": "string" + } + }, + "properties": { + "type": "object", + "default": {}, + "additionalProperties": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "array", + "boolean", + "integer", + "null", + "number", + "object", + "string" + ] + }, + "enum": { + "type": "array", + "minItems": 1, + "items": {}, + "uniqueItems": true + }, + "format": { + "type": "string" + }, + "contentMediaType": { + "type": "string" + }, + "maximum": { + "type": "number" + }, + "exclusiveMaximum": { + "type": "number" + }, + "minimum": { + "type": "number" + }, + "exclusiveMinimum": { + "type": "number" + }, + "pattern": { + "type": "string", + "format": "regex" + }, + "maxItems": { + "type": "integer", + "minimum": 0 + }, + "minItems": { + "type": "integer", + "default": 0, + "minimum": 0 + }, + "x-ogc-definition": { + "type": "string", + "format": "uri" + }, + "x-ogc-unit": { + "type": "string" + }, + "x-ogc-unitLang": { + "type": "string" + } + } + } } } }, - "arrayOperands": { - "type": "array", - "minItems": 2, - "maxItems": 2, - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/arrayExpression" - }, - { - "$ref": "#/components/schemas/propertyRef" - }, - { - "$ref": "#/components/schemas/functionRef" - } - ] - } + "processes-core-statusCode": { + "type": "string", + "nullable": false, + "enum": [ + "accepted", + "running", + "successful", + "failed", + "dismissed" + ] }, - "arrayPredicate": { + "processes-core-subscriber": { + "description": "Optional URIs for callbacks for this job.\n\nSupport for this parameter is not required and the parameter may be\nremoved from the API definition, if conformance class **'callback'**\nis not listed in the conformance declaration under `/conformance`.", "type": "object", - "required": [ - "op", - "args" - ], "properties": { - "op": { + "successUri": { "type": "string", - "enum": [ - "a_containedBy", - "a_contains", - "a_equals", - "a_overlaps" - ] + "format": "uri" }, - "args": { - "$ref": "#/components/schemas/arrayOperands" - } - } - }, - "ogcapppkg-array": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/executionUnit" - }, - { - "$ref": "#/components/schemas/link" - }, - { - "$ref": "#/components/schemas/qualifiedValue" - } - ] - } - }, - "CWLKeywordList": { - "title": "KeywordList", - "type": "array", - "description": "Keywords applied to the process for search and categorization purposes.", - "items": { - "type": "string", - "title": "keyword", - "minLength": 1 - } - }, - "CWLTextPatternID": { - "description": "Identifier with text pattern that can allow additional non-ASCII characters depending on regex implementation.\nThe identifier allows a '#' or a relative 'sub/part#ref' prefix, to support references to other definitions\nin the CWL document, such as when using 'SchemaDefRequirement'.\n\nJSON spec regex does not include '\\w' in its default subset to allow all word-like unicode characters\n(see reference: https://json-schema.org/understanding-json-schema/reference/regular_expressions.html).\n\nSince support is implementation specific, add both the ASCII-only and '\\w' representation simultaneously\nand let the parser reading this document apply whichever is more relevant or supported\n(see discussion: https://github.com/common-workflow-language/cwl-v1.2/pull/256#discussion_r1234037814).\n", - "pattern": "^([A-Za-z0-9\\w]+(/[A-Za-z0-9\\w]+)*)?[#.]?[A-Za-z0-9\\w]+(?:[-_.][A-Za-z0-9\\w]+)*$", - "type": "string", - "title": "Generic identifier name pattern." - }, - "CWLIdentifier": { - "anyOf": [ - { + "inProgressUri": { "type": "string", - "title": "UUID", - "description": "Unique identifier.", - "format": "uuid", - "pattern": "^[a-f0-9]{8}(?:-?[a-f0-9]{4}){3}-?[a-f0-9]{12}$" + "format": "uri" }, - { - "$ref": "#/components/schemas/CWLTextPatternID" + "failedUri": { + "type": "string", + "format": "uri" } - ], - "title": "CWLIdentifier", - "description": "Reference to the process identifier." - }, - "CWLIntent": { - "type": "array", - "title": "CWLIntent", - "items": { - "type": "string", - "title": "item", - "description": "Identifier URL to a concept for the type of computational operation accomplished by this process\n(see example operations: http://edamontology.org/operation_0004).\n", - "format": "url", - "pattern": "^((?:http|ftp)s?://)?(?!.*//.*$)(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\\.)+(?:[A-Za-z]{2,6}\\.?|[A-Za-z0-9-]{2,}\\.?)|localhost|\\[[a-f0-9:]+\\]|\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})(?::\\d+)?(?:/?|[/?]\\S+)$" } }, - "CUDAComputeCapabilityArray": { - "type": "array", - "title": "CUDAComputeCapabilityArray", - "items": { - "type": "string", - "title": "CUDA compute capability", - "description": "The compute capability supported by the GPU hardware.", - "pattern": "^\\d+\\.\\d+$" - }, - "minItems": 1 - }, - "CUDAComputeCapability": { + "processes-core-inlineOrRefValue": { "oneOf": [ { - "type": "string", - "title": "CUDA compute capability", - "description": "The compute capability supported by the GPU hardware.", - "pattern": "^\\d+\\.\\d+$" + "$ref": "#/components/schemas/processes-core-valueNoObject" }, { - "$ref": "#/components/schemas/CUDAComputeCapabilityArray" - } - ], - "title": "CUDA compute capability", - "description": "The compute capability supported by the GPU hardware.\n\n* If this is a single value, it defines only the minimum compute capability.\n GPUs with higher capability are also accepted.\n* If it is an array value, then only select GPUs with compute capabilities that explicitly\n appear in the array.\n See https://docs.nvidia.com/deploy/cuda-compatibility/#faq and\n https://docs.nvidia.com/cuda/cuda-c-best-practices-guide/index.html#cuda-compute-capability\n for details.\n" - }, - "ReferenceURL": { - "type": "string", - "format": "url", - "pattern": "^((?:http|ftp)s?:\\/\\/)?(?!.*\\/\\/.*$)(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\\.)+(?:[A-Za-z]{2,6}\\.?|[A-Za-z0-9-]{2,}\\.?)|localhost|\\[[a-f0-9:]+\\]|\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})(?::\\d+)?(?:\\/?|[/?]\\S+)$" - }, - "CWLTypeSymbolValues": { - "oneOf": [ - { - "type": "number" + "$ref": "#/components/schemas/processes-core-qualifiedValue" }, { - "type": "string" + "$ref": "#/components/schemas/processes-core-link" } - ], - "title": "CWLTypeSymbolValues" - }, - "CWLTypeSymbols": { - "type": "array", - "title": "CWLTypeSymbols (Allowed values composing the enum).", - "items": { - "$ref": "#/components/schemas/CWLTypeSymbolValues" - } - }, - "CWLTypeRecordRefPattern": { - "type": "string", - "format": "url", - "pattern": "^(((?:http|ftp)s?:\\/\\/)?(?!.*\\/\\/.*$)(?:(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\\.)+(?:[A-Za-z]{2,6}\\.?|[A-Za-z0-9-]{2,}\\.?)|localhost|\\[[a-f0-9:]+\\]|\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})(?::\\d+)?(?:\\/?|[\\/?]\\S+))?(?:[A-Za-z0-9\\w\\-.\\/]+)?\\#?[A-Za-z0-9\\w\\-.]+$" + ] }, - "CWLFormat": { + "processes-workflows-inlineOrRefValue-workflows": { "oneOf": [ { - "$ref": "#/components/schemas/CWLExpression" + "$ref": "#/components/schemas/processes-workflows-valueNoObject-workflows" }, { - "type": "array", - "items": { - "$ref": "#/components/schemas/CWLExpression" - } - } - ] - }, - "LoadListingEnum": { - "type": "string", - "title": "LoadListingEnum", - "enum": [ - "no_listing", - "shallow_listing", - "deep_listing" - ] - }, - "CWLDirectoryOnlyParameters": { - "type": "object", - "properties": { - "loadListing": { - "$ref": "#/components/schemas/LoadListingEnum" - } - } - }, - "CWLTypeRecordFieldsItem": { - "allOf": [ - { - "$ref": "#/components/schemas/CWLTypeRecordFieldDef" + "$ref": "#/components/schemas/processes-workflows-qualifiedValue-workflows" }, { - "required": [ - "name" - ] + "$ref": "#/components/schemas/common-core-link" } ] }, - "Checksum": { - "description": "Minimal pattern check to know which hash algorithm to apply,\nbut don't check too harshly for the rest (length, allowed characters, etc.).\n", - "type": "string", - "pattern": "^[a-z0-9\\-]+\\$[\\w\\-.]+$" - }, - "InlineJavascriptLibObject": { + "processes-core-fieldsModifiers": { "type": "object", "properties": { - "$include": { - "type": "string" - } - }, - "required": [ - "$include" - ], - "additionalProperties": false - }, - "InlineJavascriptLibItem": { - "oneOf": [ - { - "type": "string" + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "description": "Basic CQL2-JSON definition", + "type": "array", + "items": { + "type": "object" + } + } + ] }, - { - "$ref": "#/components/schemas/InlineJavascriptLibObject" - } - ] - }, - "InlineJavascriptLibraries": { - "type": "array", - "title": "InlineJavascriptLibraries", - "description": "Additional code fragments that will also be inserted before executing the expression code.\nAllows for function definitions that may be called from CWL expressions.\n", - "items": { - "title": "exp_lib", - "$ref": "#/components/schemas/InlineJavascriptLibItem" - } - }, - "ResourceCoresMinimum": { - "oneOf": [ - { - "$ref": "#/components/schemas/ResourceQuantityOrFractional" + "filter-lang": { + "type": "string", + "example": "cql2-text" }, - { - "$ref": "#/components/schemas/CWLExpression" - } - ], - "title": "ResourceCoresMinimum (Minimum reserved number of CPU cores).", - "description": "Minimum reserved number of CPU cores.\n\nMay be a fractional value to indicate to a scheduling algorithm that one core can be allocated to\nmultiple jobs. For example, a value of 0.25 indicates that up to 4 jobs\nmay run in parallel on 1 core. A value of 1.25 means that up to 3 jobs\ncan run on a 4 core system (4/1.25 ~ 3).\n\nProcesses can only share a core allocation if the sum of each of their 'ramMax', 'tmpdirMax', and\n'outdirMax' requests also do not exceed the capacity of the node.\n\nProcesses sharing a core must have the same level of isolation (typically a container\nor VM) that they would normally have.\n\nThe reported number of CPU cores reserved for the process, which is available to expressions\non the 'CommandLineTool' as 'runtime.cores', must be a non-zero integer, and may be calculated by\nrounding up the cores request to the next whole number.\n\nScheduling systems may allocate fractional CPU resources by setting quotas or scheduling weights.\nScheduling systems that do not support fractional CPUs may round up the request to the next whole number.\n", - "default": 1 - }, - "ResourceCoresMaximum": { - "oneOf": [ - { - "$ref": "#/components/schemas/ResourceQuantityOrFractional" + "filter-crs": { + "type": "string", + "format": "uri-reference" }, - { - "$ref": "#/components/schemas/CWLExpression" - } - ], - "title": "ResourceCoresMaximum (Maximum reserved number of CPU cores).", - "description": "Maximum reserved number of CPU cores.\nSee 'coresMin' for discussion about fractional CPU requests.\n" - }, - "ResourceRAMMinimum": { - "oneOf": [ - { - "$ref": "#/components/schemas/ResourceQuantityOrFractional" + "aliases": { + "type": "object", + "additionalProperties": { + "type": "string" + } }, - { - "$ref": "#/components/schemas/CWLExpression" + "properties": { + "type": "array", + "items": { + "type": "string" + } + }, + "sortBy": { + "type": "array", + "items": { + "type": "string" + } } - ], - "title": "ResourceRAMMinimum (Minimum reserved RAM in mebibytes).", - "description": "Minimum reserved RAM in mebibytes (2**20).\n\nMay be a fractional value. If so, the actual RAM request must be rounded up\nto the next whole number.\n\nThe reported amount of RAM reserved for the process, which is available to\nexpressions on the 'CommandLineTool' as 'runtime.ram', must be a non-zero integer.\n", - "default": 256 + } }, - "ResourceRAMMaximum": { - "oneOf": [ + "processes-core-statusInfo": { + "allOf": [ { - "$ref": "#/components/schemas/ResourceQuantityOrFractional" + "$ref": "#/components/schemas/processes-core-descriptionType" }, { - "$ref": "#/components/schemas/CWLExpression" + "type": "object", + "required": [ + "id", + "status", + "processingEntityType" + ], + "properties": { + "id": { + "type": "string" + }, + "processID": { + "type": "string", + "format": "uri" + }, + "processingEntityType": { + "description": "The type of entity that created the job and is doing the processing.\nThis includes all the data access apis listed in \"apis.yaml\" plus\nthe processing APIs of OGC API Processes and OpenEO.", + "anyOf": [ + { + "$ref": "#/components/schemas/processes-core-apis" + }, + { + "type": "string", + "enum": [ + "ogc-api-processes", + "openeo" + ] + } + ] + }, + "profileEntityType": { + "description": "The type of entity requesting this status information. This may\nbe differernt than the processing entity. For example, the\nprocessing entity may be OGC API Processes but the status\ninformation is requested via the OpenEO API.", + "anyOf": [ + { + "$ref": "#/components/schemas/processes-core-apis" + }, + { + "type": "string", + "enum": [ + "ogc-api-processes", + "openeo" + ] + } + ] + }, + "request": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "object" + }, + { + "$ref": "#/components/schemas/processes-core-link" + } + ] + }, + "status": { + "$ref": "#/components/schemas/processes-core-statusCode" + }, + "message": { + "type": "string" + }, + "exception": { + "$ref": "#/components/schemas/common-core-exception" + }, + "created": { + "type": "string", + "format": "date-time" + }, + "started": { + "type": "string", + "format": "date-time" + }, + "finished": { + "type": "string", + "format": "date-time" + }, + "updated": { + "type": "string", + "format": "date-time" + }, + "progress": { + "type": "integer", + "minimum": 0, + "maximum": 100 + }, + "links": { + "type": "array", + "items": { + "$ref": "#/components/schemas/processes-core-link" + } + } + } } - ], - "title": "ResourceRAMMaximum (Maximum reserved RAM in mebibytes).", - "description": "Maximum reserved RAM in mebibytes (2**20).\nSee 'ramMin' for discussion about fractional RAM requests.\n" + ] }, - "ResourceTmpDirMinimum": { - "oneOf": [ - { - "$ref": "#/components/schemas/ResourceQuantityOrFractional" - }, - { - "$ref": "#/components/schemas/CWLExpression" + "processes-core-dataAccessAPIs": { + "type": "object", + "properties": { + "dataAccessAPIs": { + "type": "array", + "items": { + "$ref": "#/components/schemas/processes-core-apis" + } } - ], - "title": "ResourceTmpDirMinimum (Minimum reserved filesystem based storage for the designated temporary) directory in mebibytes.", - "description": "Minimum reserved filesystem based storage for the designated temporary\ndirectory in mebibytes (2**20).\n\nMay be a fractional value. If so, the actual storage request must be rounded\nup to the next whole number.\n\nThe reported amount of storage reserved for the process, which is available\nto expressions on the 'CommandLineTool' as 'runtime.tmpdirSize', must be a non-zero integer.\n", - "default": 1024 + } }, - "ResourceTmpDirMaximum": { - "oneOf": [ - { - "$ref": "#/components/schemas/ResourceQuantityOrFractional" - }, - { - "$ref": "#/components/schemas/CWLExpression" - } - ], - "title": "ResourceTmpDirMaximum (Maximum reserved filesystem based storage for the designated temporary directory in mebibytes).", - "description": "Maximum reserved filesystem based storage for the designated temporary directory in mebibytes (2**20).\nSee 'tmpdirMin' for discussion about fractional storage requests.\n" + "processes-core-apis": { + "description": "A non-exhaustive list of OGC and other data access APIs. This list can\nbe extended as required.", + "type": "string", + "enum": [ + "ogc-api-features", + "ogc-api-coverages", + "ogc-api-edr", + "ogc-api-tiles", + "ogc-api-moving-features", + "ogc-api-sensor-things", + "ogc-api-records", + "ogc-api-dggs", + "stac-api" + ] }, - "ResourceOutDirMinimum": { - "oneOf": [ - { - "$ref": "#/components/schemas/ResourceQuantityOrFractional" - }, - { - "$ref": "#/components/schemas/CWLExpression" + "processes-core-dataClasses": { + "type": "object", + "properties": { + "dataClasses": { + "type": "array", + "items": { + "type": "string", + "format": "uri" + } } - ], - "title": "ResourceOutDirMinimum (Minimum reserved filesystem based storage for the designated output directory in mebibytes).", - "description": "Minimum reserved filesystem based storage for the designated output\ndirectory in mebibytes (2**20).\n\nMay be a fractional value. If so, the actual storage request must be rounded\nup to the next whole number.\n\nThe reported amount of storage reserved for the process, which is available\nto expressions on the 'CommandLineTool' as 'runtime.outdirSize', must be a non-zero integer.\n", - "default": 1024 + } }, - "ResourceOutDirMaximum": { - "oneOf": [ - { - "$ref": "#/components/schemas/ResourceQuantityOrFractional" - }, - { - "$ref": "#/components/schemas/CWLExpression" - } + "processes-dru-ogcapppkg": { + "type": "object", + "required": [ + "executionUnit" ], - "title": "ResourceOutDirMaximum (Maximum reserved filesystem based storage for the designated output directory in mebibytes).", - "description": "Maximum reserved filesystem based storage for the designated output\ndirectory in mebibytes (2**20).\nSee 'outdirMin' for discussion about fractional storage requests.\n", - "default": 1 - }, - "TimeLimitValue": { - "oneOf": [ - { - "type": "number", - "minimum": 0 + "properties": { + "processDescription": { + "type": "object", + "required": [ + "process" + ], + "properties": { + "process": { + "$ref": "#/components/schemas/processes-core-process" + } + } }, - { - "$ref": "#/components/schemas/CWLExpression" + "executionUnit": { + "oneOf": [ + { + "$ref": "#/components/schemas/processes-dru-executionUnit" + }, + { + "$ref": "#/components/schemas/common-core-link" + }, + { + "$ref": "#/components/schemas/processes-core-qualifiedValue" + }, + { + "$ref": "#/components/schemas/processes-dru-ogcapppkg-array" + } + ] } - ], - "title": "TimeLimitValue", - "description": "The time limit, in seconds.\n\nA time limit of zero means no time limit.\nNegative time limits are an error.\n" + } }, - "EnableReuseValue": { - "oneOf": [ + "processes-dru-staticIndicator": { + "allOf": [ { - "type": "boolean" + "$ref": "#/components/schemas/processes-core-processSummary" }, { - "$ref": "#/components/schemas/CWLExpression" + "type": "object", + "properties": { + "mutable": { + "type": "boolean", + "default": true + } + } } - ], - "title": "EnableReuseValue", - "description": "Indicates if reuse is enabled for this tool.\n\nCan be an expression when combined with 'InlineJavascriptRequirement'\n(see also: https://www.commonwl.org/v1.2/CommandLineTool.html#Expression).\n" + ] }, - "BuiltinRequirement": { + "processes-core-linkBase": { "type": "object", - "title": "BuiltinRequirement", - "description": "Hint indicating that the Application Package corresponds to a\nbuiltin process of this instance. (note: can only be an 'hint'\nas it is unofficial CWL specification).\n", - "properties": { - "class": { - "type": "string", - "enum": [ - "BuiltinRequirement" - ] - }, - "process": { - "description": "Builtin process identifier.", - "$ref": "#/components/schemas/CWLTextPatternID" - } - }, "required": [ - "process", - "class" + "rel" ], - "additionalProperties": false - }, - "OGCAPIRequirement": { - "type": "object", - "title": "OGCAPIRequirement", - "description": "Hint indicating that the Application Package corresponds to an\nOGC API - Processes provider that should be remotely executed and monitored\nby this instance. (note: can only be an 'hint' as it is unofficial CWL specification).\n", "properties": { - "class": { - "type": "string", - "enum": [ - "OGCAPIRequirement" - ] + "rel": { + "type": "string" + }, + "type": { + "type": "string" + }, + "hreflang": { + "type": "string" + }, + "title": { + "type": "string" }, - "process": { - "description": "Process location.", - "$ref": "#/components/schemas/ReferenceURL" + "length": { + "type": "integer" } - }, - "required": [ - "process" - ], - "additionalProperties": false + } }, - "WPS1Requirement": { + "processes-core-linkBaseExtended": { "type": "object", - "title": "WPS1Requirement", - "description": "Hint indicating that the Application Package corresponds to a\nWPS-1 provider process that should be remotely executed and monitored by this\ninstance. (note: can only be an ''hint'' as it is unofficial CWL specification).\n", "properties": { - "class": { + "method": { "type": "string", "enum": [ - "WPS1Requirement" + "POST", + "GET", + "DELETE", + "PATCH" ] }, - "process": { - "description": "Process identifier of the remote WPS provider.", - "$ref": "#/components/schemas/CWLTextPatternID" - }, - "provider": { - "description": "WPS provider endpoint.", - "$ref": "#/components/schemas/ReferenceURL" - } - }, - "required": [ - "process", - "provider" - ], - "additionalProperties": false - }, - "UnknownRequirement": { - "type": "object", - "description": "Generic schema to allow alternative CWL requirements/hints not explicitly defined in schemas.", - "properties": { - "class": { - "type": "string", - "title": "Requirement Class Identifier", - "description": "CWL requirement class specification.", - "example": "UnknownRequirement", - "not": { - "enum": [ - "cwltool:CUDARequirement", - "DockerRequirement", - "SoftwareRequirement", - "ShellCommandRequirement", - "EnvVarRequirement", - "SchemaDefRequirement", - "InitialWorkDirRequirement", - "InlineJavascriptRequirement", - "InplaceUpdateRequirement", - "LoadListingRequirement", - "NetworkAccess", - "ResourceRequirement", - "ScatterFeatureRequirement", - "ToolTimeLimit", - "WorkReuse", - "MultipleInputFeatureRequirement", - "StepInputExpressionRequirement", - "SubworkflowFeatureRequirement" - ] + "body": {}, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" } } } }, - "CWLHintsMapExtras": { - "type": "object", - "properties": { - "BuiltinRequirement": { - "$ref": "#/components/schemas/BuiltinRequirement" - }, - "OGCAPIRequirement": { - "$ref": "#/components/schemas/OGCAPIRequirement" - }, - "WPS1Requirement": { - "$ref": "#/components/schemas/WPS1Requirement" - } - }, - "additionalProperties": { - "$ref": "#/components/schemas/UnknownRequirement" - } - }, - "CWLHintsItemExtras": { - "oneOf": [ - { - "$ref": "#/components/schemas/BuiltinRequirement" - }, + "processes-core-link": { + "allOf": [ { - "$ref": "#/components/schemas/OGCAPIRequirement" + "$ref": "#/components/schemas/processes-core-linkBase" }, { - "$ref": "#/components/schemas/WPS1Requirement" + "$ref": "#/components/schemas/processes-core-linkBaseExtended" }, { - "$ref": "#/components/schemas/UnknownRequirement" + "type": "object", + "required": [ + "href" + ], + "properties": { + "href": { + "type": "string" + } + } } ] }, - "CWLHintsItem": { - "title": "CWLHintsItem", - "description": "For any new items added, ensure they are added under 'class' of 'UnknownRequirement' as well.\nOtherwise, insufficiently restrictive classes could cause multiple matches, failing the 'oneOf' condition.\n", - "oneOf": [ - { - "$ref": "#/components/schemas/CWLRequirementsItem" - }, - { - "$ref": "#/components/schemas/CWLHintsItemExtras" + "processes-core-executionUnitRequirements": { + "type": "object", + "properties": { + "executionUnitRequirements": { + "type": "object", + "properties": { + "remote-access": { + "type": "boolean" + }, + "staging": { + "type": "string", + "enum": [ + "local-file", + "remote-access" + ] + } + } } - ] - }, - "CommandParts": { - "type": "array", - "title": "Command Parts", - "items": { - "type": "string", - "title": "cmd" - }, - "additionalProperties": false + } }, - "CWLInputItemBase": { + "processes-dru-inputBinding": { "type": "object", + "description": ". Defines how to specify the input for the execution unit.\n. The value of various properties defined below can be expressions.\n . The expression language SHALL be JavaScript(???).\n. The \"$(...)\" syntax can be used to reference the current input or other\n process inputs in an expression.\n . The value \"self\" refers to the value of the current input.\n . The value \"inputs.\" refers to the value of another\n process input.\n . If the input is defined as a string of format \"file\" or \"directory\"\n then the meta-values \".path\", \".basename\", \".nameroot\" and \".nameext\"\n can be used to manipulate file or directory name without having to\n resort to complex regular expressions.\n . \".path\" returns the path of a file name without the file name\n . \".basename\" returns the name of the file without the path\n . \".nameroot\" returns the basename without any extension\n . \".nameext\" returns the extension of the basename", "properties": { - "type": { + "prefix": { + "description": "Command line prefix to add before the value.", + "type": "string" + }, + "position": { + "description": ". The zero-based sorting key.\n. The value can be an integer or a string.\n. If the value is a string then it should be an expression that evaluates\n to a single integer value or null.", "oneOf": [ { - "$ref": "#/components/schemas/CWLType" + "type": "integer" }, { - "$ref": "#/components/schemas/CWLInputStdIn" + "type": "string" } ] }, - "inputBinding": { - "$ref": "#/components/schemas/InputBinding" - }, - "id": { - "description": "Identifier of the CWL input.", - "$ref": "#/components/schemas/CWLIdentifier" - } - }, - "required": [ - "type", - "id" - ], - "additionalProperties": {} - }, - "CWLInputObjectBase": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/CWLType" - }, - "inputBinding": { - "$ref": "#/components/schemas/InputBinding" - } - }, - "required": [ - "type" - ], - "additionalProperties": {} - }, - "CWLInputObject": { - "title": "CWLInputObject (CWL type definition with parameters).", - "allOf": [ - { - "$ref": "#/components/schemas/CWLInputObjectBase" + "valueFrom": { + "description": ". If valueFrom is a constant string value, use this as the value.\n. If valueFrom is an expression, evaluate the expression to yield the\n actual value to use to build the command line.\n. If the value of the associated input parameter is null, valueFrom is\n not evaluated and nothing is added to the command line.", + "type": "string" }, - { - "$ref": "#/components/schemas/CWLDefaultTypedConditional" + "itemSeparator": { + "description": "Join the array elements into a single string with the elements separated\nby itemSeparator.", + "type": "string" }, - { - "$ref": "#/components/schemas/CWLDocumentation" + "shellQuote": { + "description": ". A Boolean that controls whether the value is quoted on the command.\n. A value of true (or if shecllQuote is not provided) means that the\n implementation SHALL not permit the interpretation of any shell\n metacharacters or directives.\n. A value of false should be used to inject metacharacters for operations\n such as pipes.", + "type": "boolean" } - ] + }, + "additionalProperties": true }, - "OutputBinding": { + "processes-dru-outputBinding": { "type": "object", - "title": "OutputBinding", "description": "Defines how to retrieve the output result from the command.", "properties": { "glob": { - "description": "Glob pattern to find the output on disk or mounted docker volume.", + "description": ". Wildcard pattern to find the output on disk or mounted volume.\n. Uses UNIX \"glob\" wildcard patterns (see: \"man 7 glob\").\n. See inputBinding.yaml for referencing input values in an output\n binding \"glob\" expression.", "oneOf": [ { - "$ref": "#/components/schemas/CWLExpression" + "type": "string" }, { "type": "array", "items": { - "$ref": "#/components/schemas/CWLExpression" + "type": "string" } } ] } - } + }, + "additionalProperties": true }, - "CWLOutputObjectBase": { + "processes-dru-executionUnit": { "type": "object", - "title": "CWLOutputObject (CWL type definition with parameters).", - "properties": { - "type": { - "$ref": "#/components/schemas/CWLType" - }, - "outputBinding": { - "$ref": "#/components/schemas/OutputBinding" - } - }, + "description": "Resource containing executable or runtime information for executing the\nprocess.", "required": [ "type" - ] - }, - "CWLScatterMulti": { - "type": "array", - "title": "CWLScatterMulti", - "items": { - "$ref": "#/components/schemas/CWLIdentifier" - } - }, - "CWLScatter": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLIdentifier" - }, - { - "$ref": "#/components/schemas/CWLScatterMulti" - } ], - "title": "CWLScatter", - "description": "One or more input identifier of an application step within a Workflow\nwere an array-based input to that Workflow should be scattered across multiple\ninstances of the step application.\n" - }, - "CWLScatterMethod": { - "type": "string", - "title": "scatterMethod", - "description": "Describes how to decompose the scattered input into a discrete\nset of jobs. When 'dotproduct', specifies that each of the input arrays\nare aligned and one element taken from each array to construct each job.\nIt is an error if all input arrays are of different length. When 'nested_crossproduct',\nspecifies the Cartesian product of the inputs, producing a job for every\ncombination of the scattered inputs. The output must be nested arrays\nfor each level of scattering, in the order that the input arrays are listed\nin the scatter field. When 'flat_crossproduct', specifies the Cartesian\nproduct of the inputs, producing a job for every combination of the scattered\ninputs. The output arrays must be flattened to a single level, but otherwise\nlisted in the order that the input arrays are listed in the scatter field.\n", - "enum": [ - "dotproduct", - "nested_crossproduct", - "flat_crossproduct" - ] - }, - "CWLGraphItemBase": { - "type": "object", - "title": "CWLGraphItem", "properties": { - "class": { + "type": { + "description": "Type of execution unit.", "type": "string", - "title": "Class", - "description": "CWL class specification. This is used to differentiate between single Application Package (AP)definitions and Workflow that chains multiple packages.", - "enum": [ - "CommandLineTool", - "ExpressionTool", - "Workflow" + "anyOf": [ + { + "enum": [ + "docker", + "oci" + ] + }, + { + "type": "string" + } ] }, - "id": { - "$ref": "#/components/schemas/CWLIdentifier" - }, - "intent": { - "$ref": "#/components/schemas/CWLIntent" - }, - "requirements": { - "$ref": "#/components/schemas/CWLRequirements" - }, - "hints": { - "$ref": "#/components/schemas/CWLHints" - }, - "baseCommand": { - "$ref": "#/components/schemas/CWLCommand" - }, - "arguments": { - "$ref": "#/components/schemas/CWLArguments" - }, - "inputs": { - "$ref": "#/components/schemas/CWLInputsDefinition" + "image": { + "description": "Container image reference for the execution unit.", + "type": "string" }, - "outputs": { - "$ref": "#/components/schemas/CWLOutputsDefinition" + "deployment": { + "description": "Deployment information for the execution unit.", + "type": "string", + "anyOf": [ + { + "enum": [ + "local", + "remote", + "hpc", + "cloud" + ] + }, + { + "type": "string" + } + ] }, - "scatter": { - "$ref": "#/components/schemas/CWLScatter" + "config": { + "type": "object", + "description": "Hardware requirements and configuration properties for executing the\nprocess.", + "properties": { + "cpuMin": { + "description": "Minimum number of CPUs required to run the process (unit is CPU core).", + "type": "number", + "minimum": 1 + }, + "cpuMax": { + "description": "Maximum number of CPU dedicated to the process (unit is CPU core)", + "type": "number" + }, + "memoryMin": { + "description": "Minimum RAM memory required to run the application (unit is GB)", + "type": "number" + }, + "memoryMax": { + "description": "Maximum RAM memory dedicated to the application (unit is GB)", + "type": "number" + }, + "storageTempMin": { + "description": "Minimum required temporary storage size (unit is GB)", + "type": "number" + }, + "storageOutputsMin": { + "description": "Minimum required output storage size (unit is GB)", + "type": "number" + }, + "jobTimeout": { + "description": "Timeout delay for a job execution (in seconds)", + "type": "number" + } + }, + "additionalProperties": true }, - "scatterMethod": { - "$ref": "#/components/schemas/CWLScatterMethod" + "bindings": { + "type": "object", + "properties": { + "inputBindings": { + "additionalProperties": { + "$ref": "#/components/schemas/processes-dru-inputBinding" + } + }, + "outputBindings": { + "additionalProperties": { + "$ref": "#/components/schemas/processes-dru-outputBinding" + } + } + } } }, - "required": [ - "class", - "id", - "inputs", - "outputs" - ] - }, - "CWLGraphItem": { - "allOf": [ - { - "$ref": "#/components/schemas/CWLMetadata" + "additionalProperties": true, + "example": { + "type": "docker", + "image": "mydocker/ndvi:latest", + "bindings": { + "inputBindings": { + "inputImage": { + "prefix": "inputsImages=", + "inputSeparator": "," + } + }, + "outputBindings": { + "outputImage": { + "glob": "$(\"/outputs/ndvi_\" + inputs.inputImage.basename)" + } + } }, + "deployment": "local", + "config": { + "cpuMin": 2, + "cpuMax": 5, + "memoryMin": 1, + "memoryMax": 3 + } + } + }, + "processes-core-bbox-def-crs": { + "anyOf": [ { - "$ref": "#/components/schemas/CWLDocumentation" + "type": "string", + "format": "uri", + "enum": [ + "http://www.opengis.net/def/crs/OGC/1.3/CRS84", + "http://www.opengis.net/def/crs/OGC/0/CRS84h" + ], + "default": "http://www.opengis.net/def/crs/OGC/1.3/CRS84" }, { - "$ref": "#/components/schemas/CWLGraphItemBase" + "type": "string", + "format": "uri", + "default": "http://www.opengis.net/def/crs/OGC/1.3/CRS84" } ] }, - "CWLGraphList": { - "type": "array", - "title": "CWLGraphList", - "description": "Graph definition that defines *exactly one* CWL application package represented as list. Multiple definitions simultaneously deployed is NOT supported currently.", - "items": { - "$ref": "#/components/schemas/CWLGraphItem" - }, - "maxItems": 1, - "minItems": 1 - }, - "CWLGraphBase": { + "processes-core-bbox": { "type": "object", + "required": [ + "bbox" + ], "properties": { - "$graph": { - "$ref": "#/components/schemas/CWLGraphList" + "bbox": { + "type": "array", + "oneOf": [ + { + "minItems": 4, + "maxItems": 4 + }, + { + "minItems": 6, + "maxItems": 6 + } + ], + "items": { + "type": "number" + } + }, + "crs": { + "$ref": "#/components/schemas/processes-core-bbox-def-crs" } - }, - "required": [ - "$graph" - ] - }, - "LinkMergeMethod": { - "type": "string", - "enum": [ - "merge_nested", - "merge_flattened" - ] + } }, - "CWLWorkflowStepInput": { - "allOf": [ + "cql2-cql2": { + "oneOf": [ { - "$ref": "#/components/schemas/CWLWorkflowStepInputBase" + "$ref": "#/components/schemas/cql2-cql2-definitions" }, { - "$ref": "#/components/schemas/CWLWorkflowStepInputDefault" - } - ] - }, - "CWLWorkflowNested": { - "description": "Same as 'CWLWorkflow', but 'cwlVersion' not repeated (only at root).", - "allOf": [ + "$ref": "#/components/schemas/cql2-cql2-definitions" + }, + { + "$ref": "#/components/schemas/cql2-cql2-definitions" + }, + { + "$ref": "#/components/schemas/cql2-cql2-definitions" + }, { - "$ref": "#/components/schemas/CWLMetadata" + "$ref": "#/components/schemas/cql2-cql2-definitions" }, { - "$ref": "#/components/schemas/CWLDocumentation" + "$ref": "#/components/schemas/cql2-cql2-definitions" }, { - "$ref": "#/components/schemas/CWLWorkflowClass" + "$ref": "#/components/schemas/cql2-cql2-definitions" }, { - "$ref": "#/components/schemas/CWLWorkflowBase" + "type": "boolean" } ] }, - "CWLWorkflowStepOutId": { + "cql2-cql2-definitions": { "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/CWLIdentifier" - } - }, "required": [ - "id" + "op", + "args" ], - "additionalProperties": false - }, - "IdentifierArray": { - "type": "array", - "title": "IdentifierArray", - "items": { - "$ref": "#/components/schemas/CWLTextPatternID" - }, - "minItems": 1 - }, - "Scatter": { - "oneOf": [ - { - "$ref": "#/components/schemas/CWLTextPatternID" + "properties": { + "op": { + "type": "string", + "enum": [ + "a_containedBy", + "a_contains", + "a_equals", + "a_overlaps" + ] }, - { - "$ref": "#/components/schemas/IdentifierArray" + "args": { + "$ref": "#/components/schemas/cql2-cql2-definitions" } - ], - "title": "Scatter", - "description": "The scatter field specifies one or more input parameters which will be scattered.\n\nAn input parameter may be listed more than once. The declared type of each\ninput parameter implicitly becomes an array of items of the input parameter type.\nIf a parameter is listed more than once, it becomes a nested array. As a result,\nupstream parameters which are connected to scattered parameters must be arrays.\n\nAll output parameter types are also implicitly wrapped in arrays. Each job\nin the scatter results in an entry in the output array.\n\nIf any scattered parameter runtime value is an empty array, all outputs are\nset to empty arrays and no work is done for the step, according to applicable scattering rules.\n" - }, - "ScatterMethod": { - "type": "string", - "title": "scatterMethod", - "description": "If 'scatter' declares more than one input parameter, 'scatterMethod'\ndescribes how to decompose the input into a discrete set of jobs.\n\n- dotproduct: specifies that each of the input arrays are aligned and\n one element taken from each array to construct each job. It is an\n error if all input arrays are not the same length.\n\n- nested_crossproduct: specifies the Cartesian product of the inputs, producing\n a job for every combination of the scattered inputs. The output must be nested\n arrays for each level of scattering, in the order that the input arrays\n are listed in the 'scatter' field.\n\n- flat_crossproduct: specifies the Cartesian product of the inputs, producing a\n job for every combination of the scattered inputs. The output arrays must be\n flattened to a single level, but otherwise listed in the order that the input\n arrays are listed in the 'scatter' field.\n", - "default": "dotproduct", - "enum": [ - "dotproduct", - "nested_crossproduct", - "flat_crossproduct" - ] + } }, - "CWLWorkflowStepItem": { - "allOf": [ - { - "$ref": "#/components/schemas/CWLWorkflowStepId" - }, - { - "$ref": "#/components/schemas/CWLWorkflowStepObject" - } - ] + "processes-dru-ogcapppkg-array": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/processes-dru-executionUnit" + }, + { + "$ref": "#/components/schemas/common-core-link" + }, + { + "$ref": "#/components/schemas/processes-core-qualifiedValue" + } + ] + } }, - "execute-workflows": { + "processes-workflows-execute-workflows": { "allOf": [ { "type": "object", @@ -6676,21 +2548,21 @@ }, "inputs": { "additionalProperties": { - "$ref": "#/components/schemas/values-workflows" + "$ref": "#/components/schemas/processes-workflows-values-workflows" } }, "outputs": { "additionalProperties": { - "$ref": "#/components/schemas/outputSelection-workflows" + "$ref": "#/components/schemas/processes-workflows-outputSelection-workflows" } }, "subscriber": { - "$ref": "#/components/schemas/subscriber" + "$ref": "#/components/schemas/processes-core-subscriber" } } }, { - "$ref": "#/components/schemas/fieldsModifiers" + "$ref": "#/components/schemas/processes-core-fieldsModifiers" }, { "example": { @@ -6711,7 +2583,7 @@ } ] }, - "inputProcess": { + "processes-workflows-inputProcess": { "allOf": [ { "type": "object", @@ -6720,27 +2592,27 @@ ] }, { - "$ref": "#/components/schemas/execute-workflows" + "$ref": "#/components/schemas/processes-workflows-execute-workflows" } ] }, - "value-workflows": { + "processes-workflows-value-workflows": { "oneOf": [ { - "$ref": "#/components/schemas/valueNoObject-workflows" + "$ref": "#/components/schemas/processes-workflows-valueNoObject-workflows" }, { "type": "object" } ] }, - "qualifiedValue-workflows": { + "processes-workflows-qualifiedValue-workflows": { "allOf": [ { - "$ref": "#/components/schemas/format" + "$ref": "#/components/schemas/processes-core-format" }, { - "$ref": "#/components/schemas/fieldsModifiers" + "$ref": "#/components/schemas/processes-core-fieldsModifiers" }, { "type": "object", @@ -6749,24 +2621,24 @@ ], "properties": { "value": { - "$ref": "#/components/schemas/value-workflows" + "$ref": "#/components/schemas/processes-workflows-value-workflows" } } } ] }, - "outputSelection-workflows": { + "processes-workflows-outputSelection-workflows": { "type": "object", "properties": { "format": { - "$ref": "#/components/schemas/format" + "$ref": "#/components/schemas/processes-core-format" }, "$output": { "type": "string" } } }, - "FeatureCollection": { + "geojson-FeatureCollection": { "title": "GeoJSON FeatureCollection", "type": "object", "required": [ @@ -7046,7 +2918,7 @@ } } }, - "roles": { + "records-core-roles": { "title": "Types or roles", "description": "The list of duties, job functions or permissions assigned by the system and associated with the context of this member.", "type": "array", @@ -7055,7 +2927,7 @@ "type": "string" } }, - "contact": { + "records-core-contact": { "type": "object", "title": "Contact information", "description": "Identification of, and means of communication with, person responsible\nfor the resource.", @@ -7097,7 +2969,7 @@ "description": "Link to a graphic identifying a contact. The link relation should be `icon`\nand the media type should be an image media type.", "allOf": [ { - "$ref": "#/components/schemas/link" + "$ref": "#/components/schemas/common-core-link" }, { "type": "object", @@ -7135,7 +3007,7 @@ "roles": { "title": "Type of phone number.", "description": "The type of phone number (e.g. home, work, fax, etc.).", - "$ref": "#/components/schemas/roles" + "$ref": "#/components/schemas/records-core-roles" } } } @@ -7159,7 +3031,7 @@ "roles": { "title": "Type of email", "description": "The type of email (e.g. home, work, etc.).", - "$ref": "#/components/schemas/roles" + "$ref": "#/components/schemas/records-core-roles" } } } @@ -7202,7 +3074,7 @@ "roles": { "title": "Type of postal address", "description": "The type of postal address (e.g. office, home, etc.).", - "$ref": "#/components/schemas/roles" + "$ref": "#/components/schemas/records-core-roles" } } } @@ -7214,7 +3086,7 @@ "items": { "allOf": [ { - "$ref": "#/components/schemas/link" + "$ref": "#/components/schemas/common-core-link" }, { "type": "object", @@ -7239,11 +3111,11 @@ "roles": { "title": "Types of contact person", "description": "The set of named duties, job functions and/or permissions associated with this contact. (e.g. developer, administrator, etc.).", - "$ref": "#/components/schemas/roles" + "$ref": "#/components/schemas/records-core-roles" } } }, - "format-2": { + "records-core-format": { "type": "object", "anyOf": [ { @@ -7270,7 +3142,7 @@ } } }, - "theme": { + "records-core-theme": { "type": "object", "required": [ "concepts", @@ -7320,7 +3192,7 @@ } } }, - "language": { + "records-core-language": { "type": "object", "title": "Resource language", "description": "The language used for textual values in this resource.", @@ -7361,7 +3233,7 @@ } } }, - "collectionProperties": { + "common-geodata-collectionProperties": { "type": "object", "required": [ "id", @@ -7423,7 +3295,7 @@ "description": "A list of contacts qualified by their role(s) in association to the collection.", "minItems": 1, "items": { - "$ref": "#/components/schemas/contact" + "$ref": "#/components/schemas/records-core-contact" } }, "license": { @@ -7441,7 +3313,7 @@ "description": "A list of formats in which the data of this collection is distributed", "type": "array", "items": { - "$ref": "#/components/schemas/format-2" + "$ref": "#/components/schemas/records-core-format" } }, "keywords": { @@ -7458,7 +3330,7 @@ "description": "A knowledge organization system used to classify the resource.", "minItems": 1, "items": { - "$ref": "#/components/schemas/theme" + "$ref": "#/components/schemas/records-core-theme" } }, "resourceLanguages": { @@ -7466,7 +3338,7 @@ "title": "The list of languages of the collection", "description": "The list of languages in which the data of this collection is available.", "items": { - "$ref": "#/components/schemas/language" + "$ref": "#/components/schemas/records-core-language" } }, "links": { @@ -7512,7 +3384,7 @@ } ], "items": { - "$ref": "#/components/schemas/link" + "$ref": "#/components/schemas/common-core-link" } }, "itemType": { @@ -7524,7 +3396,7 @@ "dataType": { "title": "Nature of the data in the collection", "description": "Nature of the data in the collection. For example, this could be set to `map`, `vector` or `coverage`. It is not an indication of the available data access mechanism, but a hint regarding the internal representation of the data.", - "$ref": "#/components/schemas/dataType" + "$ref": "#/components/schemas/common-geodata-dataType" }, "featureTypes": { "title": "Feature type(s) present in the collection", @@ -7637,7 +3509,7 @@ } } }, - "regularGrid": { + "common-geodata-regularGrid": { "type": "object", "title": "Regular grid", "description": "Regular grid with samples spaced at equal intervals.", @@ -7720,7 +3592,7 @@ } } }, - "irregularGrid": { + "common-geodata-irregularGrid": { "type": "object", "title": "Irregular grid.", "description": "Irregular grid with samples spaced at different intervals.", @@ -7787,7 +3659,7 @@ } } }, - "grid": { + "common-geodata-grid": { "type": "object", "title": "Grid.", "description": "Provides information about the limited availability of data within the collection organized as a grid (regular or irregular) along the dimension.", @@ -7809,16 +3681,16 @@ { "oneOf": [ { - "$ref": "#/components/schemas/regularGrid" + "$ref": "#/components/schemas/common-geodata-regularGrid" }, { - "$ref": "#/components/schemas/irregularGrid" + "$ref": "#/components/schemas/common-geodata-irregularGrid" } ] } ] }, - "spatialExtent": { + "common-geodata-spatialExtent": { "title": "Spatial extent", "description": "The spatial extent of the data in the collection.", "type": "object", @@ -7908,12 +3780,12 @@ "minItems": 2, "maxItems": 3, "items": { - "$ref": "#/components/schemas/grid" + "$ref": "#/components/schemas/common-geodata-grid" } } } }, - "temporalExtent": { + "common-geodata-temporalExtent": { "title": "Temporal extent", "description": "The temporal extent of the data in the collection.", "type": "object", @@ -7956,11 +3828,11 @@ "default": "http://www.opengis.net/def/uom/ISO-8601/0/Gregorian" }, "grid": { - "$ref": "#/components/schemas/grid" + "$ref": "#/components/schemas/common-geodata-grid" } } }, - "additionalDimensionExtent": { + "common-geodata-additionalDimensionExtent": { "title": "Extent of any additional dimensions", "description": "The domain intervals for any additional dimensions of the extent (envelope) beyond those described in temporal and spatial.", "type": "object", @@ -8035,7 +3907,7 @@ ] }, "grid": { - "$ref": "#/components/schemas/grid" + "$ref": "#/components/schemas/common-geodata-grid" }, "definition": { "type": "string", @@ -8238,7 +4110,7 @@ "schema": { "type": "array", "items": { - "$ref": "#/components/schemas/statusCode" + "$ref": "#/components/schemas/processes-core-statusCode" } } }, @@ -8372,7 +4244,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/landingPage" + "$ref": "#/components/schemas/common-core-landingPage" } }, "text/html": { @@ -8387,7 +4259,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/exception" + "$ref": "#/components/schemas/common-core-exception" } }, "text/html": { @@ -8402,7 +4274,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/exception" + "$ref": "#/components/schemas/common-core-exception" } }, "text/html": { @@ -8419,7 +4291,7 @@ "schema": { "allOf": [ { - "$ref": "#/components/schemas/confClasses" + "$ref": "#/components/schemas/common-core-confClasses" } ], "example": { @@ -8478,7 +4350,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/enumeration" + "$ref": "#/components/schemas/dynamic-enumeration" } }, "text/html": { @@ -8493,7 +4365,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/exception" + "$ref": "#/components/schemas/common-core-exception" } }, "text/html": { @@ -8508,7 +4380,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/processList" + "$ref": "#/components/schemas/processes-core-processList" } } } @@ -8518,7 +4390,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/processSummary" + "$ref": "#/components/schemas/processes-core-processSummary" } } } @@ -8528,7 +4400,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/exception" + "$ref": "#/components/schemas/common-core-exception" } }, "text/html": { @@ -8543,7 +4415,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/exception" + "$ref": "#/components/schemas/common-core-exception" } }, "text/html": { @@ -8558,7 +4430,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/exception" + "$ref": "#/components/schemas/common-core-exception" } }, "text/html": { @@ -8573,7 +4445,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/process" + "$ref": "#/components/schemas/processes-core-process" } } } @@ -8616,7 +4488,7 @@ ] }, { - "$ref": "#/components/schemas/results" + "$ref": "#/components/schemas/processes-core-results" } ] } @@ -8646,7 +4518,7 @@ "format": "geojson-feature-collection" }, { - "$ref": "#/components/schemas/FeatureCollection" + "$ref": "#/components/schemas/geojson-FeatureCollection" } ] } @@ -8672,7 +4544,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/statusInfo" + "$ref": "#/components/schemas/processes-core-statusInfo" } } } @@ -8693,7 +4565,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/jobList" + "$ref": "#/components/schemas/processes-core-jobList" } } } @@ -8703,7 +4575,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/statusInfo" + "$ref": "#/components/schemas/processes-core-statusInfo" } } } @@ -8713,7 +4585,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/results" + "$ref": "#/components/schemas/processes-core-results" } } } @@ -8723,7 +4595,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/values" + "$ref": "#/components/schemas/processes-core-values" } } } @@ -8733,7 +4605,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/exception" + "$ref": "#/components/schemas/common-core-exception" } }, "text/html": { @@ -8748,7 +4620,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/exception" + "$ref": "#/components/schemas/common-core-exception" } }, "text/html": { @@ -8763,7 +4635,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/inlineOrRefValue" + "$ref": "#/components/schemas/processes-core-inlineOrRefValue" } } } @@ -8792,7 +4664,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/staticIndicator" + "$ref": "#/components/schemas/processes-dru-staticIndicator" } } } diff --git a/openapi/update.sh b/openapi/update.sh index d9163998..d1b1fda9 100755 --- a/openapi/update.sh +++ b/openapi/update.sh @@ -23,4 +23,11 @@ done # Default below assumes global install (e.g.: npm install -g @redocly/cli) # If using a local install, set BUNDLE_TOOL='npx @redocly/cli' or 'npx @apidevtools/swagger-cli' BUNDLE_TOOL=${BUNDLE_TOOL:-redocly} -${BUNDLE_TOOL} bundle ogcapi-processes.yaml -o ogcapi-processes.bundled.json "$@" +BUNDLE_XARGS="" +if echo "${BUNDLE_TOOL}" | grep -q "redocly"; then + # if the special plugin is used, names are guaranteed to be unique because of preserved prefixes + # and their by-design uniqueness of file names under those directory prefixes + # supress the warnings to avoid misleading errors + BUNDLE_XARGS="--config ../.github/redocly/config.yaml --component-renaming-conflicts-severity=off" +fi +${BUNDLE_TOOL} bundle ${BUNDLE_XARGS} ogcapi-processes.yaml -o ogcapi-processes.bundled.json "$@" From f9786091ad9acf21fa6f8787cafc2dd7074d9fdc Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 27 Apr 2026 14:25:51 -0400 Subject: [PATCH 20/20] apply prefix name to all 'components' types for consistency --- .github/redocly/schema-name-prefix.plugin.js | 95 ++++-- openapi/ogcapi-processes.bundled.json | 314 +++++++++---------- 2 files changed, 221 insertions(+), 188 deletions(-) diff --git a/.github/redocly/schema-name-prefix.plugin.js b/.github/redocly/schema-name-prefix.plugin.js index 40b74f87..3b43eafe 100644 --- a/.github/redocly/schema-name-prefix.plugin.js +++ b/.github/redocly/schema-name-prefix.plugin.js @@ -1,19 +1,20 @@ /** - * Redocly plugin to preserve schema name prefixes based on directory structure. + * Redocly plugin to preserve component name prefixes based on directory structure. * Workaround for: https://github.com/Redocly/redocly-cli/issues/661 * - * When bundling, Redocly auto-renames conflicting schemas (e.g., link.yaml -> link-2). - * This plugin modifies the bundled output to use directory-based prefixes for schema names. + * When bundling, Redocly auto-renames conflicting components (e.g., link.yaml -> link-2). + * This plugin modifies the bundled output to use directory-based prefixes for ALL component types + * (schemas, responses, parameters, examples, requestBodies, headers, securitySchemes, links, callbacks). */ -// Store mapping of schema objects to their source information -const schemaSourceMap = new WeakMap(); +// Store mapping of component objects to their source information +const componentSourceMap = new WeakMap(); -const PreserveSchemaNamePrefixes = () => { +const PreserveComponentNamePrefixes = () => { return { any: { enter(node, ctx) { - // Track all nodes from schema files + // Track all nodes from component files if (!node || typeof node !== 'object') { return; } @@ -30,14 +31,19 @@ const PreserveSchemaNamePrefixes = () => { return; } - // Extract: .../schemas/{directory}/{filename}.yaml - const match = filePath.match(/\/schemas\/([^\/]+)\/([^\/]+)\.yaml$/); + // Extract directory and filename from various component paths: + // - schemas/{directory}/{filename}.yaml + // - responses/{directory}/{filename}.yaml + // - parameters/{directory}/{filename}.yaml + // etc. + const match = filePath.match(/\/(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks)\/([^\/]+)\/([^\/]+)\.yaml$/); if (match) { - const [, directory, filename] = match; + const [, componentType, directory, filename] = match; - if (directory && directory !== 'schemas') { + if (directory && directory !== componentType) { // Store the source info for this node - schemaSourceMap.set(node, { + componentSourceMap.set(node, { + componentType, directory, filename, prefixedName: `${directory}-${filename}` @@ -48,32 +54,57 @@ const PreserveSchemaNamePrefixes = () => { }, Root: { leave(root) { - // Post-process: rename component schemas after bundling - if (!root.components || !root.components.schemas) { + // Post-process: rename all component types after bundling + if (!root.components) { return; } - const schemas = root.components.schemas; + // List of all possible component types in OpenAPI 3.x + const componentTypes = [ + 'schemas', + 'responses', + 'parameters', + 'examples', + 'requestBodies', + 'headers', + 'securitySchemes', + 'links', + 'callbacks' + ]; + const renameMap = new Map(); - // Identify schemas that should be renamed - for (const [schemaName, schemaContent] of Object.entries(schemas)) { - const sourceInfo = schemaSourceMap.get(schemaContent); + // Process each component type + for (const componentType of componentTypes) { + const components = root.components[componentType]; + if (!components) { + continue; + } - if (sourceInfo && sourceInfo.prefixedName) { - // Only rename if the name differs - if (schemaName !== sourceInfo.prefixedName) { - renameMap.set(schemaName, sourceInfo.prefixedName); + // Identify components that should be renamed + for (const [componentName, componentContent] of Object.entries(components)) { + const sourceInfo = componentSourceMap.get(componentContent); + + if (sourceInfo && sourceInfo.prefixedName) { + // Only rename if the name differs + if (componentName !== sourceInfo.prefixedName) { + const key = `${componentType}/${componentName}`; + renameMap.set(key, { + componentType, + oldName: componentName, + newName: sourceInfo.prefixedName + }); + } } } } // Apply renames - for (const [oldName, newName] of renameMap.entries()) { - // Move the schema to new name - if (schemas[oldName]) { - schemas[newName] = schemas[oldName]; - delete schemas[oldName]; + for (const [key, { componentType, oldName, newName }] of renameMap.entries()) { + const components = root.components[componentType]; + if (components && components[oldName]) { + components[newName] = components[oldName]; + delete components[oldName]; } } @@ -84,9 +115,9 @@ const PreserveSchemaNamePrefixes = () => { } if (obj.$ref && typeof obj.$ref === 'string') { - for (const [oldName, newName] of renameMap.entries()) { - const oldRef = `#/components/schemas/${oldName}`; - const newRef = `#/components/schemas/${newName}`; + for (const [key, { componentType, oldName, newName }] of renameMap.entries()) { + const oldRef = `#/components/${componentType}/${oldName}`; + const newRef = `#/components/${componentType}/${newName}`; if (obj.$ref === oldRef) { obj.$ref = newRef; } @@ -111,9 +142,11 @@ module.exports = { id: 'schema-prefix', decorators: { oas3: { - 'preserve-schema-name-prefixes': PreserveSchemaNamePrefixes, + 'preserve-schema-name-prefixes': PreserveComponentNamePrefixes, } } }; + + diff --git a/openapi/ogcapi-processes.bundled.json b/openapi/ogcapi-processes.bundled.json index 7ed27ec3..6fef137e 100644 --- a/openapi/ogcapi-processes.bundled.json +++ b/openapi/ogcapi-processes.bundled.json @@ -29,18 +29,18 @@ "summary": "Retrieve the OGC API landing page for this service.", "parameters": [ { - "$ref": "#/components/parameters/f-metadata" + "$ref": "#/components/parameters/unspecified-f-metadata" } ], "responses": { "200": { - "$ref": "#/components/responses/rLandingPage" + "$ref": "#/components/responses/common-core-rLandingPage" }, "406": { - "$ref": "#/components/responses/rNotAcceptable" + "$ref": "#/components/responses/common-core-rNotAcceptable" }, "500": { - "$ref": "#/components/responses/rServerError" + "$ref": "#/components/responses/common-core-rServerError" } } } @@ -54,18 +54,18 @@ "summary": "Retrieve the set of OGC API conformance classes that are supported by this service.", "parameters": [ { - "$ref": "#/components/parameters/f-metadata" + "$ref": "#/components/parameters/unspecified-f-metadata" } ], "responses": { "200": { - "$ref": "#/components/responses/rConformance" + "$ref": "#/components/responses/common-core-rConformance" }, "406": { - "$ref": "#/components/responses/rNotAcceptable" + "$ref": "#/components/responses/common-core-rNotAcceptable" }, "500": { - "$ref": "#/components/responses/rServerError" + "$ref": "#/components/responses/common-core-rServerError" } } } @@ -79,18 +79,18 @@ "summary": "Retrieve this API definition.", "parameters": [ { - "$ref": "#/components/parameters/f-metadata" + "$ref": "#/components/parameters/unspecified-f-metadata" } ], "responses": { "200": { - "$ref": "#/components/responses/rAPI" + "$ref": "#/components/responses/common-core-rAPI" }, "406": { - "$ref": "#/components/responses/rNotAcceptable" + "$ref": "#/components/responses/common-core-rNotAcceptable" }, "500": { - "$ref": "#/components/responses/rServerError" + "$ref": "#/components/responses/common-core-rServerError" } } } @@ -104,21 +104,21 @@ "summary": "Retrieve the list of processes available from this API implementation & deployment.", "parameters": [ { - "$ref": "#/components/parameters/f-metadata" + "$ref": "#/components/parameters/unspecified-f-metadata" } ], "responses": { "200": { - "$ref": "#/components/responses/rEnumeration" + "$ref": "#/components/responses/dynamic-rEnumeration" }, "404": { - "$ref": "#/components/responses/rNotFound" + "$ref": "#/components/responses/common-core-rNotFound" }, "406": { - "$ref": "#/components/responses/rNotAcceptable" + "$ref": "#/components/responses/common-core-rNotAcceptable" }, "500": { - "$ref": "#/components/responses/rServerError" + "$ref": "#/components/responses/common-core-rServerError" } } } @@ -133,7 +133,7 @@ ], "responses": { "200": { - "$ref": "#/components/responses/rProcessList" + "$ref": "#/components/responses/processes-core-rProcessList" } } }, @@ -146,7 +146,7 @@ ], "parameters": [ { - "$ref": "#/components/parameters/w-param" + "$ref": "#/components/parameters/processes-dru-w-param" } ], "requestBody": { @@ -177,19 +177,19 @@ }, "responses": { "201": { - "$ref": "#/components/responses/rProcessSummary" + "$ref": "#/components/responses/processes-dru-rProcessSummary" }, "400": { - "$ref": "#/components/responses/rException" + "$ref": "#/components/responses/common-core-rException" }, "403": { - "$ref": "#/components/responses/rImmutableProcess" + "$ref": "#/components/responses/processes-dru-rImmutableProcess" }, "409": { - "$ref": "#/components/responses/rDuplicateProcess" + "$ref": "#/components/responses/processes-dru-rDuplicateProcess" }, "500": { - "$ref": "#/components/responses/rServerError" + "$ref": "#/components/responses/common-core-rServerError" } } } @@ -204,15 +204,15 @@ ], "parameters": [ { - "$ref": "#/components/parameters/processID-path" + "$ref": "#/components/parameters/processes-core-processID-path" } ], "responses": { "200": { - "$ref": "#/components/responses/rProcessDescription" + "$ref": "#/components/responses/processes-core-rProcessDescription" }, "404": { - "$ref": "#/components/responses/rNotFound" + "$ref": "#/components/responses/common-core-rNotFound" } } }, @@ -225,7 +225,7 @@ ], "parameters": [ { - "$ref": "#/components/parameters/processID-path" + "$ref": "#/components/parameters/processes-core-processID-path" } ], "requestBody": { @@ -256,22 +256,22 @@ }, "responses": { "204": { - "$ref": "#/components/responses/rEmpty" + "$ref": "#/components/responses/processes-core-rEmpty" }, "400": { - "$ref": "#/components/responses/rException" + "$ref": "#/components/responses/common-core-rException" }, "403": { - "$ref": "#/components/responses/rImmutableProcess" + "$ref": "#/components/responses/processes-dru-rImmutableProcess" }, "404": { - "$ref": "#/components/responses/rNotFound" + "$ref": "#/components/responses/common-core-rNotFound" }, "409": { - "$ref": "#/components/responses/rDuplicateProcess" + "$ref": "#/components/responses/processes-dru-rDuplicateProcess" }, "500": { - "$ref": "#/components/responses/rServerError" + "$ref": "#/components/responses/common-core-rServerError" } } }, @@ -284,21 +284,21 @@ ], "parameters": [ { - "$ref": "#/components/parameters/processID-path" + "$ref": "#/components/parameters/processes-core-processID-path" } ], "responses": { "204": { - "$ref": "#/components/responses/rEmpty" + "$ref": "#/components/responses/processes-core-rEmpty" }, "403": { - "$ref": "#/components/responses/rImmutableProcess" + "$ref": "#/components/responses/processes-dru-rImmutableProcess" }, "404": { - "$ref": "#/components/responses/rNotFound" + "$ref": "#/components/responses/common-core-rNotFound" }, "500": { - "$ref": "#/components/responses/rServerError" + "$ref": "#/components/responses/common-core-rServerError" } } } @@ -313,7 +313,7 @@ ], "parameters": [ { - "$ref": "#/components/parameters/processID-path" + "$ref": "#/components/parameters/processes-core-processID-path" } ], "responses": { @@ -343,7 +343,7 @@ } }, "404": { - "$ref": "#/components/responses/rNotFound" + "$ref": "#/components/responses/common-core-rNotFound" } } } @@ -358,13 +358,13 @@ ], "parameters": [ { - "$ref": "#/components/parameters/processID-path" + "$ref": "#/components/parameters/processes-core-processID-path" }, { - "$ref": "#/components/parameters/response" + "$ref": "#/components/parameters/processes-core-response" }, { - "$ref": "#/components/parameters/prefer-header-execution" + "$ref": "#/components/parameters/processes-core-prefer-header-execution" } ], "requestBody": { @@ -380,22 +380,22 @@ }, "responses": { "200": { - "$ref": "#/components/responses/rExecuteSync" + "$ref": "#/components/responses/processes-core-rExecuteSync" }, "201": { - "$ref": "#/components/responses/rExecuteAsync" + "$ref": "#/components/responses/processes-core-rExecuteAsync" }, "204": { - "$ref": "#/components/responses/rEmpty" + "$ref": "#/components/responses/processes-core-rEmpty" }, "303": { - "$ref": "#/components/responses/rExecuteCollectionRedirect" + "$ref": "#/components/responses/processes-core-rExecuteCollectionRedirect" }, "404": { - "$ref": "#/components/responses/rNotFound" + "$ref": "#/components/responses/common-core-rNotFound" }, "500": { - "$ref": "#/components/responses/rServerError" + "$ref": "#/components/responses/common-core-rServerError" } }, "callbacks": { @@ -432,33 +432,33 @@ ], "parameters": [ { - "$ref": "#/components/parameters/limit" + "$ref": "#/components/parameters/processes-core-limit" }, { - "$ref": "#/components/parameters/processID-query" + "$ref": "#/components/parameters/processes-core-processID-query" }, { - "$ref": "#/components/parameters/status" + "$ref": "#/components/parameters/processes-core-status" }, { - "$ref": "#/components/parameters/minDuration" + "$ref": "#/components/parameters/processes-core-minDuration" }, { - "$ref": "#/components/parameters/maxDuration" + "$ref": "#/components/parameters/processes-core-maxDuration" }, { - "$ref": "#/components/parameters/type" + "$ref": "#/components/parameters/processes-core-type" }, { - "$ref": "#/components/parameters/datetime" + "$ref": "#/components/parameters/common-geodata-datetime" } ], "responses": { "200": { - "$ref": "#/components/responses/rJobList" + "$ref": "#/components/responses/processes-core-rJobList" }, "404": { - "$ref": "#/components/responses/rNotFound" + "$ref": "#/components/responses/common-core-rNotFound" } } } @@ -473,18 +473,18 @@ ], "parameters": [ { - "$ref": "#/components/parameters/jobID" + "$ref": "#/components/parameters/processes-core-jobID" } ], "responses": { "200": { - "$ref": "#/components/responses/rStatus" + "$ref": "#/components/responses/processes-core-rStatus" }, "404": { - "$ref": "#/components/responses/rNotFound" + "$ref": "#/components/responses/common-core-rNotFound" }, "500": { - "$ref": "#/components/responses/rServerError" + "$ref": "#/components/responses/common-core-rServerError" } } }, @@ -497,18 +497,18 @@ ], "parameters": [ { - "$ref": "#/components/parameters/jobID" + "$ref": "#/components/parameters/processes-core-jobID" } ], "responses": { "200": { - "$ref": "#/components/responses/rStatus" + "$ref": "#/components/responses/processes-core-rStatus" }, "404": { - "$ref": "#/components/responses/rNotFound" + "$ref": "#/components/responses/common-core-rNotFound" }, "500": { - "$ref": "#/components/responses/rServerError" + "$ref": "#/components/responses/common-core-rServerError" } } } @@ -523,21 +523,21 @@ ], "parameters": [ { - "$ref": "#/components/parameters/jobID" + "$ref": "#/components/parameters/processes-core-jobID" }, { - "$ref": "#/components/parameters/prefer-header-return" + "$ref": "#/components/parameters/processes-core-prefer-header-return" } ], "responses": { "200": { - "$ref": "#/components/responses/rResults" + "$ref": "#/components/responses/processes-core-rResults" }, "404": { - "$ref": "#/components/responses/rNotFound" + "$ref": "#/components/responses/common-core-rNotFound" }, "500": { - "$ref": "#/components/responses/rServerError" + "$ref": "#/components/responses/common-core-rServerError" } } } @@ -552,24 +552,24 @@ ], "parameters": [ { - "$ref": "#/components/parameters/jobID" + "$ref": "#/components/parameters/processes-core-jobID" }, { - "$ref": "#/components/parameters/outputID" + "$ref": "#/components/parameters/processes-core-outputID" }, { - "$ref": "#/components/parameters/prefer-header-return" + "$ref": "#/components/parameters/processes-core-prefer-header-return" } ], "responses": { "200": { - "$ref": "#/components/responses/rOutput" + "$ref": "#/components/responses/processes-core-rOutput" }, "404": { - "$ref": "#/components/responses/rNotFound" + "$ref": "#/components/responses/common-core-rNotFound" }, "500": { - "$ref": "#/components/responses/rServerError" + "$ref": "#/components/responses/common-core-rServerError" } } } @@ -584,24 +584,24 @@ ], "parameters": [ { - "$ref": "#/components/parameters/jobID" + "$ref": "#/components/parameters/processes-core-jobID" }, { - "$ref": "#/components/parameters/outputID" + "$ref": "#/components/parameters/processes-core-outputID" }, { - "$ref": "#/components/parameters/N" + "$ref": "#/components/parameters/processes-core-N" } ], "responses": { "200": { - "$ref": "#/components/responses/rOutput" + "$ref": "#/components/responses/processes-core-rOutput" }, "404": { - "$ref": "#/components/responses/rNotFound" + "$ref": "#/components/responses/common-core-rNotFound" }, "500": { - "$ref": "#/components/responses/rServerError" + "$ref": "#/components/responses/common-core-rServerError" } } } @@ -3942,7 +3942,10 @@ } }, "parameters": { - "f-metadata": { + "w": { + "$ref": "#/components/parameters/processes-dru-w-param" + }, + "unspecified-f-metadata": { "name": "f", "in": "query", "description": "The format of the response. If no value is provided, the accept header is used to determine the format. Accepted values are 'json' or 'html'.", @@ -3957,7 +3960,7 @@ "style": "form", "explode": false }, - "datetime": { + "common-geodata-datetime": { "name": "datetime", "in": "query", "description": "Either a date-time or an interval, half-bounded or bounded. Date and time expressions\nadhere to RFC 3339. Half-bounded intervals are expressed using double-dots.\n\nExamples:\n\n* A date-time: \"2018-02-12T23:20:50Z\"\n* A bounded interval: \"2018-02-12T00:00:00Z/2018-03-18T12:31:12Z\"\n* Half-bounded intervals: \"2018-02-12T00:00:00Z/..\" or \"../2018-03-18T12:31:12Z\"\n\nOnly features that have a temporal property that intersects the value of\n`datetime` are selected.\n\nIf a feature has multiple temporal properties, it is the decision of the\nserver whether only a single temporal property is used to determine\nthe extent or all relevant temporal properties.", @@ -3968,7 +3971,7 @@ "style": "form", "explode": false }, - "crs": { + "common-crs-crs": { "name": "crs", "in": "query", "description": "reproject the output to the given crs", @@ -3979,7 +3982,7 @@ "type": "string" } }, - "subset-crs": { + "common-crs-subset-crs": { "name": "subset-crs", "in": "query", "description": "crs for the specified subset", @@ -3990,7 +3993,7 @@ "type": "string" } }, - "processID-path": { + "processes-core-processID-path": { "name": "processID", "in": "path", "required": true, @@ -3998,7 +4001,7 @@ "$ref": "#/components/schemas/processes-list" } }, - "outputID": { + "processes-core-outputID": { "name": "outputID", "in": "path", "description": "identifier of an output", @@ -4007,7 +4010,7 @@ "type": "string" } }, - "N": { + "processes-core-N": { "name": "N", "in": "path", "description": "0-based index identifying a specific value of a multi-values output resulting from a job", @@ -4016,7 +4019,7 @@ "type": "string" } }, - "prefer-header-return": { + "processes-core-prefer-header-return": { "in": "header", "description": "Indicates client preferences, such as whether the client wishes a self-contained or minimal response.\nA `return=minimal` preference indicates that the client would prefer that links be returned to larger object to minimize the response payload.\nA `return=representation` indicates that the client would prefer if the server can return a self-contained response.", "name": "Prefer", @@ -4024,7 +4027,7 @@ "type": "string" } }, - "jobID": { + "processes-core-jobID": { "name": "jobID", "in": "path", "description": "local identifier of a job", @@ -4033,7 +4036,7 @@ "type": "string" } }, - "processID-query": { + "processes-core-processID-query": { "name": "processID", "in": "query", "required": false, @@ -4044,7 +4047,7 @@ } } }, - "output": { + "processes-core-output": { "name": "output", "in": "query", "required": false, @@ -4078,7 +4081,7 @@ }, "explode": false }, - "limit": { + "processes-core-limit": { "name": "limit", "in": "query", "required": false, @@ -4089,7 +4092,7 @@ "default": 10 } }, - "type": { + "processes-core-type": { "name": "type", "in": "query", "required": false, @@ -4103,7 +4106,7 @@ } } }, - "status": { + "processes-core-status": { "name": "status", "in": "query", "required": false, @@ -4114,7 +4117,7 @@ } } }, - "minDuration": { + "processes-core-minDuration": { "name": "minDuration", "in": "query", "required": false, @@ -4122,7 +4125,7 @@ "type": "integer" } }, - "maxDuration": { + "processes-core-maxDuration": { "name": "maxDuration", "in": "query", "required": false, @@ -4130,10 +4133,7 @@ "type": "integer" } }, - "w": { - "$ref": "#/components/parameters/w-param" - }, - "w-param": { + "processes-dru-w-param": { "name": "w", "description": "Point to the workflow identifier for deploying a CWL containing multiple workflow definitions", "in": "query", @@ -4142,7 +4142,7 @@ "type": "string" } }, - "response": { + "processes-core-response": { "name": "response", "in": "query", "description": "For executing the process using the _Collection Output_ mechanism, where the\nclient is redirected (_303_ status) to a collection resource, from which one\nor more OGC API data access mechanism is available. Data access requests may\ntrigger processing on-demand for a given area, time and resolution of interest.", @@ -4154,7 +4154,7 @@ ] } }, - "prefer-header-execution": { + "processes-core-prefer-header-execution": { "in": "header", "description": "Indicates client preferences, including whether the client is capable of asynchronous processing.\nA `respond-async` preference indicates a preference for asynchronous processing.\nA `wait: s` preference indicates that the client prefers to wait up to x seconds to receive a reponse synchronously before the server falls back to asynchronous processing.", "name": "Prefer", @@ -4165,81 +4165,81 @@ }, "responses": { "NotFound": { - "$ref": "#/components/responses/rNotFound" + "$ref": "#/components/responses/common-core-rNotFound" }, "NotAcceptable": { - "$ref": "#/components/responses/rNotAcceptable" + "$ref": "#/components/responses/common-core-rNotAcceptable" }, "ServerError": { - "$ref": "#/components/responses/rServerError" + "$ref": "#/components/responses/common-core-rServerError" }, "InvalidParameter": { - "$ref": "#/components/responses/rInvalidParameter" + "$ref": "#/components/responses/common-core-rInvalidParameter" }, "NotAllowed": { - "$ref": "#/components/responses/rNotAllowed" + "$ref": "#/components/responses/common-core-rNotAllowed" }, "Exception": { - "$ref": "#/components/responses/rException" + "$ref": "#/components/responses/common-core-rException" }, "LandingPage": { - "$ref": "#/components/responses/rLandingPage" + "$ref": "#/components/responses/common-core-rLandingPage" }, "Conformance": { - "$ref": "#/components/responses/rConformance" + "$ref": "#/components/responses/common-core-rConformance" }, "API": { - "$ref": "#/components/responses/rAPI" + "$ref": "#/components/responses/common-core-rAPI" }, "Enumeration": { - "$ref": "#/components/responses/rEnumeration" + "$ref": "#/components/responses/dynamic-rEnumeration" }, "ProcessList": { - "$ref": "#/components/responses/rProcessList" + "$ref": "#/components/responses/processes-core-rProcessList" }, "ProcessDescription": { - "$ref": "#/components/responses/rProcessDescription" + "$ref": "#/components/responses/processes-core-rProcessDescription" }, "Results": { - "$ref": "#/components/responses/rResults" + "$ref": "#/components/responses/processes-core-rResults" }, "Output": { - "$ref": "#/components/responses/rOutput" + "$ref": "#/components/responses/processes-core-rOutput" }, "OutputValue": { - "$ref": "#/components/responses/rOutputValue" + "$ref": "#/components/responses/processes-core-rOutputValue" }, "Status": { - "$ref": "#/components/responses/rStatus" + "$ref": "#/components/responses/processes-core-rStatus" }, "JobList": { - "$ref": "#/components/responses/rJobList" + "$ref": "#/components/responses/processes-core-rJobList" }, "ExecuteAsync": { - "$ref": "#/components/responses/rExecuteAsync" + "$ref": "#/components/responses/processes-core-rExecuteAsync" }, "ExecuteSync": { - "$ref": "#/components/responses/rExecuteSync" + "$ref": "#/components/responses/processes-core-rExecuteSync" }, "ExecuteSyncRawRef": { - "$ref": "#/components/responses/rExecuteSyncRawRef" + "$ref": "#/components/responses/processes-core-rExecuteSyncRawRef" }, "EmptyResponse": { - "$ref": "#/components/responses/rEmpty" + "$ref": "#/components/responses/processes-core-rEmpty" }, "DeployProcess": { - "$ref": "#/components/responses/rDeployProcess" + "$ref": "#/components/responses/processes-dru-rDeployProcess" }, "ProcessSummary": { - "$ref": "#/components/responses/rProcessSummary" + "$ref": "#/components/responses/processes-dru-rProcessSummary" }, "DuplicateProcess": { - "$ref": "#/components/responses/rDuplicateProcess" + "$ref": "#/components/responses/processes-dru-rDuplicateProcess" }, "ImmutableProcess": { - "$ref": "#/components/responses/rImmutableProcess" + "$ref": "#/components/responses/processes-dru-rImmutableProcess" }, - "rLandingPage": { + "common-core-rLandingPage": { "description": "The landing page provides links to the API definition (link relation `service-desc`, in this case path `/api`),\nto the Conformance declaration (path `/conformance`, link relation `http://www.opengis.net/def/rel/ogc/1.0/conformance`), and to other resources.", "content": { "application/json": { @@ -4254,7 +4254,7 @@ } } }, - "rNotAcceptable": { + "common-core-rNotAcceptable": { "description": "Content negotiation failed. For example, the `Accept` header submitted in the request did not support any of the media types supported by the server for the requested resource.", "content": { "application/json": { @@ -4269,7 +4269,7 @@ } } }, - "rServerError": { + "common-core-rServerError": { "description": "A server error occurred.", "content": { "application/json": { @@ -4284,7 +4284,7 @@ } } }, - "rConformance": { + "common-core-rConformance": { "description": "The URIs of all conformance classes supported by the server\n\nTo support \"generic\" clients that want to access multiple\nOGC API - Processes implementations - and not \"just\" a specific\nAPI / server, the server declares the conformance\nclasses it implements and conforms to.", "content": { "application/json": { @@ -4330,7 +4330,7 @@ } } }, - "rAPI": { + "common-core-rAPI": { "description": "The OpenAPI definition of the API.", "content": { "application/vnd.oai.openapi+json;version=3.0": { @@ -4345,7 +4345,7 @@ } } }, - "rEnumeration": { + "dynamic-rEnumeration": { "description": "An enumerated list of valid string values for API parameters.", "content": { "application/json": { @@ -4360,7 +4360,7 @@ } } }, - "rNotFound": { + "common-core-rNotFound": { "description": "The requested resource does not exist on the server. For example, a path parameter had an incorrect value.", "content": { "application/json": { @@ -4375,7 +4375,7 @@ } } }, - "rProcessList": { + "processes-core-rProcessList": { "description": "Information about the available processes", "content": { "application/json": { @@ -4385,7 +4385,7 @@ } } }, - "rProcessSummary": { + "processes-dru-rProcessSummary": { "description": "A process summary.", "content": { "application/json": { @@ -4395,7 +4395,7 @@ } } }, - "rException": { + "common-core-rException": { "description": "An error occured.", "content": { "application/json": { @@ -4410,7 +4410,7 @@ } } }, - "rImmutableProcess": { + "processes-dru-rImmutableProcess": { "description": "the processes is not mutable", "content": { "application/json": { @@ -4425,7 +4425,7 @@ } } }, - "rDuplicateProcess": { + "processes-dru-rDuplicateProcess": { "description": "the processes being added is already deployed (i.e. duplicate)", "content": { "application/json": { @@ -4440,7 +4440,7 @@ } } }, - "rProcessDescription": { + "processes-core-rProcessDescription": { "description": "A process description.", "content": { "application/json": { @@ -4450,10 +4450,10 @@ } } }, - "rEmpty": { + "processes-core-rEmpty": { "description": "successful operation (no response body)" }, - "rExecuteSync": { + "processes-core-rExecuteSync": { "description": "Result of synchronous execution", "content": { "application/json": { @@ -4525,7 +4525,7 @@ } } }, - "rExecuteAsync": { + "processes-core-rExecuteAsync": { "description": "Started asynchronous execution. Created job.", "headers": { "Location": { @@ -4549,7 +4549,7 @@ } } }, - "rExecuteCollectionRedirect": { + "processes-core-rExecuteCollectionRedirect": { "description": "For _Collection Output_ execution, redirection to an OGC API landing page or collection.", "headers": { "Location": { @@ -4560,7 +4560,7 @@ } } }, - "rJobList": { + "processes-core-rJobList": { "description": "A list of jobs for this process.", "content": { "application/json": { @@ -4570,7 +4570,7 @@ } } }, - "rStatus": { + "processes-core-rStatus": { "description": "The status of a job.", "content": { "application/json": { @@ -4580,7 +4580,7 @@ } } }, - "rResults": { + "processes-core-rResults": { "description": "The processing results of a job.", "content": { "application/json": { @@ -4590,7 +4590,7 @@ } } }, - "rOutput": { + "processes-core-rOutput": { "description": "An output resulting from a job", "content": { "application/json": { @@ -4600,7 +4600,7 @@ } } }, - "rInvalidParameter": { + "common-core-rInvalidParameter": { "description": "A query parameter has an invalid value.", "content": { "application/json": { @@ -4615,7 +4615,7 @@ } } }, - "rNotAllowed": { + "common-core-rNotAllowed": { "description": "The method is not allowed at the path.", "content": { "application/json": { @@ -4630,7 +4630,7 @@ } } }, - "rOutputValue": { + "processes-core-rOutputValue": { "description": "An individual value of an output allowing multiple values resulting from a job", "content": { "application/json": { @@ -4640,7 +4640,7 @@ } } }, - "rExecuteSyncRawRef": { + "processes-core-rExecuteSyncRawRef": { "description": "Synchronous execution response.", "headers": { "Link": { @@ -4651,7 +4651,7 @@ } } }, - "rDeployProcess": { + "processes-dru-rDeployProcess": { "description": "the process is deployed", "headers": { "Location": {