@shadow-library/class-schema
v0.0.2
Published
Decorator-based JSON schema generator at runtime
Downloads
63
Maintainers
Readme
@shadow-library/class-schema
class-schema
is a powerful and intuitive npm package that lets developers create JSON schemas by decorating TypeScript class properties.
This package simplifies schema generation, making it easy to validate data structures, define API contracts, and enforce data consistency.
Features
- Decorator-Based Schema Generation: Use decorators on your class properties to automatically generate JSON schemas.
- TypeScript Integration: Built with TypeScript, providing strong type-checking and auto-completion.
- Schema Validation: Generate JSON schemas for validation and data integrity checks.
- Flexible and Extensible: Customize the schema generation using decorators that fit your data needs.
Installation
To get started, install the package using npm or yarn:
# npm
npm install @shadow-library/class-schema
# yarn
yarn add @shadow-library/class-schema
# pnpm
pnpm add @shadow-library/class-schema