Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

provide {} value for required&flattened parameter #676

Closed
changlong-liu opened this issue Dec 8, 2020 · 1 comment
Closed

provide {} value for required&flattened parameter #676

changlong-liu opened this issue Dec 8, 2020 · 1 comment
Assignees

Comments

@changlong-liu
Copy link
Member

for this required property: https://github.com/Azure/azure-rest-api-specs/blob/master/specification/migrate/resource-manager/Microsoft.Migrate/stable/2019-10-01/migrate.json#L264

generated code don't set default value {}
image

Expected:

    group = {}
    group['e_tag'] = e_tag
    group['property'] = {}          # need this line
    return client.create(resource_group_name=resource_group_name,
                         project_name=project_name,
                         group_name=group_name,
                         group=group)
@changlong-liu
Copy link
Member Author

merged

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants