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

Revert "Add generation of enum array in query" #4265

Closed
wants to merge 1 commit into from

Conversation

andrueastman
Copy link
Member

Reverts #4226

From conversation at microsoftgraph/msgraph-sdk-typescript#512

@andrueastman andrueastman requested a review from a team as a code owner February 29, 2024 07:06
Copy link

@baywet
Copy link
Member

baywet commented Feb 29, 2024

Thanks for quickly identifying the root cause. I don't think we should revert that PR, but rather change the conversion behaviour.
Here is what I think it should project vs what it currently projects:

query param name current type desired type note
count bool bool
select array of enum array of string nested expand/select would make for a very large enum definition when projecting all the possibilities, and today's projection is lacking a lot
expand array of enum array of string same rationale as select
filter string string
orderBy array of enum string I believe you can order by a sub-property in some odata scenarios, and projecting all possibilities would get verbose
top int int
skip int int
search string string
format string string

Effectively only the projections of select, orderby and expand need to change.
What do you think?

@baywet
Copy link
Member

baywet commented Feb 29, 2024

added some of that context here microsoft/OpenAPI.NET.OData#197

@andrueastman
Copy link
Member Author

The select,expand and orderBy parameters are small set though so the change could be made relatively quickly.
In my head, reverting this PR was going to always be a temporary measure, given that Kiota is technically doing the right thing.

I can close this for now and let this get sorted out at the metadata end.

@baywet
Copy link
Member

baywet commented Feb 29, 2024

(please keep the branch for now, I have queued typescript generation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants