Skip to content

Fix several issues with oneof responses - #924

Open
ezilber-akamai wants to merge 4 commits into
linode:devfrom
ezilber-akamai:fix/cli-oneof-response-property-overwriting
Open

Fix several issues with oneof responses#924
ezilber-akamai wants to merge 4 commits into
linode:devfrom
ezilber-akamai:fix/cli-oneof-response-property-overwriting

Conversation

@ezilber-akamai

@ezilber-akamai ezilber-akamai commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

📝 Description

Fixed oneOf response properties being overwritten during schema aggregation. When a oneOf defines the same property across multiple branches, keep the most complete definition instead of letting a later, emptier branch overwrite it. This fixes fields like public.ipv6.ranges being dropped from output.

Also fixed an issue with oneOf schemas in _parse_response_model that was causing nested response data to be displayed incorrectly.

✔️ How to Test

make test-unit
make test-int TEST_CASE=test_interface_update (was previously failing)
make test-int TEST_SUITE=firewalls (was previously failing)

@ezilber-akamai
ezilber-akamai requested a review from a team as a code owner September 9, 2026 15:16
@ezilber-akamai ezilber-akamai added the bugfix for any bug fixes in the changelog. label Sep 9, 2026
@ezilber-akamai
ezilber-akamai requested a review from a team as a code owner September 9, 2026 15:16
@ezilber-akamai ezilber-akamai added the hotfix for hotfixes that do not have a corresponding Jira ticket label Sep 9, 2026
@ezilber-akamai
ezilber-akamai requested review from jriddle-linode and mawilk90 and removed request for a team September 9, 2026 15:16
@ezilber-akamai ezilber-akamai changed the title Fixed issue with oneof responses getting overwritten during schema aggregation Fix several issues with oneof responses Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix for any bug fixes in the changelog. hotfix for hotfixes that do not have a corresponding Jira ticket

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant