-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add spectral action for openapi Add spectral action for openapi
- Loading branch information
1 parent
93aecba
commit 3b326c4
Showing
5 changed files
with
158 additions
and
29 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Validate OpenAPI with Spectral | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
build: | ||
name: Run Spectral | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Check out the repository | ||
- name: Check out the repository | ||
uses: actions/[email protected] | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Upgrade pip | ||
run: | | ||
pip install --constraint=.github/workflows/constraints.txt pip | ||
pip --version | ||
- name: Install Poetry | ||
run: | | ||
pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry | ||
poetry --version | ||
- name: Install fastgeoapi CLI | ||
run: | | ||
poetry install | ||
poetry run fastgeoapi openapi | ||
# Run Spectral | ||
- name: Run Spectral | ||
uses: stoplightio/spectral-action@latest | ||
with: | ||
file_glob: 'pygeoapi-openapi.json' |
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 @@ | ||
extends: ["spectral:oas"] |
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 |
---|---|---|
@@ -1,3 +1,73 @@ | ||
site_name: fastgeoapi | ||
docs_dir: docs | ||
site_dir: docs_build/site | ||
theme: | ||
name: material | ||
features: | ||
- navigation.tabs | ||
- navigation.sections | ||
- toc.integrate | ||
- navigation.top | ||
- search.suggest | ||
- search.highlight | ||
- content.tabs.link | ||
- content.code.annotation | ||
- content.code.copy | ||
language: en | ||
palette: | ||
- scheme: default | ||
toggle: | ||
icon: material/toggle-switch-off-outline | ||
name: Switch to Dark Mode | ||
primary: green | ||
accent: red | ||
- scheme: slate | ||
toggle: | ||
icon: material/toggle-switch | ||
name: Switch to Light Mode | ||
primary: green | ||
accent: blue grey | ||
icon: | ||
admonition: | ||
note: octicons/tag-16 | ||
abstract: octicons/checklist-16 | ||
info: octicons/info-16 | ||
tip: octicons/squirrel-16 | ||
success: octicons/check-16 | ||
question: octicons/question-16 | ||
warning: octicons/alert-16 | ||
failure: octicons/x-circle-16 | ||
danger: octicons/zap-16 | ||
bug: octicons/bug-16 | ||
example: octicons/beaker-16 | ||
quote: octicons/quote-16 | ||
plugins: | ||
- termynal: | ||
prompt_literal_start: | ||
- "$" | ||
extra: | ||
social: | ||
- icon: fontawesome/brands/github-alt | ||
link: https://github.com/geobeyond | ||
- icon: fontawesome/brands/twitter | ||
link: https://twitter.com/geobeyond | ||
- icon: fontawesome/brands/linkedin | ||
link: https://www.linkedin.com/company/geobeyond | ||
|
||
markdown_extensions: | ||
- pymdownx.highlight: | ||
anchor_linenums: true | ||
- pymdownx.inlinehilite | ||
- pymdownx.snippets | ||
- admonition | ||
- pymdownx.arithmatex: | ||
generic: true | ||
- footnotes | ||
- pymdownx.details | ||
- pymdownx.superfences | ||
- pymdownx.mark | ||
- attr_list | ||
- pymdownx.emoji | ||
|
||
copyright: | | ||
© Copyright 2024 <a href="https://github.com/geobeyond">Geobeyond team</a>. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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