Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support endpoints and request types in openapi_to_clients_schema #3093

Open
pquentin opened this issue Nov 5, 2024 · 0 comments
Open

Support endpoints and request types in openapi_to_clients_schema #3093

pquentin opened this issue Nov 5, 2024 · 0 comments
Assignees

Comments

@pquentin
Copy link
Member

pquentin commented Nov 5, 2024

🚀 Feature Proposal

https://github.com/elastic/elasticsearch-specification/tree/main/compiler-rs/openapi_to_clients_schema is an experiment to generate a schema.json file from an OpenAPI specification. It was abandoned when we realized that doing this is not possible in general. But if we target the Kibana OpenAPI specification in particular, this is much more tractable.

We should support endpoints and request types in order to generate a simple schema.json for the Kibana SystemStatus API.

Motivation

This can be a building block to eventually get Kibana language clients:

from elasticsearch import Kibana

client = Kibana(
    hosts="http://localhost:5601",
    api_key="...",
)
resp = client.system_status()
assert resp.body["status"]["overall"]["level"] == "available"
@pquentin pquentin self-assigned this Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant