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
We don't need to implement a perfect openapi zod schema, we only need to implement what we need to support or expect. For example, there are limits on expected nesting or complexity. Additionally, we don't care about large parts of the schema (anything other than the 200 response).
The idea is that by doing the parsing up front, the documentation author will get feedback on any invalid properties. This will simplify code complexity and correctness as the parsing step can fill in defaults and ensure things are not null, etc.
There is a risk that implementing this parsing is a deep hole of complexity. In order to break down the problem, partial parsing schemas are defined in https://github.com/seamapi/blueprint/blob/main/src/lib/openapi-schema.ts and used as needed. The goals is to eventually combine these schemas into a single OpenapiSchema and do parsing once at the top of createBlueprint.
The text was updated successfully, but these errors were encountered:
We basically want to go from this:
to this
We don't need to implement a perfect openapi zod schema, we only need to implement what we need to support or expect. For example, there are limits on expected nesting or complexity. Additionally, we don't care about large parts of the schema (anything other than the 200 response).
The idea is that by doing the parsing up front, the documentation author will get feedback on any invalid properties. This will simplify code complexity and correctness as the parsing step can fill in defaults and ensure things are not null, etc.
There is a risk that implementing this parsing is a deep hole of complexity. In order to break down the problem, partial parsing schemas are defined in https://github.com/seamapi/blueprint/blob/main/src/lib/openapi-schema.ts and used as needed. The goals is to eventually combine these schemas into a single OpenapiSchema and do parsing once at the top of
createBlueprint
.The text was updated successfully, but these errors were encountered: