Rico Suter
Rico Suter
Probably you need to properly describe inheritance in openapi: https://github.com/RicoSuter/NJsonSchema/wiki/Inheritance
Probably in the context of the generator the ConfigureServices method throws (because eg the configuration is null) - you need to check there in which context you are (generating or...
It’s best to configure with nswagstudio and save the config file in the proj dir, eg nswag.json and then run it with “nswag run nswag.json /runtime:NetCore22” etc
Do you have a complete stack trace?
Have you tried to use /project instead of /assembly with /nobuild:true ?
If you run with /project in an msbuild task it is important to set /nobuild to true as otherwise it will indefinitely build the project... (infinite recursion)
There are samples for this in the /samples directory I think.
Can you fix the conflicts? Or is it already solved now?
Enums: https://github.com/RSuter/NJsonSchema/wiki/Enums
I think this setting is only for datetime operation parameters... but i think in your case it's a datetime property and thus directly handled by the json serializer... I think...