| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: a reference to a T object in the components in this OpenAPI documentReturns the reference property from this Reference instance. |
| public default T | |
| public void |
| getRef | back to summary |
|---|---|
| public String getRef() Returns the reference property from this Reference instance.
| |
| ref | back to summary |
|---|---|
| public default T ref(String ref) Sets this Reference's reference property to the given string.
| |
| setRef | back to summary |
|---|---|
| public void setRef(String ref) Sets this Reference's reference property to the given string. Normally a full reference string is a JSON pointer RFC6901 which indicates an object definition in the components section of the current OpenAPI document. For example the schema of a request body may be #/components/schemas/Payload or the definition of a parameter could be #/components/parameters/Routing.HostName. If you provide a short name then the name will automatically be expanded to the appropriate full reference string. A short name is a string which is not a JSON pointer in that it does not contain a "/". The appropriate full reference is determined by the context. For a parameter the short name will be prefixed by "#/components/parameters/" to create "#/components/parameters/ShortName".
For a response the prefix is "#/components/responses/":
This property provides a reference to an object defined elsewhere. This property may be used alongside
| |