Skip to content

Add validateAST command and/or validate on print #55

@DianaLease

Description

@DianaLease

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:

Metadata

Metadata

Assignees

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