-
Notifications
You must be signed in to change notification settings - Fork 362
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
[AVM Module Issue]: [Multiple modules] Parameters are missing intellisense and validation which should be provided via decorators and types #3641
Comments
@StephenWeatherford, thanks for submitting this issue for the Important The module does not exist yet, we look into it. Please file a new module proposal under AVM Module proposal. |
NOTE: I'm marking this as "bug" not "feature request" but this is standard expected behavior and IMHO it's a bug in today's environment to not have intellisense and validation for params. Part of this is related to #1642. |
Hey @StephenWeatherford, In any case thanks for raising this and yes,it should be linked to #1642, with the added case of the allowedSets etc. decorators. |
Thanks @StephenWeatherford for raising this issue. I'm also pinning this one to further highlight it. Echoing what @AlexanderSehr already pointed out, we expect this to be a long term one since we'll rely on module owners' work to complete it across the library. In addition, as discussed in #1642, we were looking forward to 2 experimental features to go GA: compile-time imports and resourcederivedtypes. Since the former got GA, as a first step, we're currently working on aligning AVM common types to be imported from the recently released avm/utl/types/avm-common-types module. That would align UDT for the shared interfaces, which are anyway already covered by UDT today for the most part. For the remaining complex types such as objects and array of objects, the resourcederivedtypes GA feature would definitely help accelerating the process. On the core team side, we are planning to provide specs and guidelines to achieve this, in addition to static validation tests, most likely initially implemented with a soft failure. |
Thanks, I'm glad it's on your radar! |
@eriqua @AlexanderSehr FYI, the latest version of Bicep has new functionalities "extract parameter" and "extract type" which can make it much easier to take a resource and pull out parameters, which user-defined types and description filled out: |
It also supports resource-derived types if you have them enabled. |
Thanks for the update @StephenWeatherford, I don't know if that's the blue background, but it looks very neat 💪 |
Check for previous/existing GitHub issues
Issue Type?
Bug
Module Name
Diverse
(Optional) Module Version
This applies to all modules, but key-vault is an example
Description
Here's an example:
!) no intellisense
EXPECTED: Should provide "default" and "recover" as possible values. Instead, I had to go to the help page (or deploy to find out the problem).
FIX FOR YOUR MODULE: Use the following code for the param:
EXPECTED: Should notify me in editor of incorrect value
FIX FOR YOUR MODULE:
I'm sure there are plenty other examples. This should be standard expected practice, thanks.
(Optional) Correlation Id
No response
The text was updated successfully, but these errors were encountered: