
Research
/Security News
Coruna Respawned: Compromised art-template npm Package Leads to iOS Browser Exploit Kit
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.
@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 411,222 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.
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.

Research
/Security News
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.

Company News
As AI accelerates how code is written and shipped, Socket is scaling to protect the software supply chain from the growing wave of attacks targeting open source dependencies.

Company News
Socket is scaling to defend open source against supply chain attacks as AI accelerates software development.