-
Notifications
You must be signed in to change notification settings - Fork 1
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 #457 from TileDB-Inc/phw/sc-47949/bring-openapi-sp…
…ec-and-models-back-in-sync Replace swagger-cli with go-swagger.
- Loading branch information
Showing
3 changed files
with
38 additions
and
25 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,32 @@ | ||
name: cloud-api-spec | ||
|
||
on: | ||
push: | ||
tags: [v*] | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
env: | ||
GO_VERSION: 1.22 | ||
SWAGGER_VERSION: v0.31.0 | ||
|
||
jobs: | ||
Validate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- name: Install go-swagger | ||
run: go install github.com/go-swagger/go-swagger/cmd/swagger@${{ env.SWAGGER_VERSION }} | ||
|
||
- name: Validate specs | ||
run: | | ||
swagger validate openapi-v1.yaml | ||
swagger validate openapi-v2.yaml | ||
This file was deleted.
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