| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: whether or not the header allows empty valuesWhen true, allows sending an empty value. |
| public boolean | Returns: whether or not the header is deprecatedSpecifies that a header is deprecated and should be transitioned out of usage. |
| public String | Returns: the header's descriptionAdditional description data to provide on the purpose of the header |
| public Extension[] | Returns: array of extensionsList of extensions to be added to the |
| public String | |
| public String | |
| public boolean | Returns: whether or not the header is requiredDetermines whether this header is mandatory. |
| public Schema |
| allowEmptyValue | back to summary |
|---|---|
| public boolean allowEmptyValue() When true, allows sending an empty value. If false, the header will be considered \"null\" if no value is present. This may create validation errors when the header is required.
| |
| deprecated | back to summary |
|---|---|
| public boolean deprecated() Specifies that a header is deprecated and should be transitioned out of usage.
| |
| description | back to summary |
|---|---|
| public String description() Additional description data to provide on the purpose of the header
| |
| extensions | back to summary |
|---|---|
| public Extension[] extensions() List of extensions to be added to the
| |
| name | back to summary |
|---|---|
| public String name() The name of the header. The name is only used as the key to add this header to a map. It is a REQUIRED property unless this is only a reference to a header instance. When the header is defined withinorg., the name will
be used as the key to add this header to the 'headers' map for reuse.
| |
| ref | back to summary |
|---|---|
| public String ref() Reference value to a Header object.
This property provides a reference to an object defined elsewhere. This property may be used with
| |
| required | back to summary |
|---|---|
| public boolean required() Determines whether this header is mandatory. The property may be included and its default value is false.
| |
| schema | back to summary |
|---|---|
| public Schema schema() The schema defining the type used for the header. Ignored if the properties content or array are specified.
| |