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

Use existing shared Model #5918

Open
Trapulo opened this issue Dec 17, 2024 · 2 comments
Open

Use existing shared Model #5918

Trapulo opened this issue Dec 17, 2024 · 2 comments
Labels
Csharp Pull requests that update .net code Status: No Recent Activity status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close type:question An issue that's a question

Comments

@Trapulo
Copy link

Trapulo commented Dec 17, 2024

Is your feature request related to a problem? Please describe the problem.

Is is possible to use an existing and Model instead of to create a custom one?

I have Blazor WASM Projects, that share DTOs between server and client apps. This is really great. I previously used NSwag to create client library, reusing existing shared DTOs library instead of creating a new model from OpenAPI.
I cannot find a way to do this using Kiota

Client library/SDK language

Csharp

Describe the solution you'd like

An option to disallow model creation, importing a namespace with existing DTOs (cfr. NSWag "generate DTO Types")

Additional context

No response

@Trapulo Trapulo added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:feature New experience request labels Dec 17, 2024
@github-project-automation github-project-automation bot moved this to Needs Triage 🔍 in Kiota Dec 17, 2024
@msgraph-bot msgraph-bot bot added the Csharp Pull requests that update .net code label Dec 17, 2024
@baywet
Copy link
Member

baywet commented Dec 17, 2024

Hi @Trapulo ,
Thank you for using kiota and for reaching out.

This is not a scenario Kiota was designed for but some users seem to have achieved some degree of reusability of the models.

See this discussion.
#5867 (comment)

Let us know if you have questions.

@baywet baywet added status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close type:question An issue that's a question and removed status:waiting-for-triage An issue that is yet to be reviewed or assigned type:feature New experience request labels Dec 17, 2024
@baywet baywet moved this from Needs Triage 🔍 to Waits for author 🔁 in Kiota Dec 17, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Csharp Pull requests that update .net code Status: No Recent Activity status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close type:question An issue that's a question
Projects
Status: Waits for author 🔁
Development

No branches or pull requests

2 participants