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

kiota client generate --refresh command leads to the serialization registration to be added #5431

Closed
baywet opened this issue Sep 17, 2024 · 2 comments · Fixed by #5478
Closed
Assignees
Labels
generator Issues or improvements relater to generation capabilities. priority:p1 High priority/Major issue but not blocking or Big percentage of customers affected.Bug SLA <=7days type:bug A broken experience WIP
Milestone

Comments

@baywet
Copy link
Member

baywet commented Sep 17, 2024

  1. generate a client with the workspace experience in the CLI
  2. run kiota client generate --refresh

Note that serialization registration is added to the client constructor when it shouldn't.
This is probably being caused by the value being defaulted, which should be set to "none" in that configuration.

@baywet baywet added type:bug A broken experience generator Issues or improvements relater to generation capabilities. priority:p1 High priority/Major issue but not blocking or Big percentage of customers affected.Bug SLA <=7days labels Sep 17, 2024
@baywet baywet added this to the Kiota v1.18.1 milestone Sep 17, 2024
@baywet baywet added this to Kiota Sep 17, 2024
@github-project-automation github-project-automation bot moved this to Needs Triage 🔍 in Kiota Sep 17, 2024
@baywet baywet moved this from Needs Triage 🔍 to Todo 📃 in Kiota Sep 17, 2024
@sebastienlevert sebastienlevert moved this from Todo 📃 to Needs Triage 🔍 in Kiota Sep 23, 2024
@andrueastman andrueastman moved this from Needs Triage 🔍 to Todo 📃 in Kiota Sep 25, 2024
@andrueastman
Copy link
Member

The culprit here is probably this function that needs to be dropped as we now have bundle packages rolling out.

protected static void DefaultSerializersAndDeserializers(GenerationConfiguration generationConfiguration)

For context, these lines are what should be excluded when running the command.
https://github.com/microsoft/kiota-samples/blob/main/msgraph-mail/dotnet/ApiClient.cs#L32-L38

@baywet
Copy link
Member Author

baywet commented Sep 25, 2024

Dropped I don't think so since we still need to support the older commands. But only executed for the non workspace experience yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
generator Issues or improvements relater to generation capabilities. priority:p1 High priority/Major issue but not blocking or Big percentage of customers affected.Bug SLA <=7days type:bug A broken experience WIP
Projects
Archived in project
3 participants