Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hclparser: strip out blocks for json files #1080

Merged
merged 1 commit into from
Apr 29, 2022

Commits on Apr 28, 2022

  1. hclparser: strip out blocks for json files

    Body.JustAttributes cannot distinguish between blocks and attributes for
    JSON files, so the variable block could be included in the list of
    attributes returned.
    
    This patch ensures that JSON and HCL files behave the same way by
    removing all known block types first, from the provided config schema
    and then from a generated definitions schema.
    
    Fixes docker#1051
    
    Signed-off-by: Justin Chadwell <[email protected]>
    jedevc committed Apr 28, 2022
    Configuration menu
    Copy the full SHA
    03885ec View commit details
    Browse the repository at this point in the history