
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@ts-common/schema2ts
Advanced tools
JSON Schema to TypeScript. See also https://www.jsonschemavalidator.net/
See also http://json-schema.org/draft-07/schema
Excluding $id, $schema, $ref, $comment, title, description, default, readOnly, examples, contains, definitions, const, enum, if, then, else, allOf, anyOf, oneOf, not.
interface SimpleType {
readonly array?: ArrayType
readonly boolean?: BooleanType
readonly integer?: IntegerType
readonly null?: NullType
readonly number?: NumberType
readonly object?: ObjectType
readonly string?: StringType
}
interface ArrayType {
readonly additionalItems?: SchemaObject
readonly items?: SchemaObject|ReadonlyArray<SchemaObject>
readonly maxItems?: number
readonly minItems: number
readonly uniqueItems: boolean // default is false
}
interface BooleanType {
}
interface IntegerType extends NumberType {
}
interface NullType {
}
interface NumberType {
readonly multipleOf?: number
readonly maximum?: number
readonly exclusiveMaximum?: number
readonly minimum?: number
readonly exclusiveMinimum?: number
}
interface ObjectType {
readonly maxProperties?: number
readonly minProperties: number // default is 0
readonly required: ReadonlyArray<string> // default is []
readonly additionalProperties?: SchemaObject
readonly properties: StringMap<SchemaObject> // default is {}
readonly patternProperties?: {} // ...
readonly dependencies?: {} // ...
readonly propertyNames?: {} // ...
}
interface StringType {
readonly maxLength?: number
readonly minLength: number // default is 0
readonly patter?: string
readonly format?: string
readonly contentMediaType?: string
readonly contentEncodinf?: string
}
FAQs
JSON Schema to TypeScript
We found that @ts-common/schema2ts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.