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

Add validateAST command and/or validate on print #55

Open
2 tasks
DianaLease opened this issue Jul 23, 2024 · 0 comments
Open
2 tasks

Add validateAST command and/or validate on print #55

DianaLease opened this issue Jul 23, 2024 · 0 comments

Comments

@DianaLease
Copy link
Member

Context

Today, there is no easy way to check if a Concerto JSON AST is valid. When running concerto print, we get back a CTO string with errors. We should add a validateAST command and/or validate on print.

Expected Behavior

New concerto validate-ast command
and/or
concerto print should throw an error when given an invalid AST as input

Steps to Reproduce

  1. Create an invalid JSON AST (eg. use invalid values for enum options)
  2. Run concerto print on that AST
  3. See invalid CTO as output

Existing issues

Context

Your Environment

  • Version used:
  • Environment name and version (e.g. Chrome 39, node.js 5.4):
  • Operating System and version (desktop or mobile):
  • Link to your project:
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