Skip to content

Add schema validation support for WebBrokerApi in DeployAPIConfiguration #1956

@coderabbitai

Description

@coderabbitai

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions