Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Commit b0f22a0

Browse files
committed
Revert "OpenAPI v3.1 support, experimental re-implementation using libopenapi (oapi-codegen#2197)"
This reverts commit 5206145.
1 parent b097c1d commit b0f22a0

293 files changed

Lines changed: 7 additions & 41797 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,34 +19,34 @@ lint: tools
1919
# run the root module explicitly, to prevent recursive calls by re-invoking `make ...` top-level
2020
$(GOBIN)/golangci-lint run ./...
2121
# then, for all child modules, use a module-managed `Makefile`
22-
GOBIN=$(GOBIN) ./scripts/foreach-module.sh lint
22+
git ls-files '**/*go.mod' -z | xargs -0 -I{} bash -xc 'cd $$(dirname {}) && env GOBIN=$(GOBIN) make lint'
2323

2424
lint-ci: tools
2525
# for the root module, explicitly run the step, to prevent recursive calls
2626
$(GOBIN)/golangci-lint run ./... --output.text.path=stdout --timeout=5m
2727
# then, for all child modules, use a module-managed `Makefile`
28-
GOBIN=$(GOBIN) ./scripts/foreach-module.sh lint-ci
28+
git ls-files '**/*go.mod' -z | xargs -0 -I{} bash -xc 'cd $$(dirname {}) && env GOBIN=$(GOBIN) make lint-ci'
2929

3030
generate:
3131
# for the root module, explicitly run the step, to prevent recursive calls
3232
go generate ./...
3333
# then, for all child modules, use a module-managed `Makefile`
34-
GOBIN=$(GOBIN) ./scripts/foreach-module.sh generate
34+
git ls-files '**/*go.mod' -z | xargs -0 -I{} bash -xc 'cd $$(dirname {}) && make generate'
3535

3636
test:
3737
# for the root module, explicitly run the step, to prevent recursive calls
3838
go test -cover ./...
3939
# then, for all child modules, use a module-managed `Makefile`
40-
GOBIN=$(GOBIN) ./scripts/foreach-module.sh test
40+
git ls-files '**/*go.mod' -z | xargs -0 -I{} bash -xc 'cd $$(dirname {}) && make test'
4141

4242
tidy:
4343
# for the root module, explicitly run the step, to prevent recursive calls
4444
go mod tidy
4545
# then, for all child modules, use a module-managed `Makefile`
46-
GOBIN=$(GOBIN) ./scripts/foreach-module.sh tidy
46+
git ls-files '**/*go.mod' -z | xargs -0 -I{} bash -xc 'cd $$(dirname {}) && make tidy'
4747

4848
tidy-ci:
4949
# for the root module, explicitly run the step, to prevent recursive calls
5050
tidied -verbose
5151
# then, for all child modules, use a module-managed `Makefile`
52-
GOBIN=$(GOBIN) ./scripts/foreach-module.sh tidy-ci
52+
git ls-files '**/*go.mod' -z | xargs -0 -I{} bash -xc 'cd $$(dirname {}) && make tidy-ci'

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,7 @@ We can see that this provides the best means to focus on the implementation of t
393393
- Single-file output
394394
- Support multiple OpenAPI files by having a package-per-OpenAPI file
395395
- Support of OpenAPI 3.0
396-
- OpenAPI 3.1 support is in experimental form, as a complete rewrite using [libopenapi](https://github.com/pb33f/libopenapi). Please look in the
397-
`./experimental` directory. This is potentially the future V3 of `oapi-codegen` and is functionally complete, just not deeply tested yet. Many OpenAPI 3.1
398-
features are supported, such as webhooks and callbacks.
396+
- OpenAPI 3.1 support is [awaiting upstream support](https://github.com/oapi-codegen/oapi-codegen/issues/373)
399397
- Note that this does not include OpenAPI 2.0 (aka Swagger)
400398
- Extract parameters from requests, to reduce work required by your implementation
401399
- Implicit `additionalProperties` are ignored by default ([more details](#additional-properties-additionalproperties))

experimental/Configuration.md

Lines changed: 0 additions & 246 deletions
This file was deleted.

experimental/Makefile

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)