-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
Evaluate JsonRequired Attribute #682
Comments
Have you read the documentation? https://docs.json-everything.net/schema/schemagen/schema-generation/#schema-schemagen-nullability The attribute you're looking for is |
Due to Required Attribure is more specific for |
I don't understand your question then. How do you want to use the
|
just after evaluation should be contained errors due to RequiredString is marked as required with JsonRequired attribute. is it possible? |
Your issue is in the schema generation, which doesn't recognize class MyClass
{
[Required]
[JsonRequired]
public string RequiredString { get; set; }
} This will add the |
Documentation
Nuget Package
JsonSchema.Net.Generation
Package Version
5.4.3
How can I help? Please provide as much context as possible.
How to evaluate json schema with object which has properties with JsonRequiredAttribute?
I have written an example, but there are no errors in the result.
Thanks for any advice
Code of Conduct
The text was updated successfully, but these errors were encountered: