
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
@kubb/adapter-oas
Advanced tools
OpenAPI and Swagger adapter for Kubb. Parses and validates OAS 2.0/3.x specifications into a @kubb/ast RootNode for downstream code generation plugins.
Parses and validates Swagger 2.0, OpenAPI 3.0, and OpenAPI 3.1 specifications and transforms them into a @kubb/ast RootNode for downstream code generation plugins.
bun add @kubb/adapter-oas
# or
pnpm add @kubb/adapter-oas
# or
npm install @kubb/adapter-oas
Use adapterOas inside your kubb.config.ts:
import { defineConfig } from 'kubb'
import { adapterOas } from '@kubb/adapter-oas'
export default defineConfig({
input: './openapi.yaml',
output: {
path: './src/gen',
},
adapter: adapterOas(),
})
input accepts a file path, a URL, an inline JSON or YAML string, or a parsed spec object.
adapterOas(options?)Creates the OAS adapter instance. Pass it as adapter in defineConfig.
adapterOasNameThe adapter's name, 'oas'. Use it to identify this adapter in a Kubb config.
The package re-exports the OpenAPI types it works with: ContentType, DiscriminatorObject, Document,
MediaTypeObject, Operation, ReferenceObject, ResponseObject, and SchemaObject. Its own option types are
AdapterOas, AdapterOasOptions, and AdapterOasResolvedOptions.
Kubb is an open source project, and its development is funded entirely by sponsors. If you would like to become a sponsor, please consider:
FAQs
OpenAPI and Swagger adapter for Kubb. Parses and validates OAS 2.0/3.x specifications into a @kubb/ast RootNode for downstream code generation plugins.
The npm package @kubb/adapter-oas receives a total of 21,213 weekly downloads. As such, @kubb/adapter-oas popularity was classified as popular.
We found that @kubb/adapter-oas 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
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.