Skip to content

How to apply dependency validation in the same block ? #621

@prk2331

Description

@prk2331

@funkyfuture sorry to tag you directly here
but i'm stuck in this from a long.

Split type dependency on cut off date
When split_type is "custom" then "cutoff_date" is required.

data_splitting:
  type: dict
  required: true
  schema:
    split_type:
      type: string
      allowed:
        - train_test
        - k_fold
        - custom
      required: true
    cutoff_date:
      type: string
      regex: "\\d{4}-\\d{2}-\\d{2}"
      required: false
      dependencies:
        split_type:
        - "custom"

Im getting below error

{'data_splitting': [{'cutoff_date': ["depends on these values: {'split_type': ['custom']}"]}]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions