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
+4
-1
@@ -30,15 +30,18 @@ lint: bundle ## Lint both bundled contracts
|
||||
.PHONY: check
|
||||
check: lint ## Build and lint both contract bundles
|
||||
PYTHONDONTWRITEBYTECODE=1 "$(CODEGEN_PYTHON)" -m unittest discover -s "$(ROOT_DIR)/scripts" -p 'test_merge_schemas.py'
|
||||
PYTHONDONTWRITEBYTECODE=1 "$(CODEGEN_PYTHON)" -m unittest discover -s "$(ROOT_DIR)/scripts" -p 'test_contract_copies.py'
|
||||
|
||||
.PHONY: check-compat
|
||||
check-compat: bundle ## Compare the public contract with API_BASE_REF
|
||||
API_BASE_REF="$(API_BASE_REF)" REDOCLY="$(REDOCLY)" CODEGEN_PYTHON="$(CODEGEN_PYTHON)" bash "$(ROOT_DIR)/scripts/check-api-compat.sh"
|
||||
|
||||
.PHONY: check-toolchain
|
||||
check-toolchain: ## Check OpenAPI 3.2.0 support and generated validation behavior
|
||||
check-toolchain: ## Check OpenAPI 3.2.0 support with ogen, Orval, and Pydantic on the compatibility fixture
|
||||
"$(REDOCLY)" lint --config "$(API_DIR)/redocly.yaml" "$(API_DIR)/testdata/openapi-3.2.0.yml"
|
||||
$(MAKE) -C "$(ROOT_DIR)/backend" check-ogen-compat
|
||||
$(MAKE) -C "$(ROOT_DIR)/frontend" check-orval-compat
|
||||
$(MAKE) -C "$(ROOT_DIR)/ml" check-pydantic-compat
|
||||
|
||||
.PHONY: fmt
|
||||
fmt: ## Format handwritten OpenAPI YAML files
|
||||
|
||||
Reference in new issue
Block a user