Forum Discussion
- brandonsherrickOccasional 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
- 2 days ago
- 3 days ago
- 19 days ago