I’ve just upgraded to 5.0.2, and the generated OpenAPI export has a bizarre issue.
If we have an object named Stream the interface will only generate it as an empty object, whereas renaming it to stream will generate correctly:
This has broken our CI build, as our generated typescript classes have all changed to <any> instead of <Stream>
We would rename the Stream class, but it’s generated from a database table called Stream, so that’s not a very attractive option (plus we don’t want to rework all our clients)
Hmm, interesting. No, I have no methods exporting a Stream, and if I rename Stream to StreamDto there is no longer a definition for Stream at all, which I assume there would be for your sample?
Ah, I found the cause, but it’s not as logical as you might think.
I recently had to implement IRequiresRequestStream on a method to get the raw JSON structure from the body, and even though the stream is never used by swagger it still appears to impact on the returned value.