Skip to content

Commit

Permalink
fix oas spec and add instructions to readme to validate oas doc
Browse files Browse the repository at this point in the history
  • Loading branch information
arbakker committed Jan 18, 2024
1 parent 9c4e74c commit 8209d19
Show file tree
Hide file tree
Showing 4 changed files with 1,776 additions and 15 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ Check test coverage (install `coverage` with `pip install coverage`):
python3 -m coverage run --source=src/coordinate_transformation_api -m pytest -v tests && python3 -m coverage report -m
```

Validate OAS document:

```sh
# install spectral with: npm install -g @stoplight/spectral-cli - then validate openapi doc with:
echo 'extends: "spectral:oas"\n'> ruleset.yaml && spectral lint http://127.0.0.1:8000/openapi.json --ruleset ruleset.yaml && rm ruleset.yaml
```

### Install NSGI proj.db

Execute the following shell one-liner to install the NSGI `proj.global.time.dependent.transformations.db` as `proj.db` from the
Expand Down
Loading

0 comments on commit 8209d19

Please sign in to comment.