You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The OpenApiFilter service does not copy all references from the original document. #1799
changed the title [-]The OpenApiFilter services does not copy all references in the document.[/-][+]The OpenApiFilter service does not copy all references from the original document.[/+]on Aug 29, 2024
servers:
- url: '{protocol}://{hostname}/api/v3'variables:
hostname:
default: HOSTNAMEdescription: Self-hosted Enterprise Server or Enterprise Cloud hostnameprotocol:
default: httpdescription: Self-hosted Enterprise Server or Enterprise Cloud protocol
Server URLs for plugin generation always need to be absolute and start with https. So this is making the integration to fail in TTK.
No this seems to be a completely different issue as server information seems to get lost during copying. Let me investigate and work on a separate fix for this.
Activity
[-]The OpenApiFilter services does not copy all references in the document.[/-][+]The OpenApiFilter service does not copy all references from the original document.[/+]maisarissi commentedon Aug 29, 2024
Hey Andrew Omondi (@andrueastman) Maggie Kimani (@MaggieKimani1) , will this also fix the issue of having "relative path" in the server URL?
I noticed yesterday by using Kiota that given this OpenAPI description: https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.json my sliced OpenAPI description was also changing the server URL to:
Server URLs for plugin generation always need to be absolute and start with https. So this is making the integration to fail in TTK.
MaggieKimani1 commentedon Aug 30, 2024
No this seems to be a completely different issue as server information seems to get lost during copying. Let me investigate and work on a separate fix for this.
andrueastman commentedon Aug 30, 2024
Hey Maísa Rissi (@maisarissi),
Any chance you can double check this for us?
The description at https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/ghes-3.0/ghes-3.0.json

seems to replicate your scenario as the original server object is as you say.
However, using the document at https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.json which you shared does not replicate this scenario.
maisarissi commentedon Aug 30, 2024
Just figured out the issue.
First time, I ran the deep link using the https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/ghes-3.0/ghes-3.0.json
Kiota has copied the original OpenAPI description into the
.kiotafolder. But because we were having the issue with theRef Examplesand the server URL, I changed to https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.jsonI guess Kiota was still using the local copy rather then the new URL.