
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
@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,827,595 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.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.