Skip to content

How to retrieve models/schemas in Lambda/Javascript? #7

Description

@ismarslomic

Since API Gateway does not use Models to perform any schema validation of request/response messages (currently at least), Im considering using one of the Javascript JSON-Schema validator implementations for NodeJS to do this myself inside Lambda handler.

In order to do that, validators are requiring schemas and then I need to be able to retrieve the models/schemas from s-models.json file. Is it as easy as just using require() function, or do you suggest another way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions