Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(generator): flatten model properties #5094

Merged
merged 12 commits into from
Oct 10, 2024

Commits on Sep 27, 2024

  1. feat(generator): flatten model properties

    This commit will flatten the model property in generator, instead of in the emitter.
    
    - Modify `InputModelProperty`
      - add an `IsFlatten` property for original emitter input
      - remove `FlattenNames` property from constructor
    - change model json converter:
      - convert `TypeSpecInputModelProperty` to `InputModelProperty`
      - flatten model property if necessary
    - refactor
    
    resolve Azure#4449
    Mingzhe Huang (from Dev Box) committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    8104024 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into generator/flatten-model-property

    Mingzhe Huang (from Dev Box) committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    3f73fe8 View commit details
    Browse the repository at this point in the history
  3. regen

    Mingzhe Huang (from Dev Box) committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    cc1959d View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2024

  1. update property name to align with others

    Mingzhe Huang (from Dev Box) committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    902115f View commit details
    Browse the repository at this point in the history
  2. only flatten non-multipart property

    Mingzhe Huang (from Dev Box) committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    7b09702 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2024

  1. Merge branch 'main' into generator/flatten-model-property

    Mingzhe Huang (from Dev Box) committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    64c8f66 View commit details
    Browse the repository at this point in the history
  2. bump lateste mgc

    Mingzhe Huang (from Dev Box) committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    f497922 View commit details
    Browse the repository at this point in the history
  3. remove exception when a property is both flattend and the request is …

    …a multipart
    
    change flattened property to optional if parent property is optional
    
    Revert "change flattened property to optional if parent property is optional"
    
    This reverts commit 88f936285aec19635ade3a2ba6194a6985a31cdc.
    Mingzhe Huang (from Dev Box) committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    6f6141a View commit details
    Browse the repository at this point in the history
  4. make flattened child property optional if its parent is optional

    Mingzhe Huang (from Dev Box) committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    3e9c3ea View commit details
    Browse the repository at this point in the history
  5. update official release of http-client-csharp

    Mingzhe Huang (from Dev Box) committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    455fa29 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'main' into generator/flatten-model-property

    Mingzhe Huang (from Dev Box) committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    3aef0ba View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2024

  1. Configuration menu
    Copy the full SHA
    9def24a View commit details
    Browse the repository at this point in the history