tripletex-api2
tripletex-api2 copied to clipboard
Optional types in schema, ex: GET /employee returns values where id is optional
We are using https://openapi-ts.pages.dev/ to generate client code and there are optional types in Tripletex's swagger schema which I believe could have been marked as required. Example Employee and it's id:
This results in generated code where id is optional:
I'm guessing this may have to do something with type being used in multiple contexts, like when you POST a new employee? But it would have been nice to have accurate types for different operations :)