Skip to content

WrapperGenerator: bind complex request-body properties as typed Kiota-model parameters #3707

Description

@Joywambui-maina

Problem
New- and Update- cmdlets currently bind only top-level primitive body properties as parameters (SchemaProperties.ExtractPrimitiveProperties is intentionally shallow). Complex properties get no parameter at all, so generated cmdlets cannot set them. The published SDK exposes every complex body property as a typed parameter that accepts a hashtable — New-MgUser has ~90 parameters, e.g. -PasswordProfile @{ Password = '...' }. This is the largest remaining functionality and parity gap in body binding.

Possible path forward
For every complex body property, emit a parameter typed as the corresponding Kiota model class, resolved from the property's $ref. Coverage comes from the schema itself — no per-property special cases.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions