-
Notifications
You must be signed in to change notification settings - Fork 210
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
Duplicate Items Found in Parsing Kiota Generated OAD #5468
Comments
fey101
added
type:bug
A broken experience
status:waiting-for-triage
An issue that is yet to be reviewed or assigned
labels
Sep 25, 2024
Thanks for raising this @fey101 Looks like the issue is caused by the openApi.Net library and opened the issue for the same at microsoft/OpenAPI.NET#1840. |
andrueastman
added
blocked
This work can't be done until an external dependent work is done.
and removed
status:waiting-for-triage
An issue that is yet to be reviewed or assigned
labels
Sep 26, 2024
@fey101 I believe this is now resolved with microsoft/OpenAPI.NET#1841 and now available via https://www.nuget.org/packages/Microsoft.OpenApi/1.6.22 Any chance you can validate and close? |
andrueastman
removed
the
blocked
This work can't be done until an external dependent work is done.
label
Sep 30, 2024
Dependency bumped via #5502 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What are you generating using Kiota, clients or plugins?
Kiota plugin
In what context or format are you using Kiota?
Windows executable
Client library/SDK language
None
Describe the bug
Am getting errors with generated openapi file, generated based on the admin endpoint of msgraph. To generate, run the command below
plugin add --plugin-name MicrosoftGraph -d https://raw.githubusercontent.com/microsoftgraph/msgraph-metadata/master/openapi/v1.0/openapi.yaml -i **/admin/** --type ApiPlugin -o <output-path> --ll Debug
Getting errors below:
Swagger schema validation failed. #/paths/~1admin~1edge~1internetExplorerMode~1siteLists~1{browserSiteList-id}/parameters must NOT have duplicate items (items ## 1 and 2 are identical) #/paths/~1admin~1edge~1internetExplorerMode~1siteLists~1{browserSiteList-id}~1sharedCookies/parameters must NOT have duplicate items (items ## 0 and 1 are identical) #/paths/~1admin~1edge~1internetExplorerMode~1siteLists~1{browserSiteList-id}~1sharedCookies~1{browserSharedCookie-id}/parameters must NOT have duplicate items (items ## 3 and 5 are identical) #/paths/~1admin~1edge~1internetExplorerMode~1siteLists~1{browserSiteList-id}~1sites/parameters must NOT have duplicate items (items ## 0 and 1 are identical) #/paths/~1admin~1edge~1internetExplorerMode~1siteLists~1{browserSiteList-id}~1sites~1{browserSite-id}/parameters must NOT have duplicate items (items ## 3 and 5 are identical) #/paths/~1admin~1people~1profileCardProperties~1{profileCardProperty-id}/parameters must NOT have duplicate items (items ## 1 and 2 are identical) #/paths/~1admin~1serviceAnnouncement~1healthOverviews~1{serviceHealth-id}/parameters must NOT have duplicate items (items ## 1 and 2 are identical) #/paths/~1admin~1serviceAnnouncement~1healthOverviews~1{serviceHealth-id}~1issues/parameters must NOT have duplicate items (items ## 0 and 1 are identical) #/paths/~1admin~1serviceAnnouncement~1healthOverviews~1{serviceHealth-id}~1issues~1{serviceHealthIssue-id}/parameters must NOT have duplicate items (items ## 3 and 5 are identical) #/paths/~1admin~1serviceAnnouncement~1issues~1{serviceHealthIssue-id}/parameters must NOT have duplicate items (items ## 1 and 2 are identical) #/paths/~1admin~1serviceAnnouncement~1messages~1{serviceUpdateMessage-id}/parameters must NOT have duplicate items (items ## 1 and 2 are identical) #/paths/~1admin~1serviceAnnouncement~1messages~1{serviceUpdateMessage-id}~1attachments/parameters must NOT have duplicate items (items ## 0 and 1 are identical) #/paths/~1admin~1serviceAnnouncement~1messages~1{serviceUpdateMessage-id}~1attachments~1{serviceAnnouncementAttachment-id}/parameters must NOT have duplicate items (items ## 3 and 5 are identical) #/paths/~1admin~1serviceAnnouncement~1messages~1{serviceUpdateMessage-id}~1attachments~1{serviceAnnouncementAttachment-id}~1content/parameters must NOT have duplicate items (items ## 3 and 5 are identical) #/paths/~1admin~1serviceAnnouncement~1messages~1{serviceUpdateMessage-id}~1attachmentsArchive/parameters must NOT have duplicate items (items ## 1 and 2 are identical)
Expected behavior
Generated OAD should not fail swagger parser validations.
How to reproduce
kiota plugin add --plugin-name MicrosoftGraph -d https://raw.githubusercontent.com/microsoftgraph/msgraph-metadata/master/openapi/v1.0/openapi.yaml -i **/admin/** --type ApiPlugin -o <output-path> --ll Debug
Open API description file
No response
Kiota Version
v1.19.0-preview.20240920002
Latest Kiota version known to work for scenario above?(Not required)
No response
Known Workarounds
No response
Configuration
No response
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: