serverless-openapi-to-json-schema
v1.0.1
Published
Resolves json refs and converts openapi schemas into aws compatible draft 4 json schemas
Downloads
19
Maintainers
Readme
Serverlerss OpenApi to Json Schema
This is a plugin meant to tackle the limitation AWS has when using schemas for body validation. It will resolve json Refs and strip the schema from unsupported tags like example, nullabble, etc.
To use it, just add your schema path to a function event under the schemaPath
property.
functions:
sampleFunction:
events:
- http:
schemaPath: path/to/schema/sample-file.yaml