Apicurio Registry artifact and rule reference
This chapter provides details on the supported artifact types, states, metadata, and content rules that are stored in Apicurio Registry.
-
For more detailed information, see the Apicurio Registry REST API documentation.
Apicurio Registry artifact types
You can store and manage a wide range of schema and API artifact types in Apicurio Registry.
Type | Description |
---|---|
|
AsyncAPI specification |
|
Apache Avro schema |
|
GraphQL schema |
|
JSON Schema |
|
Apache Kafka Connect schema |
|
OpenAPI specification |
|
Google protocol buffers schema |
|
Web Services Definition Language |
|
Extensible Markup Language |
|
XML Schema Definition |
Apicurio Registry artifact states
The valid artifact states in Apicurio Registry are ENABLED
, DISABLED
, and DEPRECATED
.
State | Description |
---|---|
|
Basic state, all the operations are available. |
|
The artifact and its metadata is viewable and searchable using the Apicurio Registry web console, but its content cannot be fetched by any client. |
|
The artifact is fully usable but a header is added to the REST API response whenever the artifact content is fetched. The Apicurio Registry Rest Client will also log a warning whenever it sees deprecated content. |
Apicurio Registry artifact metadata
When an artifact is added to Apicurio Registry, a set of metadata properties is stored along with the artifact content. This metadata consists of a set of generated read-only properties, along with some properties that you can set.
Property | Type |
---|---|
|
integer |
|
string |
|
date |
|
integer |
|
string |
|
string |
|
string |
|
date |
|
array of ArtifactReference |
|
ArtifactType |
|
integer |
Property | Type |
---|---|
|
string |
|
array of string |
|
string |
|
map |
|
ArtifactState |
-
You can use the Apicurio Registry REST API to update the set of editable properties using the metadata endpoints.
-
You can edit the
state
property only by using the state transition API. For example, you can mark an artifact asdeprecated
ordisabled
.
For more details, see the /artifacts/{artifactId}/meta
endpoint in the Apicurio Registry REST API documentation.
Apicurio Registry content rule types
You can specify VALIDITY
, COMPATIBILITY
, and INTEGRITY
rule types to govern content evolution in Apicurio Registry. Theses rule types apply to both global rules and artifact-specific rules.
Type | Description |
---|---|
|
Validate content before adding it to Apicurio 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:
|
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 |
None |
Full |
AsyncAPI |
Syntax Only |
None |
Full |
GraphQL |
Syntax Only |
None |
Mapping detection not supported |
Kafka Connect |
Syntax Only |
None |
Mapping detection not supported |
WSDL |
Full |
None |
Mapping detection not supported |
XML |
Full |
None |
Mapping detection not supported |
XSD |
Full |
None |
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 |