I’m down to my last issue now trying to “fix” errors in the openapi.json generated for my service.
I have created some services with multiple routes:
[Route("/candidate", "GET", Summary = "get candidates")]
[Route("/candidate/{CandidateRef}", "GET", Summary = "get specified candidate")]
which are fine using ServiceStack and work correctly with the inbuilt Swagger-UI component but according to http://editor.swagger.io/ are not valid unless I make the {CandidateRef} a path ParameterType. Unfortunately doing this also makes it required (at least in Swagger-UI) which makes the /candidate route impossible to use.
Is there any way to have both work through Swagger-UI or do I need to split my DTO in some way even though other than the one parameter they are identical?
TIA
Nic