
Research
/Security News
OpenAPI React Query Codegen Compromised in Mini Shai-Hulud npm Supply Chain Attack
Ten malicious OpenAPI React Query Codegen versions were published to npm in the Mini Shai-Hulud attack, all with valid provenance.
@hey-api/spec-types
Advanced tools
📃 TypeScript definitions for OpenAPI and JSON Schema specifications with complete inline documentation.
TypeScript definitions for OpenAPI and JSON Schema specifications with complete inline documentation.
Manual • Issues • Contribute
TypeScript definitions for OpenAPI and JSON Schema specifications with complete inline documentation.
Part of the Hey API ecosystem.
Want to see your code in products used by millions?
Start with our Contributing guide and release your first feature.
Hey API is sponsor-funded. If you rely on Hey API in production, consider becoming a sponsor to accelerate the roadmap.
|
|
|
|
scalar.com |
fastapi.tiangolo.com |
|
|
You can download @hey-api/spec-types from npm using your favorite package manager.
npm add @hey-api/spec-types -D -E
pnpm add @hey-api/spec-types -D -E
yarn add @hey-api/spec-types -D -E
bun add @hey-api/spec-types -D -E
Hover over any property to see its definition from the specification.
import type { OpenAPIV3_1 } from '@hey-api/spec-types';
const doc = {
openapi: '3.1.2',
info: {
title: 'My OpenAPI document',
version: '1.0.0',
},
} satisfies OpenAPIV3_1.Document;
Full type coverage for Draft 4 and Draft 2020-12 schemas.
import type { JSONSchemaDraft2020_12 } from '@hey-api/spec-types';
const doc = {
properties: {
foo: {
type: 'string',
},
},
type: 'object',
} satisfies JSONSchemaDraft2020_12.Document;
Released under the MIT License.
FAQs
📃 TypeScript definitions for OpenAPI and JSON Schema specifications with complete inline documentation.
The npm package @hey-api/spec-types receives a total of 1,495,690 weekly downloads. As such, @hey-api/spec-types popularity was classified as popular.
We found that @hey-api/spec-types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Research
/Security News
Ten malicious OpenAPI React Query Codegen versions were published to npm in the Mini Shai-Hulud attack, all with valid provenance.

Security News
Socket joins more than 100 technology, cybersecurity, and financial organizations calling for a global surge in cyber defense.

Product
Enterprise security teams can now detect malware, credential theft, suspicious network activity, and risky updates across Microsoft Edge extensions.