-
Notifications
You must be signed in to change notification settings - Fork 241
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
dev #2028
Merged
dev #2028
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
011e72c
fix: reverts to a regular variable for the tag value
baywet e7c9e1b
ci: fix artefacts path
baywet 7c9199b
Merge pull request #2019 from microsoft/fix/ci-tag-value
baywet e29e24c
fix: enum description number values
baywet d8c1593
feat: adds deconstructor to read result
baywet 8902656
chore: adds test for deconstructor
baywet da6396c
chore(deps): bump Verify.Xunit from 28.6.1 to 28.7.0
dependabot[bot] 5bc683b
Merge pull request #2025 from microsoft/dependabot/nuget/Verify.Xunit…
baywet cd13481
fix: specifies encoding for net fx
baywet 17649dc
chore: bumps preview version
baywet ff7b4a9
Merge pull request #2023 from microsoft/fix/enum-description-int-values
baywet 79336f6
Merge pull request #2024 from microsoft/feat/result-deconstruct
baywet 95dafe6
Merge pull request #2026 from microsoft/fix/null-encoding
baywet f5fb254
Merge pull request #2027 from microsoft/chore/release
baywet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
src/Microsoft.OpenApi.Readers/Microsoft.OpenApi.Readers.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Xunit; | ||
using Microsoft.OpenApi.Reader; | ||
using Microsoft.OpenApi.Models; | ||
|
||
namespace Microsoft.OpenApi.Tests.Reader; | ||
|
||
public class ReadResultTests | ||
{ | ||
[Fact] | ||
public void Deconstructs() | ||
{ | ||
var readResult = new ReadResult() | ||
{ | ||
Document = new OpenApiDocument(), | ||
Diagnostic = new OpenApiDiagnostic() | ||
}; | ||
var (document, diagnostic) = readResult; | ||
Assert.Equal(readResult.Document, document); | ||
Assert.Equal(readResult.Diagnostic, diagnostic); | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check notice
Code scanning / CodeQL
Missed ternary opportunity Note