CrossClj

0.26.0 docs

SourceDocs



RECENT
    VARS
    *ignore-missing-mappings*
    ->FieldSchema
    ->swagger
    additional-properties
    assoc-collection-format
    coll-schema
    convert-class
    describe
    field
    json-schema-meta
    JsonSchema
    key-name
    map->FieldSchema
    maybe?
    merge-meta
    not-supported!
    predicate-name-to-class
    properties
    reference
    reference?
    schema-object
    try->swagger

    « Index of all namespaces of this project

    (->FieldSchema schema)
    Positional factory function for class ring.swagger.json_schema.FieldSchema.
    
    (->swagger x)(->swagger x options)
    (additional-properties schema)
    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.
    Private
    (coll-schema e options)
    (describe schema desc & kvs)
    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.
    (json-schema-meta schema)
    Select interesting keys from meta-data of schema.
    
    protocol
    (convert this options)
    (map->FieldSchema m__7585__auto__)
    Factory function for class ring.swagger.json_schema.FieldSchema, taking a map of keywords to field values.
    
    (maybe? schema)
    (merge-meta m x {:keys [:ring.swagger.json-schema/no-meta :key-meta]})
    (not-supported! e)
    (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.
    (schema-object schema)
    Returns a JSON Schema object of a plain map schema.
    
    Private
    (try->swagger v k key-meta)