Skip to content

Commit

Permalink
Ignore request body for DELETE and TRACE methods (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
vearutop authored Dec 2, 2020
1 parent 3cd5c89 commit 72b4ca8
Show file tree
Hide file tree
Showing 5 changed files with 184 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ jobs:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/cache@v1
- name: Restore vendor
uses: actions/cache@v1
with:
path: vendor
key: ${{ runner.os }}-go-${{ hashFiles('**/go.mod') }}
restore-keys: |
${{ runner.os }}-go-${{ hashFiles('**/go.mod') }}
key: ${{ runner.os }}-go-vendor-${{ hashFiles('**/go.mod') }}
- name: Populate dependencies
if: matrix.go-version == '1.15.x' # Use latest Go to populate vendor.
run: '(test -d vendor && echo vendor found) || go mod vendor'
- name: Test
run: make test-unit
Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ module github.com/swaggest/openapi-go
go 1.13

require (
github.com/bool64/dev v0.1.7
github.com/bool64/dev v0.1.10
github.com/stretchr/testify v1.6.1
github.com/swaggest/assertjson v1.4.1
github.com/swaggest/assertjson v1.5.0
github.com/swaggest/jsonschema-go v0.3.13
github.com/swaggest/refl v0.1.6
github.com/swaggest/swgen v0.6.23
gopkg.in/yaml.v2 v2.3.0
github.com/swaggest/swgen v0.6.27
gopkg.in/yaml.v2 v2.4.0
)
Loading

0 comments on commit 72b4ca8

Please sign in to comment.