Liking cljdoc? Tell your friends :D

json-schema.infer


infer-strictclj

(infer-strict data
              &
              [{:keys [schema-name schema uri description type-meta]
                :as params}])

Naive but strict schema inference from associative data. Strict in the sense that everything is required, and nothing else is allowed.

Optional params:

  • schema-name - translates to schema title
  • uri - uri for the schema
  • description - description for the schema
  • schema - if you already started on a schema def
  • type-meta - extra meta data for properties (WIP!)
Naive but strict schema inference from associative data.
Strict in the sense that everything is required, and nothing
else is allowed.

Optional params:
- schema-name - translates to schema title
- uri - uri for the schema
- description -  description for the schema
- schema - if you already started on a schema def
- type-meta - extra meta data for properties (WIP!)
sourceraw docstring

infer-strict->jsonclj

(infer-strict->json data params)

A helper function that returns inferred schema as JSON

A helper function that returns inferred schema as JSON
sourceraw docstring

sanitize-keyclj

(sanitize-key k)
source

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

× close