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

Add support for OpenAPI, Zod validation and Console #8

Merged
merged 4 commits into from
Apr 9, 2024

Conversation

rasouza
Copy link
Collaborator

@rasouza rasouza commented Apr 5, 2024

Description

  • Add support for OpenAPI
  • Add support for Zod validation
  • add npm run console to API
  • move DB service to global module

Motivation and Context

Steps followed from:

OpenAPI

So we don't need to maintain Postman/Insomnia collections. It can be acessed through http://localhost:3000/docs

Zod validation

For validating input request payloads

Console

You can live debug and experiment your code. You have access to the main module and all its dependencies at runtime (see image below)

How Has This Been Tested?

Screenshots (if appropriate):

image

image2

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@rasouza rasouza self-assigned this Apr 5, 2024
@rasouza rasouza changed the title Add support for OpenAPI and Zod validation Add support for OpenAPI, Zod validation and Console Apr 6, 2024
@mathiasberggren mathiasberggren merged commit fdc4387 into main Apr 9, 2024
1 check passed
@rasouza rasouza deleted the feature/openapi-and-validation branch April 20, 2024 08:11
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.

2 participants