Repository navigation
Implement OpenAPI servers spec and update dependencies for v5.7.2 - #177
Closed
fabriziofiorucci wants to merge 11 commits into
Closed
fabriziofiorucci wants to merge 11 commits into
fabriziofiorucci wants to merge 11 commits into
Conversation
- Support multiple root `.servers[].url` entries in the default upstream block
- Generate dedicated upstreams and `proxy_pass` overrides for path-level `.servers[]`
- Support operation-level `.servers[]` overrides via direct routing or `$request_method` maps (`apigateway-maps.tmpl`)
- Resolve server `{variable}` placeholders (422 if unresolved) and normalize relative URLs
- Added unit tests and `OpenAPI Servers Spec` Postman examples for NGINX Instance Manager and NGINX One Console
- Updated Postman collection and README
- OpenAPI 2.0 fixes for upstream URLs, requests body enforcement, parameters enums - OpenAPI 3.2.x support for QUERY and additionalOperations Update README, FEATURES Added ARCHITECTURE
API Gateway: OpenAPI contract validation and enforcement
Refactored API Gateway templates
* Bump @rjsf/utils from 6.4.1 to 6.11.1 in /webui (#170) Bumps [@rjsf/utils](https://github.com/rjsf-team/react-jsonschema-form) from 6.4.1 to 6.11.1. - [Release notes](https://github.com/rjsf-team/react-jsonschema-form/releases) - [Changelog](https://github.com/rjsf-team/react-jsonschema-form/blob/main/CHANGELOG.md) - [Commits](rjsf-team/react-jsonschema-form@6.4.1...v6.11.1) --- updated-dependencies: - dependency-name: "@rjsf/utils" dependency-version: 6.11.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @rjsf/core from 6.4.2 to 6.11.1 in /webui (#173) Bumps [@rjsf/core](https://github.com/rjsf-team/react-jsonschema-form) from 6.4.2 to 6.11.1. - [Release notes](https://github.com/rjsf-team/react-jsonschema-form/releases) - [Changelog](https://github.com/rjsf-team/react-jsonschema-form/blob/main/CHANGELOG.md) - [Commits](rjsf-team/react-jsonschema-form@6.4.2...v6.11.1) --- updated-dependencies: - dependency-name: "@rjsf/core" dependency-version: 6.11.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @rjsf/validator-ajv8 from 6.4.2 to 6.11.1 in /webui (#174) Bumps [@rjsf/validator-ajv8](https://github.com/rjsf-team/react-jsonschema-form) from 6.4.2 to 6.11.1. - [Release notes](https://github.com/rjsf-team/react-jsonschema-form/releases) - [Changelog](https://github.com/rjsf-team/react-jsonschema-form/blob/main/CHANGELOG.md) - [Commits](rjsf-team/react-jsonschema-form@6.4.2...v6.11.1) --- updated-dependencies: - dependency-name: "@rjsf/validator-ajv8" dependency-version: 6.11.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @testing-library/jest-dom from 6.9.1 to 7.0.1 in /webui (#172) Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 6.9.1 to 7.0.1. - [Release notes](https://github.com/testing-library/jest-dom/releases) - [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md) - [Commits](testing-library/jest-dom@v6.9.1...v7.0.1) --- updated-dependencies: - dependency-name: "@testing-library/jest-dom" dependency-version: 7.0.1 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump eslint from 9.39.5 to 10.15.0 in /webui (#171) Bumps [eslint](https://github.com/eslint/eslint) from 9.39.5 to 10.15.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](eslint/eslint@v9.39.5...v10.15.0) --- updated-dependencies: - dependency-name: eslint dependency-version: 10.15.0 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * WebUI fixes (#175) --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Summary
Prepares NGINX Declarative API v5.7.2 (
etc/config.yamlversion bumped from5.7.1to5.7.2), introducing full OpenAPIserversspecification support, NJS-based OpenAPI request body schema validation, OpenAPI 2.0 / 3.2.x enhancements, refactored documentation and Kubernetes manifests, and WebUI dependency/tooling fixes.Key Changes
API Gateway — OpenAPI
serversSpecification (v5.7).servers[].urlentries in the default upstream block.proxy_passoverrides for path-level.servers[]..servers[]overrides via direct routing or$request_methodmaps (templates/v5.7/apigateway/apigateway-maps.tmpl).{variable}placeholders (returning HTTP422if unresolved) and normalize relative URLs insrc/v5_7/OpenAPIParser.pyandsrc/V5_7_ConfigBuilder.py.API Gateway — Request Body Schema Validation & Template Refactor
templates/v5.7/apigateway/apigateway-body-validator.js.tmpl) and internal post-validation proxy locations (templates/v5.7/apigateway/apigateway-proxy.tmpl), wired intosrc/v5_7/APIGateway.py,templates/v5.7/http.tmpl, andtemplates/v5.7/misc/server-http.tmpl.ngx_http_js_moduleinsrc/v5_7/NIMOutput.pyandsrc/v5_7/NGINXOneOutput.pywhen API Gateway NJS body-validator artifacts are generated.templates/v5.7/apigateway/and update template paths inetc/config.yaml.OpenAPI 2.0 Fixes & OpenAPI 3.2.x Support
QUERYandadditionalOperations(including HTTP method name sanitization in generated NGINX variables).Tests & Postman Collection
tests/test_v5_7_apigateway_servers.pyandtests/test_v5_7_request_body_schema.py.tests/test_openapi_parser.pywithTestOpenAPIServersV57.contrib/postman/NGINX Declarative API.postman_collection.json(addingOpenAPI Servers Specexamples for NGINX Instance Manager and NGINX One Console) andcontrib/postman/README.md.Documentation & Kubernetes Manifests
ARCHITECTURE.mdcovering system components, rendering pipeline, API Gateway runtime flow, GitOps autosync, and queueing.README.md,FEATURES.md,USAGE-v5.7.md,SECURITY.md,contrib/mcp/README.md, andcontrib/helm/nginx-declarative-api/README.md(including updateddocs.f5.comlinks).contrib/kubernetes/nginx-declarative-api.yamlandcontrib/kubernetes/README.md.WebUI Updates & Fixes (
#176)@rjsf/core,@rjsf/utils,@rjsf/validator-ajv86.11.1;@testing-library/jest-dom7.0.1;eslint10.15.0).typescriptto^6.0.0inwebui/package.json(devDependenciesandoverrides) andwebui/package-lock.jsonsonpm run lint(@typescript-eslint/eslint-plugin) succeeds.__dirnamewithimport.meta.dirnameinwebui/vite.config.ts.Verification
pytest tests/ -v --cov=src)npm run lint,npm run build,npm run test:coverage -- --run)build-imagesworkflow)Checklist
Before creating a PR, run through this checklist and mark each as complete:
README.mdand/orCHANGELOG.md).