ring.swagger.json-schema
->FieldSchema
(->FieldSchema schema)
Positional factory function for class ring.swagger.json_schema.FieldSchema.
additional-properties
(additional-properties schema)
Generates json-schema additional properties from a plain map schema from under key s/Keyword.
assoc-collection-format
(assoc-collection-format m options)
Add collectionFormat to the JSON Schema if the parameter type is query or formData.
field
(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 s/conditional Schema.
map->FieldSchema
(map->FieldSchema m__6289__auto__)
Factory function for class ring.swagger.json_schema.FieldSchema, taking a map of keywords to field values.
properties
(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.