Skip to content
Discussion options

You must be logged in to vote

There are different parsers involved into processing the request BEFORE the request given to any handler:

const parsers: Parsers = {
json: [config.jsonParser || express.json()],
raw: [config.rawParser || express.raw(), moveRaw],
form: [config.formParser || express.urlencoded()],
upload: config.upload
? await createUploadParsers({ config, getLogger })
: [],
};
initRouting({ app, routing, getLogger, config, parsers });

The right parser applied depending on the Endpoint::requestType, which in your case depends on the presence of ez.raw() in the input schema:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ztalarick
Comment options

Answer selected by RobinTail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants