Skip to content

Conversation

irees
Copy link

@irees irees commented Aug 24, 2024

I was pleased to see the recent merging of #901, and this is a minor follow-on to that PR.

901 added support for reading x- extensions when using $ref. This extends this by round-tripping x- extensions back out to JSON / YAML.

I followed 901 to see what changes to make, since much of the code is auto-generated. I will open this as a Draft PR; if maintainers are OK with the basic idea, I will finish adding tests for the round-trip behavior and ask for formal review.

@irees
Copy link
Author

irees commented Aug 27, 2024

I read through more of the package, and in the process of reworking this to be consistent and work more correctly.

@irees irees marked this pull request as ready for review August 27, 2024 11:23
@irees
Copy link
Author

irees commented Aug 30, 2024

@fenollp Would you be open to taking a look at this PR?

@fenollp
Copy link
Collaborator

fenollp commented Aug 25, 2025

Hi @irees Sorry for the delay.
I believe this is a reasonable addition and that it doesn't require checking the AllowExtensionsWithRef flags.
Feel free to rebase and continue this.

@irees
Copy link
Author

irees commented Sep 15, 2025

@fenollp Thank you for your response. I've rebased. Let me know if anything else is needed.

I am currently using my fork as part of the doc tools for my project, so it is actively used and tested.

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.

2 participants