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

fix/references cleanup #2111

Open
wants to merge 12 commits into
base: fix/tag-reference
Choose a base branch
from
Open

Conversation

baywet
Copy link
Member

@baywet baywet commented Jan 30, 2025

fixes #1998
closes #2088
review #2109 first
This PR switches from copy constructors to dedicated methods to enable polymorphism and avoid accidental duplicatations of the object model

var updatedSchema = paramSchema switch {
OpenApiSchema s => s, // we already have a copy
// we have a copy of a reference but don't want to mutate the source schema
// TODO might need recursive resolution of references here
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on this one I have a question pending internally with @darrelmiller

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

confirmed with Darrel, references of references are possible.
I'll stand up another PR to update the return type of the target field, and enable some recursion work.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
60.4% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

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.

1 participant