Forum Discussion
1 Reply
Sort By
- 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
- 7 years ago
- 5 years ago
- 2 years ago
- 11 months ago
Recent Discussions
- 4 days ago
- 26 days ago