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;
 }
示例#2
0
 public JsonSchemaNot(JsonSchemaConstraint not)
 {
     this.not = CheckValue(not, nameof(not));
 }