-
Notifications
You must be signed in to change notification settings - Fork 232
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
JsonSchema.NET Integration #1278
JsonSchema.NET Integration #1278
Conversation
MaggieKimani1
commented
Jun 19, 2023
•
edited by baywet
Loading
edited by baywet
- Resolves integration of the JsonSchema.NET library for complete JSON schema support as part of implementing OpenAPI 3.1.
- Fixes:
- fixes Add OpenAPI 3.1 Support #795
- fixes ExclusiveMinimum and ExclusiveMaximum change from type boolean to type number #1271,
- fixes Enable upcasting from V2/V3 to 3.1 #1272,
- fixes Map nullable to null type #1273,
- fixes Add support for $schema, $id, $comment, $vocabulary, $dynamicRef, $dynamicAnchor, $recursiveAnchor, $recursiveRef #1274,
- fixes Support the core and validation keywords from the latest JSON schema specification (JSON Schema Specification Draft 2020-12) #1275
…-json-schema-library
…eserializer and cleaning up code
…t how to perform upcasting from OpenApiSchema to JsonSchema
…/use-json-node-for-parsing"
…' into mk/integrate-json-schema-library
src/Microsoft.OpenApi.Readers/V31/OpenApiSecurityRequirementDeserializer.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.OpenApi/Models/References/OpenApiHeaderReference.cs
Outdated
Show resolved
Hide resolved
@@ -29,7 +29,7 @@ public abstract class ValidationRule | |||
/// Class containing validation rule logic for <see cref="IOpenApiElement"/>. | |||
/// </summary> | |||
/// <typeparam name="T"></typeparam> | |||
public class ValidationRule<T> : ValidationRule where T : IOpenApiElement | |||
public class ValidationRule<T> : ValidationRule |
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.
Ugh. This is because JsonSchema doesn't implement this interface. Hmm, that seems like it is going to cause us problems.
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.
It's looking good. I just added a few comments that we should address. Specifically those related to dependencies on the YAML libraries.
SonarCloud Quality Gate failed. 5 Bugs 2.1% Coverage Catch issues before they fail your Quality Gate with our IDE extension SonarLint |