Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SodaCL checks in separate file using $ref in specification object #365

Open
kohldninja opened this issue Aug 6, 2024 · 0 comments
Open

Comments

@kohldninja
Copy link

kohldninja commented Aug 6, 2024

This may be a misunderstanding on my part but it appears I am unable to import a checks.yaml file with a SodaCL type.

The quality portion of my contract looks as follows:

quality:
  type: SodaCL
  specification:
    $ref: ./driver_checks.yaml

The checks file is in the correct SodaCL YAML notation:

checks for driver:
      - row_count >= 1
      - duplicate_count(driver_id) = 0

These checks run fine if I paste them within the specification object in the contract file itself.

However, the error I receive that comes from soda scan when running datacontract test driver_datacontract.yaml is Invalid section header "$ref"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant