
Security News
Frontier AI Is Now Critical Infrastructure
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.
@sebspark/openapi-core
Advanced tools
@sebspark/openapi-coreBase types and utilities for OpenAPI/Typescript. Used by:
Helper functions for transforming OpenAPI documents before rendering or serving. All functions return a cloned document and do not modify the original.
disableUnimplementedPaths(document, server)Marks paths not present in the server definition as deprecated and tagged with not-implemented.
appendVersionToServers(document, version)Appends a version segment to all server URLs in the document.
flattenEnums(document)Flattens oneOf[$ref, $ref, ...] schemas where all refs resolve to enums into a single merged enum. Enables API UI tools like Scalar to render a dropdown instead of a free-text input.
resolveRef(ref, document)Resolves a $ref string to its schema definition within the document.
Typed HTTP error classes for all 4xx and 5xx status codes.
import { NotFoundError, UnauthorizedError, createHttpError, fromAxiosError } from '@sebspark/openapi-core'
throw new NotFoundError('Instrument not found')
throw new UnauthorizedError()
// Create by status code
throw createHttpError(429, 'Slow down')
// Convert from Axios error
catch (e) {
throw fromAxiosError(e)
}
All errors extend HttpError which exposes a statusCode property and a toJSON(showStack?) method.
FAQs
Base types and utilities for OpenAPI/Typescript. Used by:
The npm package @sebspark/openapi-core receives a total of 893 weekly downloads. As such, @sebspark/openapi-core popularity was classified as not popular.
We found that @sebspark/openapi-core demonstrated a healthy version release cadence and project activity because the last version was released less than 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 Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.