Json-schema for queries

Hi Everyone,

Are there json-schema’s for druid queries(all of them).

I am looking for a json-schema to validate the given queries in my wrapper api and also the original json-schema helps me api-management.

Thanks in advance.


There aren’t formally written query schemas, although we have docs at http://druid.io/docs/latest/querying/querying.html and, with some elbow grease, you could probably derive them from the Jackson annotations in the code base. Although that might be a bit of a rabbit hole since we use a lot of Jackson features. If I was you I probably would only go that route if I could get Jackson to do the model generation for me.