
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@airtop/json-schema-adapter-zod
Advanced tools
Zod adapter for JSON Schema output for use with the Airtop SDK
This schema adapter allows specifying zod objects as input when an Airtop SDK method requires a JSON schema.
npm install @airtop/sdk @airtop/json-schema-adapter-zod zod
import { AirtopClient } from "@airtop/sdk";
import { ZodJsonSchemaAdapter } from "@airtop/json-schema-adapter-zod";
import { z } from "zod";
const schema = z.object({
results: z
.array(
z
.object({
name: z.string().describe("The name of the product"),
description: z.string().describe("A brief description of the product's purpose"),
benefit: z.string().describe("How the product supports developers"),
})
.strict(),
)
.optional(),
error: z.string().min(1).describe("Error message in case of failure").optional(),
});
const client = new AirtopClient({
outputSchemaAdapter: new ZodJsonSchemaAdapter(),
});
await client
.withSessionId("session-id")
.withWindowId("window-id")
.pageQuery("title of the page", {
configuration: {
outputSchema: schema,
}
})
FAQs
Zod adapter for JSON Schema output for use with the Airtop SDK
We found that @airtop/json-schema-adapter-zod demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.