Skip to content

Implement OpenAPI servers spec for API Gateway and update dependencies - #178

Merged
fabriziofiorucci merged 12 commits into
mainfrom
5.7.2
Nov 19, 2026
Merged

fabriziofiorucci merged 12 commits into
mainfrom
5.7.2

Conversation

@fabriziofiorucci

Copy link
Copy Markdown
Collaborator

Proposed changes

Summary

Prepares NGINX Declarative API v5.7.2 (etc/config.yaml version bumped from 5.7.1 to 5.7.2), introducing full OpenAPI servers specification 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 servers Specification (v5.7)

  • 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 (templates/v5.7/apigateway/apigateway-maps.tmpl).
  • Resolve server {variable} placeholders (returning HTTP 422 if unresolved) and normalize relative URLs in src/v5_7/OpenAPIParser.py and src/V5_7_ConfigBuilder.py.

API Gateway — Request Body Schema Validation & Template Refactor

  • Add NJS request body schema validator generation (templates/v5.7/apigateway/apigateway-body-validator.js.tmpl) and internal post-validation proxy locations (templates/v5.7/apigateway/apigateway-proxy.tmpl), wired into src/v5_7/APIGateway.py, templates/v5.7/http.tmpl, and templates/v5.7/misc/server-http.tmpl.
  • Automatically include ngx_http_js_module in src/v5_7/NIMOutput.py and src/v5_7/NGINXOneOutput.py when API Gateway NJS body-validator artifacts are generated.
  • Reorganize API Gateway Jinja2 templates under templates/v5.7/apigateway/ and update template paths in etc/config.yaml.

OpenAPI 2.0 Fixes & OpenAPI 3.2.x Support

  • Fix OpenAPI 2.0 handling for upstream URLs, request body enforcement, and parameter enums.
  • Add OpenAPI 3.2.x support for QUERY and additionalOperations (including HTTP method name sanitization in generated NGINX variables).

Tests & Postman Collection

  • Add unit test suites: tests/test_v5_7_apigateway_servers.py and tests/test_v5_7_request_body_schema.py.
  • Expand tests/test_openapi_parser.py with TestOpenAPIServersV57.
  • Update contrib/postman/NGINX Declarative API.postman_collection.json (adding OpenAPI Servers Spec examples for NGINX Instance Manager and NGINX One Console) and contrib/postman/README.md.

Documentation & Kubernetes Manifests

  • Add ARCHITECTURE.md covering system components, rendering pipeline, API Gateway runtime flow, GitOps autosync, and queueing.
  • Refactor and update README.md, FEATURES.md, USAGE-v5.7.md, SECURITY.md, contrib/mcp/README.md, and contrib/helm/nginx-declarative-api/README.md (including updated docs.f5.com links).
  • Update contrib/kubernetes/nginx-declarative-api.yaml and contrib/kubernetes/README.md.

WebUI Updates & Fixes (#176)

  • Roll forward WebUI dependency updates (@rjsf/core, @rjsf/utils, @rjsf/validator-ajv8 6.11.1; @testing-library/jest-dom 7.0.1; eslint 10.15.0).
  • Align typescript to ^6.0.0 in webui/package.json (devDependencies and overrides) and webui/package-lock.json so npm run lint (@typescript-eslint/eslint-plugin) succeeds.
  • Replace __dirname with import.meta.dirname in webui/vite.config.ts.

Verification

  • Python unit tests (pytest tests/ -v --cov=src)
  • WebUI lint, build, and tests (npm run lint, npm run build, npm run test:coverage -- --run)
  • Container builds (build-images workflow)

Checklist

Before creating a PR, run through this checklist and mark each as complete:

fabriziofiorucci and others added 12 commits November 17, 2026 09:36
- 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>
@fabriziofiorucci
fabriziofiorucci merged commit b3d6fc8 into main Nov 19, 2026
2 checks passed
@fabriziofiorucci
fabriziofiorucci deleted the 5.7.2 branch November 19, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant