Solace Schema Registry Content Rule Reference
This section provides reference information on the supported content rule types, their level of support for artifact types, and order of precedence of artifact-specific and global rules.
For more information, see the Solace Schema Registry REST API documentation.
Solace Schema Registry Content Rule Types
You can specify VALIDITY
, COMPATIBILITY
, and INTEGRITY
rule types to govern content evolution in Solace Schema Registry. These rule types apply to both global rules and artifact-specific rules.
Type | Description |
---|---|
|
Validate content before adding it to Solace Schema Registry. The possible configuration values for this rule are as follows:
|
|
Enforce a compatibility level when updating artifacts (for example, select
|
|
Enforce artifact reference integrity when creating or updating artifacts. Enable and configure this rule to ensure that any artifact references provided are correct. The possible configuration values for this rule are as follows:
|
Solace Schema Registry Content Rule Maturity
Not all content rules are fully implemented for every artifact type supported by Solace Schema Registry. The following table shows the current maturity level for each rule and artifact type:
Artifact type | Validity rule | Compatibility rule | Integrity rule |
---|---|---|---|
Avro |
Full |
Full |
Full |
Protobuf |
Full |
Full |
Full |
JSON Schema |
Full |
Full |
Mapping detection not supported |
XML |
Full |
None |
Mapping detection not supported |
Solace Schema Registry Content Rule Precedence
When you add or update an artifact, Solace Schema Registry applies rules to check the validity, compatibility, or integrity of the artifact content. Configured artifact-specific rules override the equivalent configured global rules, as shown in the following table.
Artifact-specific rule | Global rule | Rule applied to this artifact | Global rule available for other artifacts? |
---|---|---|---|
Enabled |
Enabled |
Artifact-specific |
Yes |
Disabled |
Enabled |
Global |
Yes |
Disabled |
Disabled |
None |
No |
Enabled, set to None |
Enabled |
None |
Yes |
Disabled |
Enabled, set to None |
None |
No |