OpenForm

Artifacts

Last updated on

Builder functions for top-level OpenForm artifacts

Artifact Builders

Artifact builders create top-level schema types that can be validated, serialized, and rendered independently.

Available Builders

BuilderDescriptionBadge
documentStatic content (disclosures, pamphlets)Design-time
formInteractive forms with fields and partiesDesign-time
checklistTask lists and verification itemsDesign-time
bundleCollection of multiple artifactsDesign-time

Common Features

All artifact builders share common functionality:

Static Methods

  • .from(input) - Parse unknown input, throws on error
  • .safeFrom(input) - Parse unknown input, returns result object

Instance Methods

  • .validate() - Validate the schema definition
  • .isValid() - Check if schema is valid
  • .toJSON() - Serialize to JSON
  • .toYAML() - Serialize to YAML
  • .clone() - Deep clone the instance

Instance Properties

  • _data - Raw artifact data
  • kind - Artifact type discriminator
  • name - Artifact name
  • version - Semantic version

On this page