Skip to content

Schema: Add ClickToSign to component.schema.json #3

@mikewolfd

Description

@mikewolfd

Motivation

The component JSON schema needs a ClickToSign definition so that component documents using ClickToSign validate correctly.

Scope

  • Add $defs/ClickToSign to schemas/component.schema.json following the pattern of other Progressive input components (e.g., Signature, Rating)
  • Include: component const, bind (required), statement, buttonLabel, showTimestamp, showSignerName, requireTypedName, revocable props
  • Set x-lm metadata: category input, level progressive, children false, bind required, fallback Stack
  • Add { "$ref": "#/$defs/ClickToSign" } to the AnyComponent oneOf union
  • Add "ClickToSign" to the built-in component name exclusion list in CustomComponentRef
  • Add example entry
  • Run npm run docs:generate and npm run docs:check

Acceptance Criteria

  • ClickToSign component nodes validate against the schema
  • Invalid ClickToSign nodes (missing bind, unknown props) are rejected
  • Schema artifacts regenerated and checks passing

Dependencies

Depends on #2 (spec definition should be finalized before encoding in schema).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions