/guicedee-openapi:guicedee-openapifrom guicedee-openapi
Generates and serves OpenAPI 3.1 specs from Jakarta REST resources annotated with Swagger annotations in the Guiced/Vert.x stack. Provides live /openapi.json and /openapi.yaml endpoints with zero configuration.
Ships in guicedee-openapi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Automatic OpenAPI 3.1 spec generation and serving for the Guiced / Vert.x stack.
Add the dependency, annotate your Jakarta REST resources with Swagger annotations (the io.swagger.v3.oas.annotations.* package), and the module scans them at startup — /openapi.json and /openapi.yaml are live with zero configuration.
Annotation choice — use Swagger, not MicroProfile. This stack standardises on the Swagger v3 annotations from
io.swagger.v3.oas.annotations.*. Do not mix in the MicroProfile OpenAPI annotations (org.eclipse.microprofile.openapi.annotations.*). The two packages share simple names (@Schema,@Content,@Tag,@Parameter,@Operation), so a stray import of the wrong package compiles but silently fails to drive the generated spec. Always import fromio.swagger.v3.oas.annotations.
guiced.net:openapi dependency.import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.tags.Tag;
@Path("/users")
@Tag(name = "Users", description = "User management operations")
public class UserResource {
@GET
@Operation(summary = "List all users")
@ApiResponse(responseCode = "200", description = "Success",
content = @Content(schema = @Schema(implementation = User.class)))
public List<User> listUsers() { ... }
@POST
@Operation(summary = "Create a new user")
@ApiResponse(responseCode = "200", description = "Created user",
content = @Content(schema = @Schema(implementation = User.class)))
public User createUser(CreateUserRequest request) { ... }
}
module-info.java:
module my.app {
requires com.guicedee.openapi;
}
guicedee-inject). Await asynchronous loading before probing endpoints:
IGuiceContext.registerModuleForScanning.add("my.app");
IGuiceContext.instance().getConfig()
.setClasspathScanning(true).setAnnotationScanning(true)
.setMethodInfo(true).setFieldInfo(true);
IGuiceContext.instance().inject();
// GET /openapi.json → OpenAPI 3.1 JSON spec
// GET /openapi.yaml → OpenAPI 3.1 YAML spec
Add the swagger-ui module for a browsable UI at /swagger/:
<dependency>
<groupId>guiced.net</groupId>
<artifactId>swagger-ui</artifactId>
</dependency>
The UI reads from /openapi.json automatically — zero code required.
Use the Swagger v3 annotations from io.swagger.v3.oas.annotations.*:
@OpenAPIDefinition — API-level info, servers, security@Tag (...annotations.tags.Tag) — resource grouping@Operation (...annotations.Operation) — per-endpoint summary, description@ApiResponse / @ApiResponses (...annotations.responses.*) — response documentation@Parameter (...annotations.Parameter) — parameter documentation@Schema (...annotations.media.Schema) — model schema customization@Content (...annotations.media.Content) — response content types@RequestBody (...annotations.parameters.RequestBody) — request body documentationadditionalProperties must be either a Boolean or a Schema instanceA consuming service (e.g. an OpenAPI registry that merges specs) fails to parse
a produced spec with this error, typically pointing at a Map-typed property:
... Components["schemas"] -> ["ArrangementCreateDTO"] -> Schema["properties"]
-> ["classifications"] -> Schema["additionalProperties"]
Root cause — this is a consumer-side deserialization bug, not a producer fault.
A Map<String, V> field correctly generates additionalProperties: { type: ... },
which is valid OpenAPI 3.1 — Swagger UI and browsers read it fine. The failure
happens only when the consumer deserializes the spec with a plain Jackson
ObjectMapper. That mapper lacks Swagger's custom Schema deserializers, so it
turns the additionalProperties JSON object into a LinkedHashMap and then
Schema.setAdditionalProperties(...) throws, because the value is neither a
Boolean nor a Schema.
Fix — deserialize with Swagger's own configured mapper. Use
io.swagger.v3.core.util.Json31.mapper() (OpenAPI 3.1) or Json.mapper() (3.0),
which register the proper Schema deserializers. Rebuild the Jackson 3 mapper
before tweaking features so you preserve the configured modules:
import io.swagger.v3.core.util.Json31;
import tools.jackson.databind.ObjectMapper;
import tools.jackson.databind.DeserializationFeature;
ObjectMapper mapper = Json31.mapper().rebuild()
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
.build();
OpenAPI remoteSpec = mapper.readValue(specJson, OpenAPI.class);
This corrects all Map/additionalProperties cases across every service at once
— no per-DTO annotation needed. (io.swagger.v3.core.util is exported by the shaded
com.guicedee.modules.services.openapi module.)
Do not "fix" this by avoiding
Mapfields or hand-annotating each endpoint — the produced spec is already correct. The single robust fix is the consumer mapper.
io.swagger.v3.oas.annotations.*; never the MicroProfile package.@ApiResponse with @Schema(implementation = …) for typed responses.requires com.guicedee.openapi;.com.guicedee.openapi serves the endpoints. Its shaded Swagger dependency is a separate module, com.guicedee.modules.services.openapi; do not substitute that name for the feature module.rest module for Jakarta REST resource scanning.provides needed.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub guicedee/ai-rules --plugin guicedee-openapi