harvzor / harvzor-optional

A type wrapper that lets you know if that object value has been explicitly defined
MIT License
0 stars 0 forks source link

Swashbuckle tests maybe don't need to actually start a server #9

Open harvzor opened 8 months ago

harvzor commented 8 months ago

Currently I run a real server and hit the /swagger/v1/swagger.json endpoint to get the JSON and check that the format is what I expect, but probably I can do it a smarter way:

https://stackoverflow.com/questions/62996494/unit-testing-that-the-swagger-doc-is-correct-without-starting-a-server