docs(api): enhance api descriptions for AI Agents#35382
docs(api): enhance api descriptions for AI Agents#35382
Conversation
|
Claude finished @rjvelazco's task in 3m 13s —— View job PR Review
Issues to address1. The new description states:
If this is accurate (i.e., 2. Known issue documented without a ticket reference — WorkflowResource.java:2959 "⚠️ **Known issue:** Firing `PUBLISH` on an archived contentlet (`archived: true`) does not validate " +
"the archived state and can produce an inconsistent `live: true, archived: true` tri-state."Documenting a known bug in API docs without a tracker reference creates a maintenance liability: if the bug is fixed, this warning stays forever and confuses users who don't hit it. Add a link to the issue tracker ticket, or at minimum 3. examples = @ExampleObject(
value = "{ ... }"
)The OpenAPI spec requires examples within an 4. "⚠️ **Note:** The `entity` field in the response is a **JSON-encoded string**, not an object. " +
"Typed clients must call `JSON.parse(entity)` before use..."This documents a real response inconsistency (double-serialized JSON). Documenting workarounds for bugs is a last resort; the correct fix is to serialize 5. The YAML changes both parameters from Minor notes
|
- Remove **Required.** from `variable` in copyType request body (only `name` is required) - Move `variable`, `host`, `folder` from Required to Optional in createType (server-side defaults exist) - Fully qualify all `clazz` names with `com.dotcms.contenttype.model.type.` prefix - Fix `depth`/`languageId` schema format: int64 → int32 in openapi.yaml - Remove PUBLISH-on-archived bug note from workflow fire endpoint (belongs in issue tracker, not API spec) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…tions-based-on-mcp-testing-feedback
…tions-based-on-mcp-testing-feedback
…tions-based-on-mcp-testing-feedback
…erequisites, and build/test commands
…tions-based-on-mcp-testing-feedback
…tions-based-on-mcp-testing-feedback
WIP
This PR fixes: #35381