
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
@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 54,179 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.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.