-
Notifications
You must be signed in to change notification settings - Fork 242
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
base: fix/tag-reference
Are you sure you want to change the base?
fix/references cleanup #2111
Conversation
Signed-off-by: Vincent Biret <[email protected]>
…s of references to schemas Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
fix: removes extraneuous null prop op in copy constructor Signed-off-by: Vincent Biret <[email protected]>
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
Signed-off-by: Vincent Biret <[email protected]>
Quality Gate failedFailed conditions |
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