meta:
  has_code_implementation: true
  code_path:
  - spec\data_quality\expectations.yaml
schema_version: data_quality_expectations.v1
groups:
  account:
  - not_null:
    - total_asset_krw
    - cash_krw
  price:
  - freshness_minutes: 390
  - not_null:
    - current_price_krw
  fundamentals:
  - not_null:
    - roe
    - revenue_growth
  external_context:
  - allowed_values:
    - CONTEXT_ONLY
    - ORDER_JUDGMENT
  cross_field:
  - rule: current_price_krw > 0
