(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.
(closed? schema)
(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.
(empty-trace)
(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.
(in-schema {:schema/keys [in]})
(integrity wf)
(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.
(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
(map-schema? schema)
(merge-trace trace {:keys [no-schema runtime passed conflict]})
(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.
(rank score)
(rank-flow chain {:flow/keys [id] :as flow})
(score rank)
Converts a rank into an integer that preserves the ordering.
Converts a rank into an integer that preserves the ordering.
(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:
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}}
(underspecified? integrity)
Does the chain contain one non no-schema integrity rank?
Does the chain contain one non no-schema integrity rank?
(unspecified? chain)
Are all links in the chain :no-schema?
Are all links in the chain :no-schema?
(with-io o m)
Attaches the io schema to the object
Attaches the io schema to the object
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close