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

Add support for Bicep custom types #2026

Closed
BernieWhite opened this issue Feb 11, 2023 · 0 comments · Fixed by #2027
Closed

Add support for Bicep custom types #2026

BernieWhite opened this issue Feb 11, 2023 · 0 comments · Fixed by #2027
Assignees
Labels
enhancement New feature or request feature: bicep-language Issues relating to Bicep language support.
Milestone

Comments

@BernieWhite
Copy link
Collaborator

Bicep supports custom types as an experimental feature.

For example:

param props custom = {
  name: 'abc'
  properties: {
    enabled: true
    settings: []
  }
}

type keyValue = [
  {
    name: string
    value: int
  }
  {
    name: string
    value: string
  }
]

type enabled = true | false

type custom = {
  name: string
  properties: {
    enabled: enabled
    settings: keyValue
  }
}

Currently these type are unable to be expanded by PSRule for Azure. We should add support for these.

@BernieWhite BernieWhite added enhancement New feature or request feature: bicep-language Issues relating to Bicep language support. labels Feb 11, 2023
@BernieWhite BernieWhite added this to the v1.25.0 milestone Feb 11, 2023
@BernieWhite BernieWhite self-assigned this Feb 11, 2023
@BernieWhite BernieWhite changed the title Add support for custom types Add support for Bicep custom types Feb 11, 2023
BernieWhite added a commit to BernieWhite/PSRule.Rules.Azure that referenced this issue Feb 11, 2023
BernieWhite added a commit to BernieWhite/PSRule.Rules.Azure that referenced this issue Feb 11, 2023
@BernieWhite BernieWhite mentioned this issue Mar 10, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature: bicep-language Issues relating to Bicep language support.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant