@FunctionalInterface
public interface PropertyNamingStrategy
| Modifier and Type | Method and Description |
|---|---|
static PropertyNamingStrategy |
createDefaultStrategy()
Creates a default strategy that first checks for
jsonName then
falls back to the member name. |
static PropertyNamingStrategy |
createMemberNameStrategy()
Creates a naming strategy that just uses the member name as-is.
|
java.lang.String |
toPropertyName(Shape containingShape,
MemberShape member,
JsonSchemaConfig config)
Determine the member name of the member.
|
java.lang.String toPropertyName(Shape containingShape, MemberShape member, JsonSchemaConfig config)
containingShape - Shape that contains the member.member - Member shape to compute the member name of.config - Config to use.static PropertyNamingStrategy createMemberNameStrategy()
static PropertyNamingStrategy createDefaultStrategy()
jsonName then
falls back to the member name.