generate_dto
Generates Request/Response DTOs with validation annotations and MapStruct mapper from entity name and field definitions.
Instructions
Generate Request/Response DTOs with validation annotations and MapStruct mapper
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entityName": "<entityName>",
"fields": "<fields>"
},
"name": "generate_dto"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | DTO fields with validations | |
| entityName | Yes | Entity name in PascalCase | |
| withMapper | No | Generate MapStruct mapper interface | |
| packageName | No | Base package name | com.example.demo |