Enum nakadi_types::event_type::CompatibilityMode [−][src]
pub enum CompatibilityMode { Compatible, Forward, None, }
Expand description
Compatibility mode provides a mean for event owners to evolve their schema, given changes respect the semantics defined by this field.
It’s designed to be flexible enough so that producers can evolve their schemas while not inadvertently breaking existent consumers.
Once defined, the compatibility mode is fixed, since otherwise it would break a predefined contract, declared by the producer.
The default is forward
.
See also Nakadi Manual
Variants
Consumers can reliably parse events produced under different versions. Every event published
since the first version is still valid based on the newest schema. When in compatible mode, it’s allowed to
add new optional properties and definitions to an existing schema, but no other changes are allowed.
Under this mode, the following json-schema attributes are not supported: not
, patternProperties
,
additionalProperties
and additionalItems
. When validating events, additional properties is false
.
Compatible schema changes are allowed. It’s possible to use the full json schema specification for defining schemas. Consumers of forward compatible event types can safely read events tagged with the latest schema version as long as they follow the robustness principle.
Any schema modification is accepted, even if it might break existing producers or consumers. When validating events, no additional properties are accepted unless explicitly stated in the schema.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for CompatibilityMode
impl Send for CompatibilityMode
impl Sync for CompatibilityMode
impl Unpin for CompatibilityMode
impl UnwindSafe for CompatibilityMode
Blanket Implementations
Mutably borrows from an owned value. Read more