Closed kriswest closed 1 year ago
SOmething is screwed with this PR, will recreate.
Also thinking about the approach as we either need to generate separate schemas and types for error responses, or live with non-optional fields being optional in typescript types (as it merges the regular and error responses into one type).
Any opinions on which is better/worse?
We just realized that the error responses (from Agent -> Bridge) were not defined in the schemas, this adds them, but does water down protections provided by generated types (as it makes the required fields in a correct response and error response fields both optional)
@tpina @mattjamieson @Vivek-NatWest