Skip to content

fix(ns-asyncapi-2): add missing reference metadata to server variables#5098

Merged
glowcloud merged 3 commits intomainfrom
fix/missing-server-variables-metadata
Jan 16, 2026
Merged

fix(ns-asyncapi-2): add missing reference metadata to server variables#5098
glowcloud merged 3 commits intomainfrom
fix/missing-server-variables-metadata

Conversation

@glowcloud
Copy link
Contributor

Adds missing reference metadata in Server Variables Visitor. The missing metadata caused incorrect validation of the variables field in Server Object when one of the variables had a $ref field.

Before:
variables_before

After:
variables_after

The validation error will correctly show up only if the variable is of invalid type:

variables_after_2

@glowcloud glowcloud merged commit 0984114 into main Jan 16, 2026
9 checks passed
@glowcloud glowcloud deleted the fix/missing-server-variables-metadata branch January 16, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AsyncAPI 2.x bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants