-
Notifications
You must be signed in to change notification settings - Fork 279
Fixes bugs and failing tests #1503
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
Merged
Merged
Changes from 52 commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
4bc07e3
Handle number overflow during parsing of min/max values
Robulane d06a89d
Merge pull request #1480 from Robulane/users/robulane/DontCrash
baywet 47ef775
Configure the settings file path to be relative to the current workin…
MaggieKimani1 85dafb5
Upgrade lib versions
MaggieKimani1 9037ca4
Merge pull request #1481 from microsoft/mk/fix-hidi-relative-path
MaggieKimani1 fecac2a
Bump Verify.Xunit from 22.5.0 to 22.6.0
dependabot[bot] 05c5615
Merge pull request #1483 from microsoft/dependabot/nuget/Verify.Xunit…
baywet b786bc0
Update bug_report.md
MaggieKimani1 2e77c9c
Merge pull request #1484 from microsoft/mk/update-issue-template
MaggieKimani1 66b8167
Bump Moq from 4.20.69 to 4.20.70
dependabot[bot] 57084f4
Merge pull request #1485 from microsoft/dependabot/nuget/Moq-4.20.70
baywet cf2106a
Update public API interface
MaggieKimani1 10c69a8
Create Json schema mappings with references in components
MaggieKimani1 1ac5b1b
Add spec version param for writing out $refs for different versions
MaggieKimani1 9ed4887
Clean up code and tests
MaggieKimani1 6c88daa
Remove dependency on external lib that uses YamlDotNet to reduce ambi…
MaggieKimani1 80e7d84
Throw an exception if referenced schema does not exist
MaggieKimani1 9198a2c
code cleanup
MaggieKimani1 bfacb4e
Bump Microsoft.OData.Edm from 7.18.0 to 7.19.0
dependabot[bot] d1cf89f
Merge pull request #1488 from microsoft/dependabot/nuget/Microsoft.OD…
baywet 5b40826
Fix unresolved references in OpenApiWalker
dldl-cmd 8a40801
Fix culture dependency in ParseDecimalWithFallbackOnOverflow_Overflow…
dldl-cmd c2ca883
Merge pull request #1492 from dldl-cmd/fix_ParseDecimalWithFallbackOn…
MaggieKimani1 ffc87ca
Use keyword examples instead of example
irvinesunday 7aa2e32
Bump PublicApiGenerator from 11.0.0 to 11.1.0
dependabot[bot] 030d397
Bump Verify.Xunit from 22.6.0 to 22.7.1
dependabot[bot] 7c20dee
Bump actions/setup-java from 3 to 4
dependabot[bot] 252d08c
Bump actions/setup-dotnet from 3 to 4
dependabot[bot] 47636da
Merge pull request #1496 from microsoft/dependabot/github_actions/act…
baywet d3fa9ef
Merge pull request #1494 from microsoft/dependabot/nuget/Verify.Xunit…
baywet 7d49674
Merge pull request #1493 from microsoft/dependabot/nuget/PublicApiGen…
baywet f6777e4
Merge pull request #1495 from microsoft/dependabot/github_actions/act…
andrueastman 2b1d082
Merge pull request #1491 from dldl-cmd/openapiwalker_references
MaggieKimani1 3e159d2
Serialize JsonSchema
irvinesunday ae52035
Refactor code to resolve Oneof and AnyOf schemas
MaggieKimani1 4ca2f87
Clean up tests
MaggieKimani1 6fd73a0
Removing irrelevant docs
timheuer 3c76bf7
Merge pull request #1497 from timheuer/vnext
baywet 8491402
Bump Verify.Xunit from 22.7.1 to 22.8.0
dependabot[bot] 808c868
Merge pull request #1498 from microsoft/dependabot/nuget/Verify.Xunit…
baywet fce5388
Bump Microsoft.OpenApi.OData from 1.5.0-preview9 to 1.5.0
dependabot[bot] 05e43a4
Merge pull request #1500 from microsoft/dependabot/nuget/Microsoft.Op…
baywet 2f7307f
Bump Microsoft.OData.Edm from 7.19.0 to 7.20.0
dependabot[bot] de67e95
Merge pull request #1499 from microsoft/dependabot/nuget/Microsoft.OD…
baywet 0934c91
Bump xunit.runner.visualstudio from 2.5.4 to 2.5.5
dependabot[bot] 9ad7599
Merge pull request #1501 from microsoft/dependabot/nuget/xunit.runner…
baywet 3ebe0f0
Bump xunit from 2.6.2 to 2.6.3
dependabot[bot] ffd84ed
Merge pull request #1502 from microsoft/dependabot/nuget/xunit-2.6.3
baywet 807890c
Merge remote-tracking branch 'origin/is/release/2.0.0/fix-breaking-te…
MaggieKimani1 964b751
Write out examples
MaggieKimani1 94d8c8a
Clean up tests
MaggieKimani1 f9aea51
Merge remote-tracking branch 'origin/vnext' into mk/fix-bugs-and-fail…
MaggieKimani1 8a48a77
Use ternary operator and compound assignment.
MaggieKimani1 d6a6b53
Update src/Microsoft.OpenApi/Validations/Rules/JsonSchemaRules.cs
MaggieKimani1 a9048c1
Update src/Microsoft.OpenApi/Validations/Rules/JsonSchemaRules.cs
MaggieKimani1 cb8288b
Update src/Microsoft.OpenApi/Validations/Rules/JsonSchemaRules.cs
MaggieKimani1 60d6993
Remove commented out code
MaggieKimani1 d190669
Merge branch 'mk/fix-bugs-and-failing-tests' of https://github.com/mi…
MaggieKimani1 0880d82
Remove null check
MaggieKimani1 dedf3a2
Use pattern matching and the native count extension method
MaggieKimani1 e585f4c
code cleanup
MaggieKimani1 0ed8e45
Apply suggestions from code review
baywet 744d045
- updates public API
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,35 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT license. | ||
|
|
||
| using System; | ||
| using System.Globalization; | ||
|
|
||
| namespace Microsoft.OpenApi.Readers.ParseNodes | ||
| { | ||
| /// <summary> | ||
| /// Useful tools to parse data | ||
| /// </summary> | ||
| internal class ParserHelper | ||
| { | ||
| /// <summary> | ||
| /// Parses decimal in invariant culture. | ||
| /// If the decimal is too big or small, it returns the default value | ||
| /// | ||
| /// Note: sometimes developers put Double.MaxValue or Long.MaxValue as min/max values for numbers in json schema even if their numbers are not expected to be that big/small. | ||
| /// As we have already released the library with Decimal type for Max/Min, let's not introduce the breaking change and just fallback to Decimal.Max / Min. This should satisfy almost every scenario. | ||
| /// We can revisit this if somebody really needs to have double or long here. | ||
| /// </summary> | ||
| /// <returns></returns> | ||
| public static decimal ParseDecimalWithFallbackOnOverflow(string value, decimal defaultValue) | ||
| { | ||
| try | ||
| { | ||
| return decimal.Parse(value, NumberStyles.Float, CultureInfo.InvariantCulture); | ||
| } | ||
| catch (OverflowException) | ||
| { | ||
| return defaultValue; | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.