{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "CounterMethod", "anyOf": [ { "type": "object", "required": [ "Increment" ], "properties": { "Increment": { "type": "object" } } }, { "type": "object", "required": [ "Reset" ], "properties": { "Reset": { "type": "object", "required": [ "count" ], "properties": { "count": { "type": "integer", "format": "int32" } } } } } ] }