Skip to content

fix(schema): interface JSDoc titles and Secret field format - #260

Merged
guitavano merged 1 commit into
mainfrom
fix/schema-secret-interface-titles
Jun 19, 2026
Merged

fix(schema): interface JSDoc titles and Secret field format#260
guitavano merged 1 commit into
mainfrom
fix/schema-secret-interface-titles

Conversation

@guitavano

@guitavano guitavano commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Apply interface-level JSDoc tags to object schemas (e.g. @title {{{name}}} on flag item types).
  • Emit type: string + format: password for Secret-typed props (ignores erroneous @format string on secrets).

Follow-up to #257. Publish as 6.12.1 so sites can bump and regenerate meta.gen.json.

Test plan

  • npm run generate:schema on baggagio → flag array items.title is {{{name}}}
  • Secret props get format: password without @format string in source

Made with Cursor


Summary by cubic

Fixes JSON Schema generation by applying interface-level JSDoc titles to object schemas and emitting format: password for Secret properties to ensure correct UI and validation.

  • Bug Fixes
    • Apply interface-level JSDoc (e.g., @title) to object schemas, so array item titles (like {{{name}}}) are set correctly.
    • Emit type: string and format: password for Secret-typed props, ignoring incorrect @format string tags.

Written for commit 7cc7d58. Summary will update on new commits.

Review in cubic

Apply interface-level @title tags to object schemas (e.g. {{{name}}} array
items) and emit format password for Secret-typed props.

Co-authored-by: Cursor <cursoragent@cursor.com>
@guitavano
guitavano requested a review from a team June 18, 2026 21:21
@guitavano
guitavano merged commit e137084 into main Jun 19, 2026
1 check passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 6.12.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants