Liking cljdoc? Tell your friends :D

ring.swagger.json-schema


*ignore-missing-mappings*clj

source

->swaggerclj

(->swagger x)
(->swagger x options)
source

additional-propertiesclj

(additional-properties schema)

Generates json-schema additional properties from a plain map schema from under key s/Keyword.

Generates json-schema additional properties from a plain map
schema from under key s/Keyword.
sourceraw docstring

assoc-collection-formatclj

(assoc-collection-format m options)

Add collectionFormat to the JSON Schema if the parameter type is query or formData.

Add collectionFormat to the JSON Schema if the parameter type
is query or formData.
sourceraw docstring

convert-classcljmultimethod

source

describeclj

(describe schema desc & kvs)

Attach description and possibly other meta-data to a schema.

Attach description and possibly other meta-data to a schema.
sourceraw docstring

fieldclj

(field schema meta-data)

Attaches meta-data to a schema under :json-schema key. If the schema is of type which cannot have meta-data (e.g. Java Classes) schema is wrapped first into wrapper Schema.

Attaches meta-data to a schema under :json-schema key. If the
schema is of type which cannot have meta-data (e.g. Java Classes)
schema is wrapped first into wrapper Schema.
sourceraw docstring

json-schema-metaclj

(json-schema-meta schema)

Select interesting keys from meta-data of schema.

Select interesting keys from meta-data of schema.
sourceraw docstring

JsonSchemacljprotocol

convertclj

(convert this options)
source

key-nameclj

(key-name x)
source

maybe?clj

(maybe? schema)
source

merge-metaclj

(merge-meta m x {:keys [:ring.swagger.json-schema/no-meta :key-meta]})
source

not-supported!clj

(not-supported! e)
source

predicate-name-to-classclj

source

propertiesclj

(properties schema)

Take a map schema and turn them into json-schema properties. The result is put into collection of same type as input schema. Thus linked/map should keep the order of items. Returnes nil if no properties are found.

Take a map schema and turn them into json-schema properties.
The result is put into collection of same type as input schema.
Thus linked/map should keep the order of items. Returnes nil
if no properties are found.
sourceraw docstring

referenceclj

(reference e)
source

reference?clj

(reference? m)
source

schema-objectclj

(schema-object schema)

Returns a JSON Schema object of a plain map schema.

Returns a JSON Schema object of a plain map schema.
sourceraw docstring

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

× close