-
Notifications
You must be signed in to change notification settings - Fork 281
Add support for handling unrecognized keywords #1982
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
Conversation
| UnresolvedReference = schema?.UnresolvedReference ?? UnresolvedReference; | ||
| Reference = schema?.Reference != null ? new(schema?.Reference) : null; | ||
| Annotations = schema?.Annotations != null ? new Dictionary<string, object>(schema?.Annotations) : null; | ||
| UnrecognizedKeywords = schema?.UnrecognizedKeywords != null ? new Dictionary<string, JsonNode>(schema?.UnrecognizedKeywords) : null; |
Check warning
Code scanning / CodeQL
Virtual call in constructor or destructor Warning
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
…izer.cs" This reverts commit 146b44f.
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
| Pattern = schema?.Pattern ?? Pattern; | ||
| MultipleOf = schema?.MultipleOf ?? MultipleOf; | ||
| _default = schema?.Default != null ? JsonNodeCloneHelper.Clone(schema?.Default) : null; | ||
| Default = schema?.Default != null ? JsonNodeCloneHelper.Clone(schema?.Default) : null; |
Check warning
Code scanning / CodeQL
Virtual call in constructor or destructor Warning
| Discriminator = schema?.Discriminator != null ? new(schema?.Discriminator) : null; | ||
| _example = schema?.Example != null ? JsonNodeCloneHelper.Clone(schema?.Example) : null; | ||
| _examples = schema?.Examples != null ? new List<JsonNode>(schema.Examples) : null; | ||
| Example = schema?.Example != null ? JsonNodeCloneHelper.Clone(schema?.Example) : null; |
Check warning
Code scanning / CodeQL
Virtual call in constructor or destructor Warning
| _example = schema?.Example != null ? JsonNodeCloneHelper.Clone(schema?.Example) : null; | ||
| _examples = schema?.Examples != null ? new List<JsonNode>(schema.Examples) : null; | ||
| Example = schema?.Example != null ? JsonNodeCloneHelper.Clone(schema?.Example) : null; | ||
| Examples = schema?.Examples != null ? new List<JsonNode>(schema.Examples) : null; |
Check warning
Code scanning / CodeQL
Virtual call in constructor or destructor Warning
|




Fixes #1970