hashicorp / hcl2

Former temporary home for experimental new version of HCL
https://github.com/hashicorp/hcl
Mozilla Public License 2.0
373 stars 66 forks source link

json: Allow null values for block attributes #87

Closed endocrimes closed 5 years ago

endocrimes commented 5 years ago

This treats null JSON values for block attributes as if they were not specified, for example:

{
    "resource": null,
}

will parse as having found no resource blocks.

codecov-io commented 5 years ago

Codecov Report

Merging #87 into master will increase coverage by 0.01%. The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #87      +/-   ##
==========================================
+ Coverage    68.1%   68.12%   +0.01%     
==========================================
  Files          97       97              
  Lines       10145    10148       +3     
==========================================
+ Hits         6909     6913       +4     
+ Misses       2915     2914       -1     
  Partials      321      321
Impacted Files Coverage Δ
hcl/json/structure.go 59.12% <66.66%> (+0.05%) :arrow_up:
hclwrite/native_node_sorter.go 100% <0%> (+25%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 89dbc5e...5e5a80a. Read the comment docs.