hcl/test-fixtures
Mitchell Hashimoto c03d57b578
json/parser: empty list value should not flatten
Fixes https://github.com/hashicorp/terraform/issues/8886

While parsing JSON, an empty list value would be assumed to be a
non-existent list of objects, and would be removed from the result. This
may have never been the correct behavior but always worked okay because
we previously didn't support lists as first class types.

With the support of lists, we need to actually return the empty list as
the type. If we return nothing, then projects like Terraform will think
that the value was never set, which is false.
2016-10-25 10:44:39 -07:00
..
assign_deep.hcl hcl/parser: Support lists of objects 2016-07-06 13:01:52 -05:00
basic_int_string.hcl decode strings to ints 2014-09-30 22:29:21 -07:00
basic_squish.hcl
basic.hcl
basic.json
block_assign.hcl Test that #121 doesn't happen 2016-09-02 09:52:19 -07:00
decode_policy.hcl
decode_policy.json
decode_tf_variable.hcl
decode_tf_variable.json
empty.hcl
escape.hcl Remove BC escaped double quote behavior 2016-06-16 12:43:37 -05:00
flat.hcl
float.hcl parse floats 1.02 properly [GH-19] 2014-11-12 21:29:07 -08:00
float.json parse floats 1.02 properly [GH-19] 2014-11-12 21:29:07 -08:00
interpolate.json json: interpolations have to be escaped 2016-09-02 11:31:47 -05:00
list_of_maps.hcl hcl/parser: Support lists of objects 2016-07-06 13:01:52 -05:00
multiline_bad.hcl add more heredoc tests 2015-11-10 15:08:59 -08:00
multiline_indented.hcl Remove hanging indent on HEREDOCs with <<- prefix 2016-03-21 14:12:20 +00:00
multiline_literal.hcl Support multiline string literals in HCL 2016-07-11 14:33:17 -06:00
multiline_no_eof.hcl add more heredoc tests 2015-11-10 15:08:59 -08:00
multiline_no_hanging_indent.hcl Remove hanging indent on HEREDOCs with <<- prefix 2016-03-21 14:12:20 +00:00
multiline_no_marker.hcl add more heredoc tests 2015-11-10 15:08:59 -08:00
multiline.hcl add more heredoc tests 2015-11-10 15:08:59 -08:00
multiline.json
nested_block_comment.hcl hcl: don't allow nested comments 2015-06-23 21:34:40 -07:00
nested_provider_bad.hcl Return an error if object keys are not strings 2016-03-21 13:32:31 +00:00
null_strings.json Fix bug with unquoting null from JSON-encoded HCL 2016-06-20 20:02:34 +03:00
object_list.json test for decoding structures within lists 2015-11-07 16:48:38 -08:00
scientific.hcl
scientific.json
slice_expand.hcl Test for GH-46 2015-11-09 20:02:20 -08:00
structure2.hcl
structure2.json
structure_flat.json
structure_flatmap.hcl
structure_list_deep.json
structure_list_empty.json json/parser: empty list value should not flatten 2016-10-25 10:44:39 -07:00
structure_list.hcl
structure_list.json
structure_multi.hcl
structure_multi.json
structure.hcl
structure.json
terraform_heroku.hcl
terraform_heroku.json
terraform_variable_invalid.json fix panic when decoding invalid value structure into struct 2016-08-21 23:44:35 -07:00
tfvars.hcl Fix scanning of identifiers of the form 'map.key' 2015-11-24 15:13:07 +02:00
unterminated_block_comment.hcl hcl: multi-line comments aren't allowed to terminate with EOF 2015-06-23 21:38:11 -07:00
unterminated_brace.hcl Parser enforces closing RBRACE [GH-88] 2016-02-10 10:31:11 -08:00