Skip to main content

DataPayload

@prismatic-io/spectral"types/DataPayload"DataPayload

Binary data payload

Hierarchy#

  • DataPayload

Index#

Properties#

Properties#

contentType#

contentType: string

Defined in packages/spectral/src/types/DataPayload.ts:6

Content type of data contained within this payload


data#

data: Buffer

Defined in packages/spectral/src/types/DataPayload.ts:4

Raw binary data as a Buffer


Optional suggestedExtension#

suggestedExtension? : undefined | string

Defined in packages/spectral/src/types/DataPayload.ts:8

Suggested extension to use when writing the data