BUG/MINOR: stats: fix validity of the json schema
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 2 Oct 2020 16:31:59 +0000 (18:31 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 5 Oct 2020 07:06:06 +0000 (09:06 +0200)
commita53ce4cc011250a0e561f4e5bb62f46719813534
tree05606f925b219b33b592d446495a7f560be49474
parentcd3de507794b4f063aa1e7f43b55b27998d7ee7d
BUG/MINOR: stats: fix validity of the json schema

The json schema seems to be invalid when checking using the validator
from https://www.jsonschemavalidator.net/. Correct it using the
following specification :
http://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.9.1

The impact of the bug it not well known as I am not sure of how useful
the json schema is for users. It is probably not used at all or else
this bug would have been reported.

This should be backported up to 1.8.
src/stats.c