Error importing openapi spec

Not applicable

Error importing openapi spec

Hello,

I am trying out the add my first api tutorial but I am running into issues when i choose the openapi option

I am getting the following error when i try to import openapi spec to create api proxy. Can someone help me out please. I have searched the portal but i cant find any solution.

Error using OpenAPI: JS-YAML: end of the stream or a document separator is expected at line 7, column 19: <head prefix="og: http://ogp.me/ns# fb: http://o ... ^

0 5 915
5 REPLIES 5

harsh
New Member

@Stephen Tom How are you trying to import the OpenAPI spec? Can you share the url if it is public?

llynch
New Member

Hi Stephen,

Can you also clarify which tutorial you are stepping through? Hopefully, we can help you resolve the issue!

Liz

Hi Liz,

I am stepping through the "Create an API proxy from an OpenAPI specification. I provide a github URL foras the openapi spec yaml file

llynch
New Member

Hi Stephen,

Thanks for the details!

I think I see the issue. Can you try using the RAW version of the spec:

https://raw.githubusercontent.com/ozave/passle-swagger/master/swagger.yaml

Let us know if it works!!

Thanks,

Liz