Liking cljdoc? Tell your friends :D

schema.experimental.abstract-map

Schemas representing abstract classes and subclasses

Schemas representing abstract classes and subclasses
raw docstring

abstract-map-schemaclj/s

(abstract-map-schema dispatch-key schema)

Inputs: [dispatch-key :- s/Keyword schema :- (s/pred map?)]

A schema representing an 'abstract class' map that must match at least one concrete subtype (indicated by the value of dispatch-key, a keyword). Add subtypes by calling extend-schema.

Inputs: [dispatch-key :- s/Keyword schema :- (s/pred map?)]

A schema representing an 'abstract class' map that must match at least one concrete
 subtype (indicated by the value of dispatch-key, a keyword).  Add subtypes by calling
 `extend-schema`.
raw docstring

AbstractSchemacljs


extend-schemacljmacro

(extend-schema schema-name extensible-schema dispatch-values extension)

open-abstract-map-schemaclj/s

(open-abstract-map-schema dispatch-key schema)

Inputs: [dispatch-key :- s/Keyword schema :- (s/pred map?)]

Like abstract-map-schema, but allows unknown types to validate (for, e.g. forward compatibility).

Inputs: [dispatch-key :- s/Keyword schema :- (s/pred map?)]

Like abstract-map-schema, but allows unknown types to validate (for, e.g. forward
 compatibility).
raw docstring

PExtensibleSchemaclj/s≠protocol

extend-schema!clj/s

(extend-schema! this extension schema-name dispatch-values)

SchemaExtensioncljs


sub-schemasclj/s

(sub-schemas abstract-schema)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close