Skip to content

[I] BinarySerializationOptions

PropertyTypeDescription
contentTypes?string[]The list of inner media types of the file. In other words, what kind of files can be returned. This is determined by the contentType property of the file model. This property is only present when isFile is true. When undefined, it indicates the body is not a file type.
filename?ModelPropertyThe ModelProperty that represents the filename in the file model. This property is only present when isFile is true. When undefined, it indicates the body is not a file type.
isFilebooleanWhether this is a file/stream input
isText?booleanWhether the file contents should be represented as a string or raw byte stream. True if the contents property is a string, false if it is bytes. Emitters may choose to represent textual files as strings or streams of textual characters. If this property is false, emitters must expect that the contents may contain non-textual data. This property is only present when isFile is true. When undefined, it indicates the body is not a file type.