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`.
sourceraw docstring

extend-schemacljmacro

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

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).
sourceraw docstring

PExtensibleSchemaclj/sprotocol

extend-schema!clj/s

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

sub-schemasclj/s

(sub-schemas abstract-schema)
source

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

× close