Export: Data Caterer

Converts the data contract to a data-generation task in YAML that can be ingested by Data Caterer. This lets you generate production-like data in any environment based on your contract.

{/* AUTOGENERATED EXAMPLE: do not edit by hand; regenerate with the update script. */}

datacontract export data-caterer orders.odcs.yaml

Running this against the example orders contract produces:

name: Orders
steps:
- name: orders
  type: snowflake
  options: {}
  fields:
  - name: order_id
    type: string
    options:
      isUnique: true
      isPrimaryKey: true
  - name: order_timestamp
    type: timestamp
  - name: customer_id
    type: string
  - name: order_total
    type: double
  - name: status
    type: string
- name: line_items
  type: snowflake
  options: {}
  fields:
  - name: line_item_id
    type: string
    options:
      isUnique: true
      isPrimaryKey: true
  - name: order_id
    type: string
  - name: sku
    type: string
  - name: quantity
    type: integer

{/* END AUTOGENERATED EXAMPLE */}

You can further customize generation by adding additional metadata in the YAML.