-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #308 from Open-EO/draft - release 1.0.0
- Loading branch information
Showing
15 changed files
with
2,237 additions
and
2,546 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ __pycache__/ | |
package-lock.json | ||
node_modules/ | ||
/redoc.html | ||
.vscode | ||
.idea |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
extends: "spectral:oas" | ||
# don't error on circular schemas, these are currently not supported by spectral | ||
# https://github.com/stoplightio/spectral/issues/894 | ||
except: | ||
"openapi.yaml#/components/schemas/process_graph/example": | ||
- oas3-valid-schema-example | ||
"openapi.yaml#/paths/~1processes/get/responses/200/content/application~1json/example": | ||
- oas3-valid-oas-content-example | ||
"openapi.yaml#/paths/~1process_graphs/get/responses/200/content/application~1json/example": | ||
- oas3-valid-oas-content-example | ||
"openapi.yaml#/paths/~1service_types/get/responses/200/content/application~1json/example": | ||
- oas3-valid-oas-content-example | ||
"openapi.yaml#/paths/~1file_formats/get/responses/200/content/application~1json/example": | ||
- oas3-valid-oas-content-example | ||
rules: | ||
# Ported from Spectral 4.0 | ||
contact-properties: true | ||
tag-description: true | ||
oas3-parameter-description: true | ||
operation-summary-formatted: | ||
description: Operation `summary` should start with upper case and not end with a dot. | ||
recommended: true | ||
type: style | ||
given: '$.paths.*[?( @property === ''get'' || @property === ''put'' || @property === ''post'' || @property === ''delete'' || @property === ''options'' || @property === ''head'' || @property === ''patch'' || @property === ''trace'' )]' | ||
then: | ||
field: summary | ||
function: pattern | ||
functionOptions: | ||
match: '^[A-Z].*[^\.]$' | ||
tags: | ||
- operation | ||
operation-id-kebab-case: | ||
given: "$" | ||
then: | ||
function: pattern | ||
functionOptions: # this object be passed down as options to the custom function | ||
match: ^[a-z][a-z0-9\-]*$ |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Oops, something went wrong.