@CompileStatic class PropertyNames extends java.lang.Object
The names the properties of a type Grails renders and binds are described under.
swagger-core names a property as Jackson does, which is not always the name Grails renders and
binds it by: Jackson describes getISBN() as isbn, where Grails uses ISBN,
and @JsonProperty renames a property Grails' converters, JSON views and data binding still
render and bind by its own name. A property is described by the name Grails uses, unless its
description is renamed on purpose, with @Schema(name).
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.util.Map<java.lang.String, java.lang.String> |
applyTo(io.swagger.v3.oas.annotations.media.Schema model)Describes each property of a model swagger-core resolved under the name Grails uses for it, unless it is renamed on purpose. |
|
io.swagger.v3.oas.annotations.media.Schema |
declaredSchema(java.lang.String name)
|
|
java.lang.String |
nameOf(java.lang.String swaggerName)
|
|
static PropertyNames |
of(java.lang.Class<?> type)The names of a type's properties, as Jackson, which swagger-core describes them with, reads them. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Describes each property of a model swagger-core resolved under the name Grails uses for it, unless it is renamed on purpose.
@Schema a property declares, by the name Grails uses for it, or
null where it declares none
null where it is not one of the type'sThe names of a type's properties, as Jackson, which swagger-core describes them with, reads them. A type Jackson cannot introspect is described by the names swagger-core gives.