Azure / Azure/bicep

Flag to generate minified JSON instead, for build-params

Open
#13,092 3 comments 0 reactions 0 assignees View on GitHub
enhancement Needs: Upvote
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

**Is your feature request related to a problem? Please describe.**
When converting .bicepparams files into JSON parameter files, the resulting JSON file can become quite large. This happens if there is a lot of nesting or simply a lot of parameters, in the original bicepparam file.

**Describe the solution you'd like**
For the command `bicep build-params .\.bicepparam`, add a flag to minify the resulting JSON.
Right now it outputs the JSON fully formated and indented. For automated processes (e.g. further manipulating in PowerShell), it would make sense to get it minified. E.g. `bicep build-params -minify .\.bicepparam`

Contributor guide

Open the contributing guide

Research direction

Start with the `bicep build-params .bicepparam` command and compare its current formatted JSON output with the requested `-minify` form. Done means the command accepts the flag and produces minified JSON while retaining the existing formatted output when the flag is absent.

Written by the indexing model from the issue text.

Assessment

Tech stack
json
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.