Replies: 1 comment
-
Hello @elee1766 , new Documentation({
composition: "components",
descriptions: {
requestBody: ({method, path, operationId}) => {
/* your implementation here */
}
}
}) The string returned by the specified function is converted into PascalCase and used as a component name in the generated documentation. Same for Naming of the
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello its me again.
imagine you have a type like this:
and an endpoints like this
say this is mounted on
GET /ticket
When generating the client (using split response) i will get back something like
and same in the openapi schema in the responses.
However, it makes a lot more sense i think for this to be something like
the reason is that there is another post endpoint which consumes the ticket later. I understand that since the objects match up that it will satisfy the type check to pass the response from
GetTicketResponsePositiveResponse
the input inPostTicketInput
, but that makes the client and the generated types incredibly messy. it would be great if the generated client could use the same type relationships that are expressed in the server-side schema.digging through, i see there is a parameter
serializer
but that seems to be for lazy types.otherwise, I suspected i would need to do something like
but i did not see a feature like this in withMeta.
Beta Was this translation helpful? Give feedback.
All reactions