Skip to content

Commit

Permalink
Add requestBody arg documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bill-kitsune authored and jsdevel committed Dec 18, 2018
1 parent ec4b703 commit 2e995d8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/openapi-request-validator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ var validator = new OpenAPIRequestValidator({
required: true
}
],
requestBody: { // optional OpenApi v3 requestBodyObject
contents: {
'application/json': {
schema: {
properties:
name:
type: 'string'
}
}
}
},
schemas: null, // an optional array or object of jsonschemas used to dereference $ref
version: 'swagger-2.0', // default optional value for future versions of openapi
errorTransformer: null, // an optional transformer function to format errors
Expand Down

0 comments on commit 2e995d8

Please sign in to comment.