# JSON Schema for DSL Query Language

**URL:** https://discuss.elastic.co/t/json-schema-for-dsl-query-language/386415
**Category:** Elasticsearch
**Created:** [May 20, 2026, 1:24am UTC](https://discuss.elastic.co/t/json-schema-for-dsl-query-language/386415 "2026-05-20T01:24:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![aidin](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@aidin](https://discuss.elastic.co/u/aidin)
#### Post date: [May 20, 2026, 1:24am UTC](https://discuss.elastic.co/t/json-schema-for-dsl-query-language/386415/1 "2026-05-20T01:24:11Z")

</div>

Hi,

Is there a JSON Schema definition for the DSL Query language?

I found some old topics here without an answer. I was wondering if a schema has been created since then.

There are definitions for the entire API, but not for the DSL language (which is part of the API): [elasticsearch/rest-api-spec/src/main/resources/rest-api-spec/api at master · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/tree/master/rest-api-spec/src/main/resources/rest-api-spec/api)

Many thanks,

Aidin.

---

<div class="post-metadata">

### Author: ![john-wagster](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john-wagster/32/139021_2.png) [@john-wagster](https://discuss.elastic.co/u/john-wagster)
#### Post date: [May 20, 2026, 1:54am UTC](https://discuss.elastic.co/t/json-schema-for-dsl-query-language/386415/2 "2026-05-20T01:54:19Z")

</div>

I'm not 100% sure if this is what you are hoping for but we have this: [GitHub - elastic/elasticsearch-specification · GitHub](https://github.com/elastic/elasticsearch-specification) which you can use to generate a JSON schema for all of the apis.
