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

Validate GNAP requests with OpenAPI #351

Closed
njlie opened this issue Jun 1, 2022 · 1 comment · Fixed by #384 or #821
Closed

Validate GNAP requests with OpenAPI #351

njlie opened this issue Jun 1, 2022 · 1 comment · Fixed by #384 or #821
Assignees
Milestone

Comments

@njlie
Copy link
Contributor

njlie commented Jun 1, 2022

From #343 (comment):

🤔 Maybe this OpenAPI validation middleware (#339) could be a workspace in the monorepo: https://github.com/interledger/rafiki/tree/bw-openapi/packages/backend/src/openapi Then this could validate requests based on https://github.com/interledger/open-payments/blob/master/auth-server-open-api-spec.yaml

See:
4556d21

@sabineschaller
Copy link
Member

Reopened to specify the ctx.body type in createGrantInitiation and elsewhere to make use of the benefits of the OpenAPI validator middleware type guard.
See comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
2 participants