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
In some situations it might be useful to include the operationId of each operation in the generated types, as a const ID value.
For example I'm considering writing a dtsgen plugin that emits a map of operationId to request body+response body types, but when the plugin is invoked, the operationId is gone.
An even more powerful solution might be to include the original JSON schema as part of the context passed to plugins, if possible, then plugins would be able to do more advanced tweaking of the output also using data from the input schema.
The text was updated successfully, but these errors were encountered:
In some situations it might be useful to include the operationId of each operation in the generated types, as a
const ID
value.For example I'm considering writing a dtsgen plugin that emits a map of operationId to request body+response body types, but when the plugin is invoked, the operationId is gone.
Example:
Current generated type:
Suggested:
An even more powerful solution might be to include the original JSON schema as part of the context passed to plugins, if possible, then plugins would be able to do more advanced tweaking of the output also using data from the input schema.
The text was updated successfully, but these errors were encountered: