confluent-kafka-dotnet
Show / Hide Table of Contents

Class ValidationRule

An inline validation rule (a CHECK constraint) declared on a schema, either on a record/message/object or on one of its fields.

Inheritance
object
ValidationRule
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Confluent.SchemaRegistry
Assembly: Confluent.SchemaRegistry.dll
Syntax
public class ValidationRule

Properties

Doc

Human readable documentation, used as the failure message when the rule itself does not supply one.

Declaration
[JsonProperty("doc")]
public string Doc { get; set; }
Property Value
Type Description
string

Expr

The rule expression.

Declaration
[JsonProperty("expr")]
public string Expr { get; set; }
Property Value
Type Description
string

Name

The rule name.

Declaration
[JsonProperty("name")]
public string Name { get; set; }
Property Value
Type Description
string

Sql

The equivalent SQL expression, if any. Carried for parity with the other clients and used only in failure messages.

Declaration
[JsonProperty("sql")]
public string Sql { get; set; }
Property Value
Type Description
string
In this article