public class FieldDescriptor extends Object
PayloadDocumentation.fieldWithPath(String)| Modifier and Type | Method and Description |
|---|---|
FieldDescriptor |
description(String description)
Specifies the description of the field
|
FieldDescriptor |
optional()
Marks the field as optional
|
FieldDescriptor |
type(FieldType type)
Specifies the type of the field
|
public FieldDescriptor type(FieldType type)
type - The type of the fieldthispublic FieldDescriptor optional()
thispublic FieldDescriptor description(String description)
description - The field's descriptionthis