public final class OpenApiJsonAdd extends java.lang.Object implements OpenApiMapper
This mapper is applied using the contents of openapi.jsonAdd
.
This is run after substitutions so it is unaffected by them.
Constructor and Description |
---|
OpenApiJsonAdd() |
Modifier and Type | Method and Description |
---|---|
byte |
getOrder()
Gets the sort order of the plugin from -128 to 127.
|
ObjectNode |
updateNode(Context<? extends Trait> context,
OpenApi openapi,
ObjectNode node)
Modifies the Node/JSON representation of an OpenAPI object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
after, before, compose, postProcessOperation, updateDefaultSettings, updateOperation, updateParameter, updatePathItem, updateRequestBody, updateResponse, updateSecurity, updateSecurityScheme
public byte getOrder()
OpenApiMapper
Plugins are applied according to this sort order. Lower values are executed before higher values (for example, -128 comes before 0, comes before 127). Plugins default to 0, which is the middle point between the minimum and maximum order values.
getOrder
in interface OpenApiMapper
public ObjectNode updateNode(Context<? extends Trait> context, OpenApi openapi, ObjectNode node)
OpenApiMapper
updateNode
in interface OpenApiMapper
context
- Conversion context.openapi
- OpenAPI object being converted to a node.node
- OpenAPI object node.