Apicurio Registry content rule reference
Apicurio Registry supports content rules that govern how artifacts evolve. The following sections describe the available rule types, their maturity level for each artifact type, and the order of precedence when both artifact-specific and global rules are configured.
Apicurio Registry content rule types
You can specify VALIDITY, COMPATIBILITY, and INTEGRITY rule types to govern content evolution in Apicurio Registry. These rule types apply to both global rules and artifact-specific rules.
| Type | Description |
|---|---|
|
Validates content before adding it to Apicurio Registry. The possible configuration values for this rule are as follows:
|
|
Enforces a compatibility level when updating artifacts (for example,
|
|
Enforces artifact reference integrity when creating or updating artifacts. This rule ensures that artifact references are correct. The possible configuration values for this rule are as follows:
|
Apicurio Registry content rule maturity
Not all content rules are fully implemented for every artifact type supported by Apicurio 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 |
OpenAPI |
Full |
Full |
Full |
AsyncAPI |
Syntax Only |
None |
Full |
GraphQL |
Syntax Only |
None |
Mapping detection not supported |
Kafka Connect |
Syntax Only |
None |
Mapping detection not supported |
Thrift |
Syntax Only |
None |
Mapping detection not supported |
WSDL |
Full |
None |
Mapping detection not supported |
XML |
Full |
None |
Mapping detection not supported |
XSD |
Full |
Full |
Mapping detection not supported |
Apicurio Registry content rule precedence
When you add or update an artifact, Apicurio 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 |
