Skip to content

Conversation

@simonireilly
Copy link
Owner

@simonireilly simonireilly commented Feb 1, 2022

closes: #25

We need to support common things like:

  • GET /users/{id} <= validate that id is a number
  • GET /users?limit=10&offset=0
    • validate max limit of 50, min of 1
    • validate offset is number
  • GET /users x-api-key: <string> - Validate API key is the specified string in the request

Limitations, for now, we are going to aggressively focus on AWS API Gateway, because this is our use case.

Use the parameter spec to specify the validation: https://spec.openapis.org/oas/v3.1.0#parameterIn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: path validation and typing

2 participants