(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.
(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.
(describe schema desc & kvs)
Attach description and possibly other meta-data to a schema.
Attach description and possibly other meta-data to a schema.
(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.
(json-schema-meta schema)
Select interesting keys from meta-data of schema.
Select interesting keys from meta-data of schema.
(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.
(schema-object schema)
Returns a JSON Schema object of a plain map schema.
Returns a JSON Schema object of a plain map schema.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close