f5devcentral / BigStats

Push BIG-IP stats to remote destinations: http(s), statsd, etc
MIT License
14 stars 9 forks source link

Conditional schema validation when using kafka is not working #82

Closed aknot242 closed 5 years ago

aknot242 commented 5 years ago

The following should fail validation, but does not:

{ 'destination': { 'protocol': 'kafka', 'address': '192.168.1.42', 'port': 8080, 'kafka': { 'topic': 'bob' } }, 'size': 'small', 'interval': 10, 'enabled': true, 'debug': false }

aknot242 commented 5 years ago

Needed to move the kafka subschema outside of the if condition