UNPKG

@kubb/plugin-oas

Version:

OpenAPI Specification (OAS) plugin for Kubb, providing core functionality for parsing and processing OpenAPI/Swagger schemas for code generation.

56 lines (55 loc) 1.16 kB
// src/SchemaMapper.ts var schemaKeywords = { any: "any", unknown: "unknown", number: "number", integer: "integer", string: "string", boolean: "boolean", undefined: "undefined", nullable: "nullable", null: "null", nullish: "nullish", array: "array", tuple: "tuple", enum: "enum", union: "union", datetime: "datetime", date: "date", email: "email", uuid: "uuid", url: "url", void: "void", /* intersection */ default: "default", const: "const", and: "and", describe: "describe", min: "min", max: "max", optional: "optional", readOnly: "readOnly", writeOnly: "writeOnly", // custom ones object: "object", ref: "ref", matches: "matches", firstName: "firstName", lastName: "lastName", password: "password", phone: "phone", blob: "blob", deprecated: "deprecated", example: "example", schema: "schema", catchall: "catchall", time: "time", name: "name", interface: "interface" }; function isKeyword(meta, keyword) { return meta.keyword === keyword; } export { isKeyword, schemaKeywords }; //# sourceMappingURL=chunk-76E35IZ2.js.map //# sourceMappingURL=chunk-76E35IZ2.js.map