Liking cljdoc? Tell your friends :D

missinterpret.flows.schema


add-metaclj

(add-meta o m)

Adds the map keys to the existing metadata of the object.

Adds the map keys to the existing metadata of the
object.
raw docstring

closed?clj

(closed? schema)

compatible?clj

(compatible? src dest)

Does a value which conforms to the source schema validate against the destination schema?

NOTE: The source schema MUST be able to generate a value via mg/generate.

Does a value which conforms to the source schema
validate against the destination schema?

NOTE: The source schema MUST be able to generate
      a value via mg/generate.
raw docstring

empty-traceclj

(empty-trace)

extract-integrityclj

(extract-integrity wf)

If the workflow's metadata contains the schema integrity it is returned. Otherwise nil.

If the workflow's metadata contains the schema integrity
it is returned. Otherwise nil.
raw docstring

in-schemaclj

(in-schema {:schema/keys [in]})

integrityclj

(integrity wf)

ioclj

(io o)

Returns the input/output schema of an object when added as metadata that matches the missinterpret.flows.spec/Defn* schema. (i.e. {:schema/in, :schema/out})

Impl Note:

When defn evaluates it generates a class with name as per (munge fn-symbol). The demunge function will reverse this operation.

From the class name of a Fn object we can get the symbol back, and from the symbol, we look up the var which has the metadata attached to it.

Returns the input/output schema of an object when
added as metadata that matches the missinterpret.flows.spec/Defn*
schema. (i.e. {:schema/in, :schema/out})

Impl Note:

When defn evaluates it generates a class with name as per (munge fn-symbol).
The demunge function will reverse this operation.

From the class name of a Fn object we can get the symbol back, and from the symbol,
we look up the var which has the metadata attached to it.
raw docstring

lowest-rankclj

(lowest-rank chain)

Returns the lowest ranking in the chain of flow integrity entities.

For example: [:strict :conflict] would return :conflict

NOTE: Skips :no-schema when evaluating

Returns the lowest ranking in the chain
of flow integrity entities.

For example: [:strict :conflict]
would return :conflict

NOTE: Skips :no-schema when evaluating
raw docstring

map-schema?clj

(map-schema? schema)

merge-traceclj

(merge-trace trace {:keys [no-schema runtime passed conflict]})

merge-tracesclj

(merge-traces chain)

Collects and merges the :no-schema, runtime, passed and conflict traces from the chain.

Collects and merges the `:no-schema`, `runtime`, `passed` and `conflict`
traces from the chain.
raw docstring

rankclj

(rank score)

rank-flowclj

(rank-flow chain {:flow/keys [id] :as flow})

scoreclj

(score rank)

Converts a rank into an integer that preserves the ordering.

Converts a rank into an integer that preserves
the ordering.
raw docstring

trace-keyclj

(trace-key chain kw)

Traces the origin on the keyword to a previous entity in the chain.

It searches by working backward from the last entity in the chain applying the heuristic:

  • Entity does not have a schema - skipped
  • Entity has a closed schema before key is found -> {:conflict #{ID-of-entity}} Note this does not conform to the general trace schema
  • A schema of an entity has the keyword -> {:passed {KW ID}}
  • The end of the chain is reached without finding the keyword -> {:runtime #{kw}}
Traces the origin on the keyword to a previous
entity in the chain.

It searches by working backward from the last
entity in the chain applying the heuristic:

- Entity does not have a schema - skipped
- Entity has a closed schema before key is found
  -> {:conflict #{ID-of-entity}}
     Note this does not conform to the general trace schema
- A schema of an entity has the keyword
   -> {:passed {KW ID}}
- The end of the chain is reached without finding the keyword
  -> {:runtime #{kw}}
raw docstring

underspecified?clj

(underspecified? integrity)

Does the chain contain one non no-schema integrity rank?

Does the chain contain one non no-schema
integrity rank?
raw docstring

unspecified?clj

(unspecified? chain)

Are all links in the chain :no-schema?

Are all links in the chain :no-schema?
raw docstring

with-ioclj

(with-io o m)

Attaches the io schema to the object

Attaches the io schema to the object
raw docstring

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

× close