Skip to content
Discussion options

You must be logged in to vote

Orval is not deciding this only from the generated name. It mostly follows the shape of the OpenAPI document it receives.

In your example there are three different things:

  • @ApiResponse({ type: Dog }) usually becomes a reusable component schema such as #/components/schemas/Dog, so Orval puts it in the normal schemas area.
  • Individual @ApiParam(...) path params are OpenAPI parameters, not a DTO schema reference. Orval can generate them as function arguments or inline parameter handling instead of creating a separate operation schema file.
  • Query parameters are often grouped into one params type for the operation, so you see an operation-specific {operationName}Params style schema/type.

So t…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by melloware
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants