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

Unexpected property value is generated in MPG sample generation if it is a union enum #2881

Open
Tracked by #2828
kazrael2119 opened this issue Oct 23, 2024 · 0 comments
Assignees
Labels
HRLC P1 priority 1

Comments

@kazrael2119
Copy link
Contributor

If a property value is a union enum like:


interface xxx {
    method: DataLakeStorageAuthMethod;
}

/** Alias for DataLakeStorageAuthMethod */
export type DataLakeStorageAuthMethod =
  | ManagedIdentityMethod
  | AccessTokenMethod;

sample will generate the relative properties as :

xxx : {
            method: AccessToken,
          },

expected value:

xxx : {
            method: "AccessToken",

          },

tsp link: https://github.com/Azure/azure-rest-api-specs/blob/7507aafa42d29e3526d8e5aacf6233c0e9a959d0/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflowEndpoints.tsp#L140-L146

@qiaozha qiaozha added HRLC p0 priority 0 P1 priority 1 and removed p0 priority 0 labels Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HRLC P1 priority 1
Projects
None yet
Development

No branches or pull requests

3 participants