kubeshop / kusk-gateway

Kusk-gateway is an OpenAPI-driven API Gateway for Kubernetes
https://kubeshop.github.io/kusk-gateway/
MIT License
264 stars 21 forks source link

Kusk extension for VS-Code #410

Open olensmar opened 2 years ago

olensmar commented 2 years ago

I'm often editing OpenAPI definitions in VS-Code and would like to have integrated support for x-kusk extensions - helping me add them correctly and at the right level. I would also like to deploy my OpenAPI definition directly to Kusk Gateway from there - or run it through Kusk-gen.

The extension support could work as follows: when opening an OpenAPI definition

mbana commented 2 years ago

Quick update:

Screenshot from 2022-05-18 16-38-14

When I was looking at the documentation, I saw that we if want to get a verified badge (to show that it's Kubeshop), we might need to follow these steps.:

I think it requires creating records in the domain to prove that it's Kubeshop.

aabedraba commented 2 years ago

Maybe we can go for something like the json-schema $schema keyword: https://json-schema.org/draft/2020-12/json-schema-core.html#rfc.section.8.1.1

I've seen used by krakend; you put it at the top of the file, and any editor will automatically validate the json.

Wonder if it's possible to investigate YAML-schema https://asdf-standard.readthedocs.io/en/latest/schemas/yaml_schema.html