Skylm808 opened a new pull request, #948:
URL: https://github.com/apache/dubbo-go-pixiu/pull/948

   **What this PR does**:
   
   Adds a dedicated `dgp.filter.http.openapi` HTTP filter for OpenAPI-driven 
request validation.
   
   The filter loads a local OpenAPI 3.0/3.1/3.2 document with `libopenapi` and 
validates incoming requests with `libopenapi-validator` before forwarding them 
upstream. It supports OpenAPI path/method matching, templated paths such as 
`/users/{id}`, path/query/header parameter validation, and JSON request body 
schema validation.
   
   This PR also removes the previous custom OpenAPI validation code from 
`apiconfig`, keeping `apiconfig` focused on Pixiu API route matching and 
metadata.
   
   **Which issue(s) this PR fixes**:
   
   Fixes #857
   
   **Special notes for your reviewer**:
   
   OpenAPI `security` validation is intentionally disabled in this filter. 
Authentication and authorization should continue to be handled by dedicated 
filters such as JWT, OPA, or SAML.
   
   If a request path and method are not declared in the OpenAPI document, this 
filter skips validation and lets the request continue.
   
   **Does this PR introduce a user-facing change?**:
   
   ```release-note
   Adds a dedicated OpenAPI request validation filter, 
`dgp.filter.http.openapi`, backed by libopenapi and libopenapi-validator.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to