mocapi-jakarta-validation-spring-boot-starter
com.callibrity.mocapi
mocapi-jakarta-validation-spring-boot-starter is a Java jar artifact published under the com.callibrity.mocapi group on Maven Central. 2 versions are indexed here. Select a version below for Maven, Gradle and SBT snippets plus CVE data.
Add to your project0.10.0
<dependency>
<groupId>com.callibrity.mocapi</groupId>
<artifactId>mocapi-jakarta-validation-spring-boot-starter</artifactId>
<version>0.10.0</version>
</dependency>Version Details — 0.10.0
Spring Boot starter that turns on Jakarta Bean Validation for a mocapi app: bundles the Hibernate-backed validator (spring-boot-starter-validation), methodical's method-level validator factory, and ripcurl's ConstraintViolationException-to-JSON-RPC translator. Adding this starter lets users annotate @ToolMethod / @PromptMethod / @ResourceTemplateMethod parameters with @NotBlank/@Size/@Pattern/etc.; violations in prompt and resource handlers surface as JSON-RPC -32602 Invalid params with per-violation detail in the response's data field, and violations in tool handlers surface as CallToolResult.isError=true via mocapi's existing exception path — matching the MCP 2025-11-25 spec's error-reporting model for each handler type.