Skip to content

Improve output of parameter default values for object types #84

@BernieWhite

Description

@BernieWhite

Template parameters can be different types including object. When a default value for an object parameter is specified the default value is serialized as a string instead of an object.

For example

{
    "type": "object",
    "defaultValue": {
        "defaultAction": "Allow",
        "bypass": "AzureServices",
        "ipRules": [],
        "virtualNetworkRules": []
    }
}

Which is outputted as:

@{defaultAction=Allow; bypass=AzureServices; ipRules=System.Object[]; virtualNetworkRules=System.Object[]}

This formatting is not ideal and hard to understand, we can do better.

Metadata

Metadata

Assignees

Labels

feature: documentsIssues that affect Document definitions

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions