We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I get an error when calling ToJson. I don't understand why it works fine when the type is simply Customer, but I encounter an error when it's a list.
ToJson
public record Customer(string FirstName, string LastName) { }
var settings = new SystemTextJsonSchemaGeneratorSettings(); var document = new OpenApiDocument(); JsonSchemaGenerator generator = new(settings); OpenApiSchemaResolver resolver = new(document, settings); var customerListType = typeof(List<Customer>); var schema = generator.Generate(customerListType, resolver); var jschema = schema.ToJson();
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I get an error when calling
ToJson
.I don't understand why it works fine when the type is simply Customer, but I encounter an error when it's a list.
The text was updated successfully, but these errors were encountered: