Replies: 1 comment
-
Im beginning to think it has to do with the RequireNotNullableSchemaFilter, because when I dont use that filter, I haven't gotten any numbers in my DTO's. However, this is not an option for me, because I need to require those properties in the OpenAPI spc |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
Unsure if I should've created an issue or not, but here we are. I am using Microsoft.AspNetCore.OpenApi 9.0.3 and sometimes, when there are no code changes and I re-build the code and access the Scalar web interface (and thus the OpenAPI spec), it adds a trialing number to my model name. Often the same, but seems at random as well.
For instance, I got a
UserDto
and now it showsUserDto2
in the OpenAPI. There is noUserDto
as a model in the API spec.Often, stopping the application and cleaning, then re-run works.
This is how my config looks like:
Is there a way I can debug this? I create my typescript interfaces based off these model names, so adding a trailing number every now and then complicates stuff.
Beta Was this translation helpful? Give feedback.
All reactions