Liking cljdoc? Tell your friends :D

s-exp.legba.openapi-schema


get-schemaclj

(get-schema schema-registry schema-uri json-pointer)

Returns json-schema from schema-registry at schema-uri/json-pointer

Returns json-schema from schema-registry at `schema-uri`/`json-pointer`
raw docstring

load-schemaclj

(load-schema schema-uri)

Loads JSON or YAML schema from schema-uri and returns map (of :openapi-schema, :schema-uri, :schema-registry) that contains all the necessary information to perform validate! calls later (minus a JSON pointer).

Loads JSON or YAML schema from `schema-uri` and returns
map (of :openapi-schema, :schema-uri, :schema-registry) that contains all the
necessary information to perform `validate!` calls later (minus a JSON
pointer).
raw docstring

schema-registry-configclj

Default reusable SchemaRegistryConfig instance.

This configures the validator to:

  • Enable JSON Schema reference preloading and caching
  • Enable format assertions (per the JSON Schema spec)
  • Set maximum reference nesting depth to 40
  • Handle nullable fields correctly
  • Use JSON_PATH for error paths in validation results

This config can be reused for schema load/validation for performance and consistency.

Default reusable `SchemaRegistryConfig` instance.

This configures the validator to:
- Enable JSON Schema reference preloading and caching
- Enable format assertions (per the JSON Schema spec)
- Set maximum reference nesting depth to 40
- Handle `nullable` fields correctly
- Use `JSON_PATH` for error paths in validation results

This config can be reused for schema load/validation for performance and consistency.
raw docstring

validateclj

(validate {:as _schema :keys [schema-uri schema-registry]}
          sub-schema
          val
          &
          {:as _opts
           :keys [validation-result]
           :or {validation-result json-schema/validation-result}})

Validates a val against schema

Validates a `val` against `schema`
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close