Page Contents

Home > @loopback/rest > RequestBodyParserOptions

RequestBodyParserOptions interface

Options for request body parsing See https://github.com/expressjs/body-parser/#options

Built-in parsers retrieve their own options from the request body parser options. The parser specific properties override common ones.

Signature:

export interface RequestBodyParserOptions extends Options 

Properties

Property Type Description
json OptionsJson Options for json parser
raw Options Options for raw parser
text OptionsText Options for text parser
urlencoded OptionsUrlencoded Options for urlencoded parser
validation RequestBodyValidationOptions Validation options for AJV, see https://github.com/epoberezkin/ajv#options This setting is global for all request body parsers and it cannot be overridden inside parser specific properties such as json or text.