Skip to content

Conversation

@jason-lynch
Copy link
Member

Summary

The client-side response validation Goa generated makes it impossible to add new required fields or enum values to server responses without disrupting clients connected to older versions of the Control Plane server. Adding new fields is typically a backward-compatible change, but in this case, the client will return a validation error when the server does not include the response.

This commit adds a small Goa plugin to produce an empty validation function for server response bodies.

Changes

  • Added plugin to api/plugins and api/apiv1/design/api.go
  • Regenerated Goa files with make -C api generate

Testing

Shouldn't have any noticeable affect until we add a new required field or enum value to a server response.

The client-side response validation that Goa generated makes it
impossible to add new required fields to server responses without
disrupting clients that are connected to older versions of the Control
Plane server. Adding new fields is typically a backwards compatible
change, but in this case the client will return a validation error when
the server does not include the response.

This commit adds a small Goa plugin to produce an empty validation
function for server response bodies.
@coderabbitai
Copy link

coderabbitai bot commented Jan 13, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@rshoemaker rshoemaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Base automatically changed from build/upgrade-to-go-1.25 to main January 13, 2026 22:38
@jason-lynch jason-lynch merged commit c18eab5 into main Jan 13, 2026
3 checks passed
@jason-lynch jason-lynch deleted the feat/remove-client-side-validation branch January 13, 2026 22:39
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.

3 participants