embedded-jmxtrans icon indicating copy to clipboard operation
embedded-jmxtrans copied to clipboard

Configuration validation

Open aadamovich opened this issue 11 years ago • 2 comments

It would be benefitial if JMXtrans reported non-valid configuration and invalid property names

aadamovich avatar Mar 25 '14 12:03 aadamovich

It's a kind of drawback of json over xml. It is very hard to identify the json nodes that are ignored.

I would not want to raise an exception in case of unexpected node because suffixing json node names is a common way to comment blocks in json (json does not have an equivalent for ).

Cyrille

cyrille-leclerc avatar Mar 25 '14 22:03 cyrille-leclerc

I agree, exception would probably be too much, but a validation notice on debug or warning output will be beneficial. This will help catching misspelled configuration property names. Probably. JSON shema validator can be used for this or some simpler approach.

aadamovich avatar Mar 26 '14 00:03 aadamovich