UNPKG

@kubb/plugin-oas

Version:

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

59 lines (57 loc) 1.21 kB
'use strict'; // 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; } exports.isKeyword = isKeyword; exports.schemaKeywords = schemaKeywords; //# sourceMappingURL=chunk-YWMMI3MO.cjs.map //# sourceMappingURL=chunk-YWMMI3MO.cjs.map