api_version: pycharter.io/v2
kind: Pipeline
metadata:
  name: orders_feed
  version: "1.0.0"
spec:
  steps:
    - id: read_orders
      type: extract
      source:
        type: file
        path: orders.jsonl
        format: jsonl
    - id: write_orders
      type: load
      input: read_orders
      target:
        type: file
        path: accepted.jsonl
        format: jsonl
        mode: overwrite
      contract:
        ref:
          type: file
          path: orders-contract.yaml
        validate: true
        coerce: true
        on_error: fail
