Skip to content

Support baking different scenarios of oneOf usage in openapi spec #773

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

ykim-akamai
Copy link
Contributor

📝 Description

Previously, the schema expected oneOf to be defined strictly within the properties block of the YAML file, limiting flexibility in structuring the schema. This update allows oneOf to be defined outside of properties in yaml files, e.g. schema definitions like below:

type: object
description: |
  One of the following interface types: VPC, public, or VLAN.
oneOf:
- $ref: linode-interface-public.yaml
- $ref: linode-interface-vlan.yaml
- $ref: linode-interface-vpc.yaml

✔️ How to Test

Download openapi.json file from Akamai git source v4.199.0

SPEC=/path/to/openapi.json make test-int

📷 Preview

If applicable, include a screenshot or code snippet of this change. Otherwise, please remove this section.

@ykim-akamai ykim-akamai requested a review from a team as a code owner May 15, 2025 15:19
@ykim-akamai ykim-akamai requested review from lgarber-akamai and ezilber-akamai and removed request for a team May 15, 2025 15:19
@ykim-akamai ykim-akamai added the improvement for improvements in existing functionality in the changelog. label May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement for improvements in existing functionality in the changelog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant