-
Notifications
You must be signed in to change notification settings - Fork 747
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
User-Defined Types - Compiled JSON does not recognize discriminator types #12331
Comments
@jeskew once the fix is available, do we have to compile again the bicep templates? |
@slavizh No, recompiling templates won't be necessary. The change made in the linked PR updates how Bicep reads type information in ARM JSON templates and does not affect compilation from bicep to JSON. |
@jeskew thanks for confirming. I was suspecting that was the case but do not know the code that well so better to confirm it. |
jeskew
added a commit
that referenced
this issue
Nov 13, 2023
…ng ARM JSON models (#12388) Resolves #12331 ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/Azure/bicep/pull/12388)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bicep version
Bicep CLI version 0.22.6 (d62b94d)
Describe the bug
If you have foo.bicep like
and in bicep parameters file you reference that file all looks ok. But if you convert the bicep to json and reference the json (or reference the json that is uploaded to bicep registry intellisense does not work.
This makes discriminator useless as basically it works only if you use the bicep template directly.
To Reproduce
Steps to reproduce the behavior:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: