Skip to content
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

openapi3: use __origin__ to minimize collisions #1057

Merged
merged 1 commit into from
Mar 10, 2025

Conversation

reuvenharrison
Copy link
Contributor

The PR is minimizes the chances of YAML files that fail to load with IncludeOrigin enabled.

Explanation:

When IncludeOrigin is set to true, the loading process adds keys with information about the origin of the YAML objects.
If the original YAML file has a preexisting key with the same name as the key we add, the load will fail.
In order to reduce the likelihood of such failures, I renamed the YAML key we add from origin to __origin__.

@reuvenharrison reuvenharrison changed the title use __origin__ to minimize collisions openapi3: use __origin__ to minimize collisions Mar 9, 2025
@fenollp fenollp linked an issue Mar 10, 2025 that may be closed by this pull request
@fenollp fenollp merged commit 2d3e67a into getkin:master Mar 10, 2025
5 checks passed
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.

Field named "origin" is not loaded
2 participants