massdriver-cloud / airlock

Generate JSON Schema from various sources (terraform, helm)
https://massdriver.cloud
Apache License 2.0
4 stars 2 forks source link

Add bicep support #6

Closed chrisghill closed 3 months ago

chrisghill commented 3 months ago

Add the ability to scrape a bicep template and generate a JSON schema from declared bicep params.

Note: The resulting JSON schema doesn't represent a valid bicep params.json file since bicep requires a custom format where each top level parameter has its value listed under a value key. To illustrate, normal JSON would look like:

{
  "foo": "bar"
}

Whereas bicep wants the JSON to look like:

{
  "foo": {
    "value": "bar"
  }
}

Instead of exposing this peculiarity to the users in our params schema, we just handle the transformation in the provisioner image.