You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating to [email protected] and [email protected] I get a type error when accessing a deeply nested property in combination with type narrowing. The original API model is rather complex and in parts driven by code generation requirements from the Java-based backend. However, it is a valid OpenAPI spec and everything worked fine until the update. I think it's the easiest if you take a look at the reproduction linked below.
I could narrow the issue down to the introduction of the Readable type. When I replace the Readable type in openapi-typescript-helpers with type Readable<T> = T everything works fine.
Reproduction
The original OpenAPI spec is from a complex insurance application. I tried to boil it down to the absolute minimum. Without the context it may seem like a rather contrived example, but you have to trust me that it's a valid use case 😉
Activity
fix: make Readable/Writable marker resolution opt-in and fix readonly…
fix: make Readable/Writable marker resolution opt-in and fix readonly…
fix: make Readable/Writable marker resolution opt-in and fix readonly…
fix: make Readable/Writable marker resolution opt-in and fix readonly…