wso2 / wso2/api-platform

Add schema validation support for WebBrokerApi in DeployAPIConfiguration

Open
#1,956 0 comments 0 reactions 1 assignee View on GitHub

@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.Validator to support api.WebBrokerApi.
  • Uncomment and enable the s.validator.Validate(&c) call in the api.WebBrokerApi case of the post-render validation switch.
  • Ensure invalid payloads are rejected at the REST API layer with a structured ValidationErrorListError response.

Context

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.