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: Eval json null values as cty.Null #90

Closed notnoop closed 5 years ago

notnoop commented 5 years ago

Evaluate json null values as cty.Null, rather than as unknown value.

Using DynamicPseudoType as the null type as a placeholder for the null type. Callers may convert the type against schema to get the concrete type.

codecov-io commented 5 years ago

Codecov Report

Merging #90 into master will increase coverage by 0.34%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #90      +/-   ##
==========================================
+ Coverage   68.13%   68.47%   +0.34%     
==========================================
  Files          97       97              
  Lines       10153    10155       +2     
==========================================
+ Hits         6918     6954      +36     
+ Misses       2914     2875      -39     
- Partials      321      326       +5
Impacted Files Coverage Δ
hcl/json/structure.go 67% <100%> (+7.88%) :arrow_up:
hcl/json/ast.go 62.5% <0%> (+12.5%) :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 7e26f2f...b4f4515. Read the comment docs.