Generate json schema from openapi spec
npm install openapi-to-json-schema#openapi-to-json-schema
This package fetches openapi spec and generates json schemas for API's DTOs.
Example:
``bash``
API_SPEC_URL=http://host/swaggerfile-for-api.yaml npx openapi-to-json-schema
This generates dto-spec directory with schemas.