Hi Amaury,
On Wed, Sep 16, 2020 at 10:13:44AM +0200, Amaury Denoyelle wrote:
> Hi,
>
> I'm currently working on extending the statistisc capabilities for
> HAProxy. My first goal is to design a small API to be able to quickly
> add new counters.
>
> I have a question about the cli command "show schema json". I am not a
> json expert and do not know precisely the purpose of a json schema.
> However, it seems that the currently generated schema is not valid, at
> least by checking on this website :
> https://www.jsonschemavalidator.net/
>
> Is the json schema useful to anyone or can I safely ignore/remove it ?
Just for reference, I've found the commit which added the schema 3.5
years ago:
6f6bb380e ("MEDIUM: stats: Add show json schema")
And the discussion around this was in this thread:
https://www.mail-archive.com/haproxy@formilux.org/msg23173.html
The thread is quite long with multiple proposals, you may be
interested in the discussions there.
In the mean time, if anyone (still) uses it, it would be nice to know :-)
Cheers,
Willy