Liking cljdoc? Tell your friends :D

flanders.ocsf


->flandersclj/s

(->flanders v)
(->flanders {:strs [attributes description]} opts)

Converts parsed OCSF schemas to Flanders.

Converts parsed OCSF schemas to Flanders.
sourceraw docstring

parse-attributeclj/s

(parse-attribute [k
                  {:strs [description requirement enum type is_array caption]}]
                 _opts)
source

parse-exported-schemasclj/s

(parse-exported-schemas export)
(parse-exported-schemas export opts)

Takes the result of https://schema.ocsf.io/export/schema parsed as edn and updates the base_event, objects and classes schemas to flanders.

Flanders includes a dependency on https://github.com/frenchy64/ocsf-schema-export which provides OCSF schemas on the classpath.

Example: (parse-exported-schemas (-> "threatgrid/ocsf-1.3.0-export.json" io/resource slurp json/decode))

Takes the result of https://schema.ocsf.io/export/schema parsed as edn
and updates the base_event, objects and classes schemas to flanders.

Flanders includes a dependency on https://github.com/frenchy64/ocsf-schema-export
which provides OCSF schemas on the classpath.

Example:
(parse-exported-schemas (-> "threatgrid/ocsf-1.3.0-export.json" io/resource slurp json/decode))
sourceraw docstring

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

× close