Modifier and Type | Field and Description |
---|---|
static String |
SWAGGERUI_resolveRefsMaxDepth
Configuration property: Resolve
$ref references in schema up to the specified depth. |
Constructor and Description |
---|
SwaggerUI() |
Modifier and Type | Method and Description |
---|---|
MediaType[] |
forMediaTypes()
This UI applies to HTML requests only.
|
Div |
swap(BeanSession beanSession,
Swagger swagger)
If this transform is to be used to serialize non-serializable POJOs, it must implement this method.
|
forMediaTypes, getNormalClass, getSwapClass, getSwapClassMeta, isNormalObject, isSwappedObject, match, swap, toString, unswap, unswap, withTemplate, withTemplate
public static final String SWAGGERUI_resolveRefsMaxDepth
$ref
references in schema up to the specified depth.
Integer
1
Defines the maximum recursive depth to resolve $ref
variables in schema infos.
The default 1
means only resolve the first reference encountered.
A value of 0
disables reference resolution altogether.
public SwaggerUI()
public MediaType[] forMediaTypes()
forMediaTypes
in class PojoSwap<Swagger,Div>
public Div swap(BeanSession beanSession, Swagger swagger) throws Exception
PojoSwap
The object must be converted into one of the following serializable types:
String
Number
Boolean
Collection
containing anything on this list.
Map
containing anything on this list.
swap
in class PojoSwap<Swagger,Div>
beanSession
- The bean session to use to get the class meta.
This is always going to be the same bean context that created this swap.swagger
- The object to be transformed.Exception
- If a problem occurred trying to convert the output.Copyright © 2018 Apache. All rights reserved.