feat(api): define public problem errors, pagination, and retry contract
This commit is contained in:
1 parent
b2f6e87bfe
commit
565ca94bbb
86 files changed
+8200
-154
No files matched your search
+1
-1
@@ -79,7 +79,7 @@ mocks: ## Generate configured mocks when interfaces are selected
|
||||
fi
|
||||
|
||||
.PHONY: check-ogen-compat
|
||||
check-ogen-compat: ## Verify OpenAPI 3.2 nullable values, validation, and additionalOperations
|
||||
check-ogen-compat: ## Verify OpenAPI 3.2 features and API error, pagination, and retry conventions with ogen
|
||||
@set -euo pipefail; mkdir -p bin; temporary_dir=$$(mktemp -d "$(CURDIR)/bin/ogen-compat.XXXXXX"); trap 'rm -rf "$$temporary_dir"' EXIT; \
|
||||
$(GO_TOOL) ogen -config codegen/ogen-compat.yml --target "$$temporary_dir" --package compat --clean ../api/testdata/openapi-3.2.0.yml; \
|
||||
cp testdata/ogen_compat_test.go "$$temporary_dir/ogen_compat_test.go"; \
|
||||
|
||||
Reference in new issue
Block a user