Skip to content

Conversation

@yanzhudd
Copy link
Contributor

Description

This PR updates the generate-all command so that only top-level objects in the request body are flattened, while all nested objects are left unflattened.

For example, The request body defined in Swagger is like this:

{
  "properties": {
    "sku": "aaa",
    "tags": "bbb",
    "properties": {
      "scheduleProfile": {
        "start": "ccc",
        "end": "ddd"
      }
    }
  }
}

After making this change, the parameter should be:

{
  "sku": "aaa",
  "tags": "bbb",
  "properties": {
    "scheduleProfile": {
      "start": "ccc",
      "end": "ddd"
    }
  }
}

@yanzhudd yanzhudd self-assigned this Nov 25, 2025
@necusjz necusjz merged commit 9aa11c5 into Azure:dev Nov 26, 2025
17 checks passed
@yanzhudd yanzhudd deleted the disable-flatten branch November 30, 2025 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants