Kong / openapi2kong

Lib to convert OpenAPI specs into Kong specs
Apache License 2.0
11 stars 1 forks source link

openapi2kong learnservice_oas.yaml fails on MacOS #24

Open tomereli opened 2 months ago

tomereli commented 2 months ago

This seems similar to https://github.com/Kong/kong/issues/4485. I followed the instructions in the README on my M1 Mac (MacOS):

# NOTE: this is meant to run an a Kong system, not on a standalone Lua installation
$ git clone https://github.com/kong/openapi2kong
$ cd openapi2kong
$ luarocks make

It installed openapi2kong successfully, but when I tried running it on the example, it failed:

image

P.S. why does it say openapi2kong is deprecated? Should I use Insomnia CLI instead?

Tieske commented 2 months ago

It has been deprecated, was replaced by Insomnia CLI (inso), which has already been replaced again with a new implementation in decK, here's how to get started: https://docs.konghq.com/deck/latest/guides/apiops/

Tieske commented 2 months ago

as for the error, it seems you are running Lua 5.4. Whereas this module was shipped with Kong, which runs on LuaJIT (which is compatible with Lua 5.1/5.2).