public JsonSchemaConditional( JsonSchemaConstraint @if, JsonSchemaConstraint?then = null, JsonSchemaConstraint? @else = null) { If = CheckValue(@if, nameof(@if)); Check(then != null || @else != null, "Either 'then' or 'else' clause should be set."); Then = then; Else = @else; }
public JsonSchemaNot(JsonSchemaConstraint not) { this.not = CheckValue(not, nameof(not)); }