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/reference copy #2046

Draft
wants to merge 9 commits into
base: dev
Choose a base branch
from
Draft

fix/reference copy #2046

wants to merge 9 commits into from

Conversation

baywet
Copy link
Member

@baywet baywet commented Jan 8, 2025

partial #1998

@baywet baywet self-assigned this Jan 8, 2025
{
internal class CopyReferences : OpenApiVisitorBase
private readonly OpenApiDocument _target = target;
public OpenApiComponents Components = new();

Check notice

Code scanning / CodeQL

Missed 'readonly' opportunity Note

Field 'Components' can be 'readonly'.
@baywet baywet added this to the v2 - preview5 milestone Jan 8, 2025
@baywet
Copy link
Member Author

baywet commented Jan 17, 2025

@MaggieKimani1 I just had a thought: we could define a generic IOpenApiReferenceable interface, that derives from the existing interface, and defines the target property. Thoughts?

@MaggieKimani1
Copy link
Contributor

@MaggieKimani1 I just had a thought: we could define a generic IOpenApiReferenceable interface, that derives from the existing interface, and defines the target property. Thoughts?

Yeah this seems like a cleaner approach for designing the proxy classes. Let me implement this.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
27.2% 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.

2 participants