Liking cljdoc? Tell your friends :D

kafka-metamorphosis.schema

Schema management for Kafka messages

Schema management for Kafka messages
raw docstring

all-ofclj

(all-of & schema-ids)

Create a predicate that validates against all of the given schemas

Create a predicate that validates against all of the given schemas
sourceraw docstring

any-ofclj

(any-of & schema-ids)

Create a predicate that validates against any of the given schemas

Create a predicate that validates against any of the given schemas
sourceraw docstring

consume-schema-messages!clj

(consume-schema-messages! group-id topics schema-id)
(consume-schema-messages! group-id topics schema-id opts)

Consume messages with schema validation.

Consume messages with schema validation.
sourceraw docstring

defschemaclj

(defschema schema-id spec-map)

Define and register a schema with the given ID and specification map.

Returns the schema ID.

Define and register a schema with the given ID and specification map.

Returns the schema ID.
sourceraw docstring

explain-validationclj

(explain-validation message schema-id)

Get detailed validation explanation

Get detailed validation explanation
sourceraw docstring

explain-validation-for-topicclj

(explain-validation-for-topic message topic-name)

Get detailed validation explanation for a topic's schema

Get detailed validation explanation for a topic's schema
sourceraw docstring

get-schemaclj

(get-schema schema-id)

Get a registered schema

Get a registered schema
sourceraw docstring

get-schema-for-topicclj

(get-schema-for-topic topic-name)

Get a schema for a specific topic.

Looks for schemas in this order:

  1. :topic-name/default
  2. :topic-name (direct topic schema)

Examples:

  • (get-schema-for-topic "users") -> looks for :users/default or :users
Get a schema for a specific topic.

Looks for schemas in this order:
1. :topic-name/default
2. :topic-name (direct topic schema)

Examples:
- (get-schema-for-topic "users") -> looks for :users/default or :users
sourceraw docstring

list-schemasclj

(list-schemas)

List all registered schemas

List all registered schemas
sourceraw docstring

list-schemas-for-topicclj

(list-schemas-for-topic topic-name)

List all schemas registered for a specific topic

List all schemas registered for a specific topic
sourceraw docstring

map-ofclj

(map-of key-pred value-pred)

Create a predicate for maps with specific key-value predicates

Create a predicate for maps with specific key-value predicates
sourceraw docstring

max-countclj

(max-count n)

Create a predicate for maximum collection size

Create a predicate for maximum collection size
sourceraw docstring

min-countclj

(min-count n)

Create a predicate for minimum collection size

Create a predicate for minimum collection size
sourceraw docstring

one-ofclj

(one-of & values)

Create a predicate that accepts one of the given values

Create a predicate that accepts one of the given values
sourceraw docstring

schema-refclj

(schema-ref schema-id)

Create a reference to another schema for validation

Create a reference to another schema for validation
sourceraw docstring

send-schema-message!clj

(send-schema-message! topic value schema-id)
(send-schema-message! topic key value schema-id)
(send-schema-message! topic key value schema-id producer-opts)

Send a message validated against a schema.

Send a message validated against a schema.
sourceraw docstring

validate-messageclj

(validate-message message schema-id)

Validate a message against a schema

Validate a message against a schema
sourceraw docstring

validate-message-for-topicclj

(validate-message-for-topic message topic-name)

Validate a message against a topic's schema.

Automatically looks for topic-scoped schemas:

  • (validate-message-for-topic message "users") -> uses :users/default or :users
Validate a message against a topic's schema.

Automatically looks for topic-scoped schemas:
- (validate-message-for-topic message "users") -> uses :users/default or :users
sourceraw docstring

with-schema-deserializationclj

(with-schema-deserialization deserializers schema-id)

Wrap deserializers with schema validation

Wrap deserializers with schema validation
sourceraw docstring

with-schema-serializersclj

(with-schema-serializers serializers schema-id)

Wrap serializers with schema validation

Wrap serializers with schema validation
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close