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

feat: adds deconstructor to read result #2024

Merged
merged 2 commits into from
Dec 24, 2024
Merged

feat: adds deconstructor to read result #2024

merged 2 commits into from
Dec 24, 2024

Conversation

baywet
Copy link
Member

@baywet baywet commented Dec 23, 2024

No description provided.

Copy link
Member

@captainsafia captainsafia left a comment

Choose a reason for hiding this comment

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

I like this proposal for making it a bit easier to unwrap the document and diagnostics out of the read result!

This was referenced Dec 24, 2024
/// <summary>
/// Deconstructs the result for easier assignment on the client application.
/// </summary>
public void Deconstruct(out OpenApiDocument document, out OpenApiDiagnostic diagnostic)
Copy link
Member

Choose a reason for hiding this comment

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

So much magic in the C# language these days!!!

@baywet baywet merged commit 79336f6 into dev Dec 24, 2024
12 checks passed
@baywet baywet deleted the feat/result-deconstruct branch December 24, 2024 14:18
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.

3 participants