Skip to content

Importer/Generator - investigate support/workaround for x-ms-client-flatten tag behaviour #4918

@sreallymatt

Description

@sreallymatt

Certain API objects seem to be flattened in the API response (e.g. networkingConfiguration in the app service environment body), however the generated SDK doesn't flatten this in the generated struct, causing the NetworkingConfiguration struct to be empty after unmarshalling the JSON body.

Investigate whether the behaviour is consistent for objects with an x-ms-client-flatten tag in the API spec, if it is, introduce steps to modify the generated structs so we can properly retrieve existing configuration from the API.

API spec example

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions