@kingbri1/standard-openapi
v0.1.5
Published
[](https://npmjs.org/package/@standard-community/standard-openapi "View this project on NPM") [,
myUnion: v.union([v.number(), v.boolean()]),
}),
v.description("My neat object schema"),
);
// Convert it to OpenAPI Schema
const openapiSchema = await toOpenAPISchema(schema);Compatibility
List of supported validators -
| Vendor | Supported | | ------- | ------- | | Zod | ✅ | | Valibot | ✅ | | ArkType | ✅ | | Typebox | ✅ (Using TypeMap | | Effect Schema | 🛠️ |
You can check the compatibility versions at standardschema.dev
