To metadata as it should since the reference is contained in a list.
With this patch it's correctly scraped and adds a ref. Building provider-upjet-gcp with this change
produces the expected examples-generated/binaryauthorization/v1beta2/policy.yaml
with this diff compared to without this change.
Description of your changes
Scraping does not handle
TupleConsExpr
when parsing example HCL code from Terraform documentation.Example 1):
Does not add:
To metadata as it should since the reference is contained in a list.
With this patch it's correctly scraped and adds a ref. Building
provider-upjet-gcp
with this change produces the expectedexamples-generated/binaryauthorization/v1beta2/policy.yaml
with this diff compared to without this change.1) https://github.com/hashicorp/terraform-provider-google/blob/v5.39.0/website/docs/r/binary_authorization_policy.html.markdown?plain=1#L49
Fixes #349
I have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR if necessary.~How has this code been tested
By updating the unit test in
meta_test.go
and rebuildingprovider-upjet-gcp
(https://github.com/rickard-von-essen/provider-upjet-gcp/commit/f162f8325cd51b769658fc9f021af36c02eea017)