Add schema validation support for WebBrokerApi in DeployAPIConfiguration
Open
@senthuran16 is already working on this.
Since May 14, 2026.
- Dominant language
- Go
- Stars
- 71
- Forks
- 111
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 110
Description
Summary
The WebBrokerApi branch in DeployAPIConfiguration (gateway/gateway-controller/pkg/utils/api_deployment.go) currently bypasses schema validation. Malformed configs (e.g., invalid policy version patterns) can be persisted and only fail later during snapshot or runtime translation.
Required work
- Extend the
config.Validatorto supportapi.WebBrokerApi. - Uncomment and enable the
s.validator.Validate(&c)call in theapi.WebBrokerApicase of the post-render validation switch. - Ensure invalid payloads are rejected at the REST API layer with a structured
ValidationErrorListErrorresponse.
Context
- Raised in PR #1954 (comment: https://github.com/wso2/api-platform/pull/1954#discussion_r3239562686) by @coderabbitai.
- Related discussion also tracked in PR #1944.
- Requested by: @senthuran16
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.