openapi-to-json-schema
This package fetches openapi spec and generates json schemas for API's DTOs.
Example:
API_SPEC_URL=http://host/swaggerfile-for-api.yaml npx openapi-to-json-schema
This generates dto-spec directory with schemas.
This package fetches openapi spec and generates json schemas for API's DTOs.
Example:
API_SPEC_URL=http://host/swaggerfile-for-api.yaml npx openapi-to-json-schema
This generates dto-spec directory with schemas.
npm i openapi-to-json-schema
12
1.0.1
MIT
3.43 kB
3