Skip to content

Commit

Permalink
Merge pull request #457 from TileDB-Inc/phw/sc-47949/bring-openapi-sp…
Browse files Browse the repository at this point in the history
…ec-and-models-back-in-sync

Replace swagger-cli with go-swagger.
  • Loading branch information
NullHypothesis authored May 22, 2024
2 parents 0b3e487 + a66f665 commit 7b61c09
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 25 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/cloud-api-spec.yaml
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
19 changes: 0 additions & 19 deletions azure-pipelines.yml

This file was deleted.

12 changes: 6 additions & 6 deletions openapi-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8094,16 +8094,16 @@ paths:
parameters:
- name: email_invite
in: body
type: object
description: |
Recipients of the invitation. These may only be namespaces,
not email addresses.
schema:
name: namespaces
schema:
type: array
items:
type: string
type: object
properties:
namespaces:
type: array
items:
type: string
responses:
204:
description: Email sent successfully to user for email confirmation link
Expand Down

0 comments on commit 7b61c09

Please sign in to comment.