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
Currently, it is not possible to access OpenApi (meta)data within userland source files with kubb. For example, in orval I can use something like that to make use of the openapi metadata:
// write a jsdoc with OpenAPI metadata in each generated file
header: (info: InfoObject): string[] => [
`Generated from orval.`,
`Do not edit manually.`,
...(info.title ? [info.title] : []),
...(info.description ? [info.description] : []),
...(info.version ? [`OpenAPI spec version: ${info.version}`] : []),
],
which returns:
/**
* Generated by orval.
* Do not edit manually.
* TaskApp API
* OpenAPI spec version: 1.0.0
*/
What is the problem this feature would solve?
Currently, it is not possible to access OpenApi (meta)data within userland source files with kubb. For example, in orval I can use something like that to make use of the openapi metadata:
which returns:
An equivalent in Kubb could be achived with the help of https://github.com/readmeio/oas:
See also: #1503.
External documents/projects?
No response
What is the feature you are proposing to solve the problem?
No response
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: