Skip to content

Conversation

@MaggieKimani1
Copy link
Contributor

@MaggieKimani1 MaggieKimani1 commented Apr 15, 2024

Refactors the current custom JSON schema validation logic in favor of JsonSchema.NET's schema.Evaluate() that performs validation of a Json node instance against an existing schema.
Fixes #1620

/// </summary>
[SchemaKeyword(Name)]
[SchemaSpecVersion(SpecVersion.Draft202012)]
public class NullableKeyword : IJsonSchemaKeyword
Copy link
Member

Choose a reason for hiding this comment

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

Nullable is not a supported keyword in OpenAPI 3.1 It is implemented by assigning an array to the type property and including null as one of the values in the array.

@darrelmiller darrelmiller merged commit 5015239 into release/2.0.0 May 8, 2024
@darrelmiller darrelmiller deleted the mk/validate-json-schema branch May 8, 2024 03:24
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