-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
And fix stdout so nothing except the schema prints (unless there is an error). Also add debug logging for the reader package, and for validation rules. ``` Debug: found the following files in "/home/aisling/dev/HewlettPackard/terraschema/test/modules/simple": "/home/aisling/dev/HewlettPackard/terraschema/test/modules/simple/main.tf", with variable(s): "/home/aisling/dev/HewlettPackard/terraschema/test/modules/simple/variables.tf", with variable(s): name age Warning: couldn't apply validation for "age" with condition "var.age > env.age": no translation rules are supported for this condition Debug: condition located at "/home/aisling/dev/HewlettPackard/terraschema/test/modules/simple/variables.tf:14,21-38" Debug: the following errors occurred: contains([...],var.input_parameter): condition is not a 'contains()' function var == "a" || var == "b": operator is not || or == a <>= (variable or variable length) (&& ...): could not evaluate expression as a constant value: /home/aisling/dev/HewlettPackard/terraschema/test/modules/simple/variables.tf:14,31-34: Variables not allowed; Variables may not be used here. can(regex("...",var.input_parameter)): rule can only be applied to string types, not "number" Schema written to "/home/aisling/dev/HewlettPackard/terraschema/schema.json" ```
- Loading branch information
1 parent
8f3d776
commit addf9af
Showing
8 changed files
with
83 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters