class MediaTypeBuilder extends java.lang.Object
| Type | Name and description |
|---|---|
io.swagger.v3.oas.models.media.MediaType |
model |
static java.lang.Class |
openApiAnnotationClassneeded by AnnotationBuilder trait. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.Object |
schema(java.util.Map options, java.lang.Object classOrClosure)Build schema from class or closure |
|
java.lang.Object |
schema(java.lang.Object classOrClosure) |
|
java.lang.Object |
schema(java.lang.Object classOrClosure, java.util.Map options)for call in "schema classOrClosure, [properties: {...}]" form |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
needed by AnnotationBuilder trait. This is not an annotation but model class, but it should work as the same.
Build schema from class or closure
classOrClosure - domain class or schema definition closureoptions - additional options such as:
'properties' - to override some properties of schema.for call in "schema classOrClosure, [properties: {...}]" form