Forum Discussion
brandonsherrick
6 months agoOccasional Visitor
Hello there,
In your Swagger annotations, explicitly reference the fully qualified class names of the models you need to use.
Here, Pageable and Product are imported directly from their respective packages (org.springframework.data.domain and com.pepsico.och.inventory.domain.product).
Ensure that Swagger annotations like @ApiParam or @ApiResponse use the fully qualified class names in their definitions.
When using Swagger Codegen to generate client or server code, ensure your Swagger specification (swagger.yaml or swagger.json) correctly defines models and references them. You can use $ref to refer to models defined elsewhere in your Swagger definition file.
Related Content
- 2 years ago
- 7 years ago
- 5 years ago
Recent Discussions
- 12 days ago
- 18 days ago