Liking cljdoc? Tell your friends :D

ring.swagger.core


basepathclj

(basepath {:keys [scheme server-name server-port headers] :as request})

extract a base-path from ring request. Doesn't return default ports and reads the header "x-forwarded-proto" only if it's set to value "https". (e.g. your ring-app is behind a nginx reverse https-proxy). Adds possible servlet-context when running in legacy app-server.

extract a base-path from ring request. Doesn't return default ports
and reads the header "x-forwarded-proto" only if it's set to value
"https". (e.g. your ring-app is behind a nginx reverse https-proxy).
Adds possible servlet-context when running in legacy app-server.
sourceraw docstring

collect-modelsclj

(collect-models x)

Walks through the data structure and collects all Schemas into a map schema-name->#{values}. Note: schame-name can link to sevetal implementations.

Walks through the data structure and collects all Schemas
into a map schema-name->#{values}. Note: schame-name can link
to sevetal implementations.
sourceraw docstring

contextclj

(context {:keys [servlet-context]})

Context of a request. Defaults to "", but has the servlet-context in the legacy app-server environments.

Context of a request. Defaults to "", but has the
servlet-context in the legacy app-server environments.
sourceraw docstring

fail-on-duplicate-schema!clj

(fail-on-duplicate-schema! schema-name values)
source

handle-duplicate-schemasclj

(handle-duplicate-schemas f schemas)
source

ignore-duplicate-schemasclj

(ignore-duplicate-schemas schema-name values)
source

join-pathsclj

(join-paths & paths)

Join several paths together with "/". If path ends with a slash, another slash is not added.

Join several paths together with "/". If path ends with a slash,
another slash is not added.
sourceraw docstring

name-schemasclj

(name-schemas names schema)
source

path-paramsclj

(path-params s)
source

peek-schemaclj

(peek-schema schema)

Recurisively seeks the first form with schema-name. Walks over sets, vectors and Schema predicates.

Recurisively seeks the first form with schema-name.
Walks over sets, vectors and Schema predicates.
sourceraw docstring

required-keysclj

(required-keys schema)
source

strict-schemaclj

(strict-schema schema)

removes open keys from schema

removes open keys from schema
sourceraw docstring

swagger-pathclj

(swagger-path uri)
source

with-named-sub-schemasclj

(with-named-sub-schemas schema)
(with-named-sub-schemas schema prefix)

Traverses a schema tree of Maps, Sets and Sequences and add Schema-name to all anonymous maps between the root and any named schemas in thre tree. Names of the schemas are generated by the following: Root schema name (or a generated name) + all keys in the path CamelCased

Traverses a schema tree of Maps, Sets and Sequences and add Schema-name to all
anonymous maps between the root and any named schemas in thre tree. Names of the
schemas are generated by the following: Root schema name (or a generated name) +
all keys in the path CamelCased
sourceraw docstring

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

× close