Skip to content

Comments

Fix asDraft default value in agent API docs#3755

Open
mintlify-development[bot] wants to merge 1 commit intomainfrom
fix-asdraft-default-1771979267
Open

Fix asDraft default value in agent API docs#3755
mintlify-development[bot] wants to merge 1 commit intomainfrom
fix-asdraft-default-1771979267

Conversation

@mintlify-development
Copy link
Contributor

@mintlify-development mintlify-development bot commented Feb 25, 2026

Summary

  • Corrects the asDraft parameter default value from true to false in the Create agent job endpoint documentation
  • Updates all localized copies (EN, ZH, FR, ES)

The server implementation at api/validators/discovery/writer.validators.ts defines:

asDraft: z.boolean().default(false)

This PR aligns the API documentation with the actual server behavior.


Note

Low Risk
Docs-only OpenAPI JSON changes adjusting a parameter default/description; no runtime or data-handling logic is modified.

Overview
Updates the Admin OpenAPI specs for POST /agent/{projectId}/job so the asDraft request field now defaults to false (instead of true), clarifying that non-draft PRs are the default.

Applies the same default + description tweak across all localized specs (admin-openapi.json, es/, fr/, zh/) to keep documentation consistent.

Written by Cursor Bugbot for commit 975c5cd. This will update automatically on new commits. Configure here.

Mintlify

0 threads from 0 users in Mintlify

  • No unresolved comments

Open in Mintlify Editor

The server implementation sets asDraft default to false, not true.

Generated-By: mintlify-agent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant