https://github.com/omermecitoglu/json-schema-types
TypeScript types for the JSON Schema Specification
https://github.com/omermecitoglu/json-schema-types
2020-12 json-schema specification ts types typescript
Last synced: 4 months ago
JSON representation
TypeScript types for the JSON Schema Specification
- Host: GitHub
- URL: https://github.com/omermecitoglu/json-schema-types
- Owner: omermecitoglu
- License: mit
- Created: 2025-12-18T08:22:15.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-12-23T11:00:06.000Z (6 months ago)
- Last Synced: 2026-01-21T00:20:29.311Z (5 months ago)
- Topics: 2020-12, json-schema, specification, ts, types, typescript
- Language: TypeScript
- Homepage: https://json-schema.org
- Size: 101 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JSON Schema (Draft 2020-12) Types
[](https://www.npmjs.com/package/@omer-x/json-schema-types)
[](https://www.npmjs.com/package/@omer-x/json-schema-types)
[](https://codecov.io/gh/omermecitoglu/json-schema-types)
[](https://opensource.org/licenses/MIT)
[](https://github.com/omermecitoglu/json-schema-types/commits/main/)
[](https://github.com/omermecitoglu/json-schema-types/issues)
[](https://github.com/omermecitoglu/json-schema-types)
TypeScript types for the JSON Schema Specification.
## Installation
You can install this package via npm:
```bash
npm install -D @omer-x/json-schema-types
```
or via yarn:
```bash
yarn add -D @omer-x/json-schema-types
```
## Usage
Import the types you need in your TypeScript project:
```typescript
import { SchemaObject } from '@omer-x/json-schema-types';
// Example usage
const jsonSchema: SchemaObject = {
type: "string"
};
```
You can also import specific types directly:
```typescript
import type { ObjectSchema } from "./@omer-x/json-schema-types/object";
import type { ArraySchema } from "./@omer-x/json-schema-types/array";
import type { BooleanSchema } from "./@omer-x/json-schema-types/boolean";
import type { StringSchema } from "./@omer-x/json-schema-types/string";
import type { NumberSchema } from "./@omer-x/json-schema-types/number";
import type { IntegerSchema } from "./@omer-x/json-schema-types/integer";
import type { NullSchema } from "./@omer-x/json-schema-types/null";
import type { UnknownSchema } from "./@omer-x/json-schema-types/unknown";
```
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.