Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: path validation and typing #39

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

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
1 participant