-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Description
It seems that restish does not work with openapi: 3.1.0. I might be wrong tho, still digging.
I'm trying to hack several things together so I have a convenient environment, main parts are:
- https://world.openfoodfacts.net — Public HTTP API, it's kinda OpenAPI but missing few pieces here and there.
restish— best tool in known universe for peeking on HTTP APIs.docs/api/ref/— directory with API specs which I try to have locally sorestishcould give me nice CLI UX.
Below are the main steps I'm currently following:
- Clone repo with API specs:
git clone https://github.com/openfoodfacts/openfoodfacts-server.git /tmp/openfoodfacts-server- Configure
restishto use local specs:
{
"$schema": "https://rest.sh/schemas/apis.json",
"openfoodfacts": {
"base": "https://world.openfoodfacts.net/api/v2",
"spec_files": ["/workspaces/amp-python/openfoodfacts.yaml"],
"profiles": {
"default": {
"auth": {
"name": ""
}
}
},
"tls": {}
}
}- Watch my hopes and dreams burn:
$ restish openfoodfacts --help
panic: spec type not supported by libopenapi, sorry
goroutine 1 [running]:
github.com/rest-sh/restish/cli.Run()
/go/pkg/mod/github.com/rest-sh/[email protected]/cli/cli.go:822 +0xf45
main.main()
/go/pkg/mod/github.com/rest-sh/[email protected]/main.go:40 +0x245
I'm somewhat interested in two options:
- Suggestions on where to apply duct tape to make it work at least locally.
- Suggestions on how to fix it in upstream.
Meanwhile I will try to downgrade specs to v2.
Metadata
Metadata
Assignees
Labels
No labels