Skip to content

Strict mode: unknown keyword: "discriminator" #7640

Answered by manchuwook
manchuwook asked this question in Q&A
Discussion options

You must be logged in to vote

I figured it out

index.ts

  app.bind(RestBindings.REQUEST_BODY_PARSER_OPTIONS).to({
    limit: '1MB',
    json: {
      strict: false
    },
    text: {
      limit: '2MB'
    },
    /**
     * 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`.
     */
    validation: {
      strict: false
    },
  });

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@raymondfeng
Comment options

@manchuwook
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by achrinza
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