JSON-schema fixes to allow more flexible OAS3.0/3.1 integration#306
Merged
mr-c merged 4 commits intocommon-workflow-language:mainfrom Mar 21, 2026
Merged
JSON-schema fixes to allow more flexible OAS3.0/3.1 integration#306mr-c merged 4 commits intocommon-workflow-language:mainfrom
mr-c merged 4 commits intocommon-workflow-language:mainfrom
Conversation
Contributor
Author
|
@mr-c FYI |
mr-c
approved these changes
Mar 21, 2026
Member
|
Thank you @fmigneault ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes highlighted in opengeospatial/ogcapi-processes#561
Avoids some OAS 3.0/3.1 vs JSON-schema subtleties, notably:
typearrays (OAS3.0 doesn't like them)➡️
oneOfof thesetypeone by oneexclusiveMinimumasbool(OAS3.0) vsnumeric(all others)➡️ just remove it, use
minimum: 0as "close enough"type: 'null'support (OAS3.0 usingnullable: true)➡️ "hack"
enum: [null], nullable: true(OAS3.1 and pure JSON-schema should ignorenullable)InlineJavascriptLibraries.expressionLibmarked as required➡️ it is not required (https://www.commonwl.org/v1.2/CommandLineTool.html#InlineJavascriptRequirement)
it was not raising before because the indent of
requiredwas wrong and ignoredScatterMethodstring(properties that were listed are relevant for
ToolTimeLimitrequirement/hint, and are defined)Sample integration with Swagger in the context of OGC API processes that needs OAS 3.0.