@samchon/openapi
Advanced tools
Comparing version
@@ -290,3 +290,3 @@ "use strict"; | ||
var e_1, _a, e_2, _b, e_3, _c, e_4, _d; | ||
var _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; | ||
var _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s; | ||
// NULLABLE PROPERTY | ||
@@ -335,3 +335,3 @@ if (schema.nullable === | ||
var _loop_1 = function (type) { | ||
if (type === "boolean" || type === "number" || type === "string") | ||
if (type === "boolean") | ||
visit(__assign(__assign(__assign({}, schema), { | ||
@@ -351,3 +351,22 @@ enum: ((_g = schema.enum) === null || _g === void 0 ? void 0 : _g.length) && schema.enum.filter(function (e) { return e !== null; }) | ||
: undefined, | ||
}), { type: type })); | ||
}), { type: type, format: schema.format && INTEGER_FORMATS.includes(schema.format) | ||
? schema.format | ||
: undefined })); | ||
else if (type === "number") | ||
visit(__assign(__assign(__assign({}, schema), { | ||
enum: ((_j = schema.enum) === null || _j === void 0 ? void 0 : _j.length) && schema.enum.filter(function (e) { return e !== null; }) | ||
? schema.enum.filter(function (x) { return typeof x === type; }) | ||
: undefined, | ||
}), { type: type, format: schema.format && NUMBER_FORMATS.includes(schema.format) | ||
? schema.format | ||
: undefined })); | ||
else if (type === "string") | ||
visit(__assign(__assign(__assign({}, schema), { | ||
enum: ((_k = schema.enum) === null || _k === void 0 ? void 0 : _k.length) && schema.enum.filter(function (e) { return e !== null; }) | ||
? schema.enum.filter(function (x) { return typeof x === type; }) | ||
: undefined, | ||
}), { type: type, format: schema.format && | ||
NUMBER_FORMATS.includes(schema.format) === false | ||
? schema.format | ||
: undefined })); | ||
else | ||
@@ -357,4 +376,4 @@ visit(__assign(__assign({}, schema), { type: type })); | ||
try { | ||
for (var _r = __values(schema.type), _s = _r.next(); !_s.done; _s = _r.next()) { | ||
var type = _s.value; | ||
for (var _t = __values(schema.type), _u = _t.next(); !_u.done; _u = _t.next()) { | ||
var type = _u.value; | ||
_loop_1(type); | ||
@@ -366,3 +385,3 @@ } | ||
try { | ||
if (_s && !_s.done && (_a = _r.return)) _a.call(_r); | ||
if (_u && !_u.done && (_a = _t.return)) _a.call(_t); | ||
} | ||
@@ -384,7 +403,7 @@ finally { if (e_1) throw e_1.error; } | ||
else if (TypeChecker.isBoolean(schema)) | ||
if (((_j = schema.enum) === null || _j === void 0 ? void 0 : _j.length) && | ||
if (((_l = schema.enum) === null || _l === void 0 ? void 0 : _l.length) && | ||
schema.enum.filter(function (e) { return e !== null; }).length) | ||
try { | ||
for (var _t = __values(schema.enum.filter(function (e) { return e !== null; })), _u = _t.next(); !_u.done; _u = _t.next()) { | ||
var value = _u.value; | ||
for (var _v = __values(schema.enum.filter(function (e) { return e !== null; })), _w = _v.next(); !_w.done; _w = _v.next()) { | ||
var value = _w.value; | ||
union.push(__assign({ const: value }, __assign(__assign({}, schema), { type: undefined, enum: undefined, default: undefined }))); | ||
@@ -396,3 +415,3 @@ } | ||
try { | ||
if (_u && !_u.done && (_b = _t.return)) _b.call(_t); | ||
if (_w && !_w.done && (_b = _v.return)) _b.call(_v); | ||
} | ||
@@ -402,11 +421,11 @@ finally { if (e_2) throw e_2.error; } | ||
else | ||
union.push(__assign(__assign(__assign({}, schema), { default: (_k = schema.default) !== null && _k !== void 0 ? _k : undefined }), { | ||
union.push(__assign(__assign(__assign({}, schema), { default: (_m = schema.default) !== null && _m !== void 0 ? _m : undefined }), { | ||
enum: undefined, | ||
})); | ||
else if (TypeChecker.isInteger(schema) || TypeChecker.isNumber(schema)) | ||
if (((_l = schema.enum) === null || _l === void 0 ? void 0 : _l.length) && schema.enum.filter(function (e) { return e !== null; })) | ||
if (((_o = schema.enum) === null || _o === void 0 ? void 0 : _o.length) && schema.enum.filter(function (e) { return e !== null; })) | ||
try { | ||
for (var _v = __values(schema.enum.filter(function (e) { return e !== null; })), _w = _v.next(); !_w.done; _w = _v.next()) { | ||
var value = _w.value; | ||
union.push(__assign({ const: value }, __assign(__assign({}, schema), { type: undefined, enum: undefined, default: undefined, minimum: undefined, maximum: undefined, exclusiveMinimum: undefined, exclusiveMaximum: undefined, multipleOf: undefined }))); | ||
for (var _x = __values(schema.enum.filter(function (e) { return e !== null; })), _y = _x.next(); !_y.done; _y = _x.next()) { | ||
var value = _y.value; | ||
union.push(__assign({ const: value }, __assign(__assign({}, schema), { type: undefined, enum: undefined, default: undefined, minimum: undefined, maximum: undefined, exclusiveMinimum: undefined, exclusiveMaximum: undefined, multipleOf: undefined, format: undefined }))); | ||
} | ||
@@ -417,3 +436,3 @@ } | ||
try { | ||
if (_w && !_w.done && (_c = _v.return)) _c.call(_v); | ||
if (_y && !_y.done && (_c = _x.return)) _c.call(_x); | ||
} | ||
@@ -423,3 +442,3 @@ finally { if (e_3) throw e_3.error; } | ||
else | ||
union.push(__assign(__assign(__assign(__assign(__assign({}, schema), { default: (_m = schema.default) !== null && _m !== void 0 ? _m : undefined }), { | ||
union.push(__assign(__assign(__assign(__assign(__assign({}, schema), { default: (_p = schema.default) !== null && _p !== void 0 ? _p : undefined }), { | ||
enum: undefined, | ||
@@ -442,7 +461,7 @@ }), (typeof schema.exclusiveMinimum === "number" | ||
else if (TypeChecker.isString(schema)) | ||
if (((_o = schema.enum) === null || _o === void 0 ? void 0 : _o.length) && | ||
if (((_q = schema.enum) === null || _q === void 0 ? void 0 : _q.length) && | ||
schema.enum.filter(function (e) { return e !== null; }).length) | ||
try { | ||
for (var _x = __values(schema.enum.filter(function (e) { return e !== null; })), _y = _x.next(); !_y.done; _y = _x.next()) { | ||
var value = _y.value; | ||
for (var _z = __values(schema.enum.filter(function (e) { return e !== null; })), _0 = _z.next(); !_0.done; _0 = _z.next()) { | ||
var value = _0.value; | ||
union.push(__assign({ const: value }, __assign(__assign({}, schema), { type: undefined, enum: undefined, default: undefined }))); | ||
@@ -454,3 +473,3 @@ } | ||
try { | ||
if (_y && !_y.done && (_d = _x.return)) _d.call(_x); | ||
if (_0 && !_0.done && (_d = _z.return)) _d.call(_z); | ||
} | ||
@@ -460,3 +479,3 @@ finally { if (e_4) throw e_4.error; } | ||
else | ||
union.push(__assign(__assign(__assign({}, schema), { default: (_p = schema.default) !== null && _p !== void 0 ? _p : undefined }), { | ||
union.push(__assign(__assign(__assign({}, schema), { default: (_r = schema.default) !== null && _r !== void 0 ? _r : undefined }), { | ||
enum: undefined, | ||
@@ -516,3 +535,3 @@ })); | ||
: undefined, | ||
required: (_q = schema.required) !== null && _q !== void 0 ? _q : [], | ||
required: (_s = schema.required) !== null && _s !== void 0 ? _s : [], | ||
})); | ||
@@ -626,1 +645,3 @@ else if (TypeChecker.isRecursiveReference(schema)) | ||
})(OpenApiV3_1Emender || (exports.OpenApiV3_1Emender = OpenApiV3_1Emender = {})); | ||
var INTEGER_FORMATS = ["int32", "int64", "uint32", "uint64"]; | ||
var NUMBER_FORMATS = __spreadArray(__spreadArray([], __read(INTEGER_FORMATS), false), ["float", "double"], false); |
@@ -561,2 +561,6 @@ import { OpenApiV3 } from "./OpenApiV3"; | ||
/** | ||
* Format restriction. | ||
*/ | ||
format?: "int32" | "uint32" | "int64" | "uint64" | (string & {}); | ||
/** | ||
* Minimum value restriction. | ||
@@ -608,2 +612,6 @@ * | ||
/** | ||
* Format restriction. | ||
*/ | ||
format?: "int32" | "uint32" | "int64" | "uint64" | "float" | "double" | (string & {}); | ||
/** | ||
* Minimum value restriction. | ||
@@ -610,0 +618,0 @@ */ |
@@ -117,6 +117,7 @@ /** | ||
namespace IJsonSchema { | ||
interface IMixed extends IConstant, Omit<IBoolean, "type" | "default" | "enum">, Omit<INumber, "type" | "default" | "enum">, Omit<IString, "type" | "default" | "enum">, Omit<IArray, "type">, Omit<IObject, "type">, IOneOf, IAnyOf, IAllOf, IReference { | ||
interface IMixed extends IConstant, Omit<IBoolean, "type" | "default" | "enum">, Omit<INumber, "type" | "default" | "enum" | "format">, Omit<IString, "type" | "default" | "enum" | "format">, Omit<IArray, "type">, Omit<IObject, "type">, IOneOf, IAnyOf, IAllOf, IReference { | ||
type: Array<"boolean" | "integer" | "number" | "string" | "array" | "object" | "null">; | ||
default?: any[] | null; | ||
enum?: any[]; | ||
format?: "binary" | "byte" | "password" | "regex" | "uuid" | "email" | "hostname" | "idn-email" | "idn-hostname" | "iri" | "iri-reference" | "ipv4" | "ipv6" | "uri" | "uri-reference" | "uri-template" | "url" | "date-time" | "date" | "time" | "duration" | "json-pointer" | "relative-json-pointer" | "int32" | "uint32" | "int64" | "uint64" | "float" | "double" | (string & {}); | ||
} | ||
@@ -142,2 +143,3 @@ interface IConstant extends __IAttribute { | ||
multipleOf?: number; | ||
format?: "int32" | "uint32" | "int64" | "uint64" | (string & {}); | ||
} | ||
@@ -152,2 +154,3 @@ interface INumber extends __ISignificant<"number"> { | ||
/** @exclusiveMinimum 0 */ multipleOf?: number; | ||
format?: "int32" | "uint32" | "int64" | "uint64" | "float" | "double" | (string & {}); | ||
} | ||
@@ -154,0 +157,0 @@ interface IString extends __ISignificant<"string"> { |
@@ -129,2 +129,3 @@ /** | ||
multipleOf?: number; | ||
format?: "int32" | "uint32" | "int64" | "uint64" | (string & {}); | ||
} | ||
@@ -139,2 +140,3 @@ interface INumber extends __ISignificant<"number"> { | ||
/** @exclusiveMinimum 0 */ multipleOf?: number; | ||
format?: "int32" | "uint32" | "int64" | "uint64" | "float" | "double" | (string & {}); | ||
} | ||
@@ -141,0 +143,0 @@ interface IString extends __ISignificant<"string"> { |
@@ -114,2 +114,6 @@ /** | ||
/** | ||
* Format restriction. | ||
*/ | ||
format?: "int32" | "uint32" | "int64" | "uint64" | (string & {}); | ||
/** | ||
* Minimum value restriction. | ||
@@ -161,2 +165,6 @@ * | ||
/** | ||
* Format restriction. | ||
*/ | ||
format?: "int32" | "uint32" | "int64" | "uint64" | "float" | "double" | (string & {}); | ||
/** | ||
* Minimum value restriction. | ||
@@ -163,0 +171,0 @@ */ |
@@ -95,2 +95,6 @@ /** | ||
/** | ||
* Format restriction. | ||
*/ | ||
format?: "int32" | "uint32" | "int64" | "uint64" | (string & {}); | ||
/** | ||
* Minimum value restriction. | ||
@@ -146,2 +150,6 @@ * | ||
/** | ||
* Format restriction. | ||
*/ | ||
format?: "int32" | "uint32" | "int64" | "uint64" | "float" | "double" | (string & {}); | ||
/** | ||
* Minimum value restriction. | ||
@@ -148,0 +156,0 @@ */ |
@@ -98,2 +98,3 @@ /** | ||
multipleOf?: number; | ||
format?: "int32" | "uint32" | "int64" | "uint64" | (string & {}); | ||
} | ||
@@ -108,2 +109,3 @@ interface INumber extends __ISignificant<"number"> { | ||
/** @exclusiveMinimum 0 */ multipleOf?: number; | ||
format?: "int32" | "uint32" | "int64" | "uint64" | "float" | "double" | (string & {}); | ||
} | ||
@@ -110,0 +112,0 @@ interface IString extends __ISignificant<"string"> { |
import { OpenApi } from "../OpenApi"; | ||
export declare namespace OpenApiContraintShifter { | ||
const shiftArray: <Schema extends Pick<OpenApi.IJsonSchema.IArray, "description" | "minItems" | "maxItems" | "uniqueItems">>(v: Schema) => Omit<Schema, "minItems" | "maxItems" | "uniqueItems">; | ||
const shiftNumeric: <Schema extends Pick<OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IInteger, "description" | "minimum" | "maximum" | "exclusiveMinimum" | "exclusiveMaximum" | "multipleOf" | "default">>(v: Schema) => Omit<Schema, "minimum" | "maximum" | "exclusiveMinimum" | "exclusiveMaximum" | "multipleOf" | "default">; | ||
const shiftNumeric: <Schema extends Pick<OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IInteger, "description" | "minimum" | "maximum" | "exclusiveMinimum" | "exclusiveMaximum" | "multipleOf" | "default" | "format">>(v: Schema) => Omit<Schema, "minimum" | "maximum" | "exclusiveMinimum" | "exclusiveMaximum" | "multipleOf" | "default" | "format">; | ||
const shiftString: <Schema extends Pick<OpenApi.IJsonSchema.IString, "description" | "minLength" | "maxLength" | "format" | "pattern" | "contentMediaType" | "default">>(v: Schema) => Omit<Schema, "minLength" | "maxLength" | "format" | "pattern" | "contentMediaType" | "default">; | ||
} |
@@ -78,2 +78,6 @@ "use strict"; | ||
} | ||
if (v.format !== undefined) { | ||
tags.push("@format ".concat(v.format)); | ||
delete v.format; | ||
} | ||
v.description = writeTagWithDescription({ | ||
@@ -80,0 +84,0 @@ description: v.description, |
{ | ||
"name": "@samchon/openapi", | ||
"version": "2.3.1", | ||
"version": "2.4.0-dev.20241229", | ||
"description": "OpenAPI definitions and converters for 'typia' and 'nestia'.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -0,0 +0,0 @@ # `@samchon/openapi` |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../../OpenApi"; |
@@ -0,0 +0,0 @@ import { IChatGptSchema } from "../structures/IChatGptSchema"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../../OpenApi"; |
@@ -0,0 +0,0 @@ import { IHttpMigrateRoute } from "../../structures/IHttpMigrateRoute"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../../OpenApi"; |
@@ -351,3 +351,3 @@ import { OpenApi } from "../OpenApi"; | ||
for (const type of schema.type) | ||
if (type === "boolean" || type === "number" || type === "string") | ||
if (type === "boolean") | ||
visit({ | ||
@@ -378,3 +378,38 @@ ...schema, | ||
type: type as any, | ||
format: | ||
schema.format && INTEGER_FORMATS.includes(schema.format) | ||
? schema.format | ||
: undefined, | ||
}); | ||
else if (type === "number") | ||
visit({ | ||
...schema, | ||
...{ | ||
enum: | ||
schema.enum?.length && schema.enum.filter((e) => e !== null) | ||
? schema.enum.filter((x) => typeof x === type) | ||
: undefined, | ||
}, | ||
type: type as any, | ||
format: | ||
schema.format && NUMBER_FORMATS.includes(schema.format) | ||
? schema.format | ||
: undefined, | ||
}); | ||
else if (type === "string") | ||
visit({ | ||
...schema, | ||
...{ | ||
enum: | ||
schema.enum?.length && schema.enum.filter((e) => e !== null) | ||
? schema.enum.filter((x) => typeof x === type) | ||
: undefined, | ||
}, | ||
type: type as any, | ||
format: | ||
schema.format && | ||
NUMBER_FORMATS.includes(schema.format) === false | ||
? schema.format | ||
: undefined, | ||
}); | ||
else visit({ ...schema, type: type as any }); | ||
@@ -427,2 +462,3 @@ } | ||
multipleOf: undefined, | ||
format: undefined, | ||
} satisfies OpenApiV3_1.IJsonSchema.IInteger as any), | ||
@@ -697,1 +733,4 @@ } satisfies OpenApi.IJsonSchema.IConstant); | ||
} | ||
const INTEGER_FORMATS = ["int32", "int64", "uint32", "uint64"]; | ||
const NUMBER_FORMATS = [...INTEGER_FORMATS, "float", "double"]; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
@@ -0,0 +0,0 @@ import type { HttpLlm } from "../HttpLlm"; |
@@ -0,0 +0,0 @@ import { HttpMigration } from "./HttpMigration"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "./OpenApi"; |
@@ -0,0 +0,0 @@ //---- |
@@ -700,2 +700,7 @@ import { OpenApiV3 } from "./OpenApiV3"; | ||
/** | ||
* Format restriction. | ||
*/ | ||
format?: "int32" | "uint32" | "int64" | "uint64" | (string & {}); | ||
/** | ||
* Minimum value restriction. | ||
@@ -753,2 +758,14 @@ * | ||
/** | ||
* Format restriction. | ||
*/ | ||
format?: | ||
| "int32" | ||
| "uint32" | ||
| "int64" | ||
| "uint64" | ||
| "float" | ||
| "double" | ||
| (string & {}); | ||
/** | ||
* Minimum value restriction. | ||
@@ -755,0 +772,0 @@ */ |
@@ -194,4 +194,4 @@ /** | ||
Omit<IBoolean, "type" | "default" | "enum">, | ||
Omit<INumber, "type" | "default" | "enum">, | ||
Omit<IString, "type" | "default" | "enum">, | ||
Omit<INumber, "type" | "default" | "enum" | "format">, | ||
Omit<IString, "type" | "default" | "enum" | "format">, | ||
Omit<IArray, "type">, | ||
@@ -214,2 +214,33 @@ Omit<IObject, "type">, | ||
enum?: any[]; | ||
format?: | ||
| "binary" | ||
| "byte" | ||
| "password" | ||
| "regex" | ||
| "uuid" | ||
| "email" | ||
| "hostname" | ||
| "idn-email" | ||
| "idn-hostname" | ||
| "iri" | ||
| "iri-reference" | ||
| "ipv4" | ||
| "ipv6" | ||
| "uri" | ||
| "uri-reference" | ||
| "uri-template" | ||
| "url" | ||
| "date-time" | ||
| "date" | ||
| "time" | ||
| "duration" | ||
| "json-pointer" | ||
| "relative-json-pointer" | ||
| "int32" | ||
| "uint32" | ||
| "int64" | ||
| "uint64" | ||
| "float" | ||
| "double" | ||
| (string & {}); | ||
} | ||
@@ -236,2 +267,3 @@ | ||
multipleOf?: number; | ||
format?: "int32" | "uint32" | "int64" | "uint64" | (string & {}); | ||
} | ||
@@ -246,2 +278,10 @@ export interface INumber extends __ISignificant<"number"> { | ||
/** @exclusiveMinimum 0 */ multipleOf?: number; | ||
format?: | ||
| "int32" | ||
| "uint32" | ||
| "int64" | ||
| "uint64" | ||
| "float" | ||
| "double" | ||
| (string & {}); | ||
} | ||
@@ -248,0 +288,0 @@ export interface IString extends __ISignificant<"string"> { |
@@ -199,2 +199,3 @@ /** | ||
multipleOf?: number; | ||
format?: "int32" | "uint32" | "int64" | "uint64" | (string & {}); | ||
} | ||
@@ -209,2 +210,10 @@ export interface INumber extends __ISignificant<"number"> { | ||
/** @exclusiveMinimum 0 */ multipleOf?: number; | ||
format?: | ||
| "int32" | ||
| "uint32" | ||
| "int64" | ||
| "uint64" | ||
| "float" | ||
| "double" | ||
| (string & {}); | ||
} | ||
@@ -211,0 +220,0 @@ export interface IString extends __ISignificant<"string"> { |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { ILlmSchemaV3_1 } from "./ILlmSchemaV3_1"; |
@@ -0,0 +0,0 @@ /// <reference lib="dom" /> |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
@@ -0,0 +0,0 @@ import { ILlmSchemaV3_1 } from "./ILlmSchemaV3_1"; |
@@ -0,0 +0,0 @@ import { IGeminiSchema } from "./IGeminiSchema"; |
@@ -0,0 +0,0 @@ import { ILlmSchema } from "./ILlmSchema"; |
@@ -0,0 +0,0 @@ import { IChatGptSchema } from "./IChatGptSchema"; |
@@ -130,2 +130,7 @@ /** | ||
/** | ||
* Format restriction. | ||
*/ | ||
format?: "int32" | "uint32" | "int64" | "uint64" | (string & {}); | ||
/** | ||
* Minimum value restriction. | ||
@@ -183,2 +188,14 @@ * | ||
/** | ||
* Format restriction. | ||
*/ | ||
format?: | ||
| "int32" | ||
| "uint32" | ||
| "int64" | ||
| "uint64" | ||
| "float" | ||
| "double" | ||
| (string & {}); | ||
/** | ||
* Minimum value restriction. | ||
@@ -185,0 +202,0 @@ */ |
@@ -109,2 +109,7 @@ /** | ||
/** | ||
* Format restriction. | ||
*/ | ||
format?: "int32" | "uint32" | "int64" | "uint64" | (string & {}); | ||
/** | ||
* Minimum value restriction. | ||
@@ -167,2 +172,14 @@ * | ||
/** | ||
* Format restriction. | ||
*/ | ||
format?: | ||
| "int32" | ||
| "uint32" | ||
| "int64" | ||
| "uint64" | ||
| "float" | ||
| "double" | ||
| (string & {}); | ||
/** | ||
* Minimum value restriction. | ||
@@ -169,0 +186,0 @@ */ |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
@@ -149,2 +149,3 @@ /** | ||
multipleOf?: number; | ||
format?: "int32" | "uint32" | "int64" | "uint64" | (string & {}); | ||
} | ||
@@ -159,2 +160,10 @@ export interface INumber extends __ISignificant<"number"> { | ||
/** @exclusiveMinimum 0 */ multipleOf?: number; | ||
format?: | ||
| "int32" | ||
| "uint32" | ||
| "int64" | ||
| "uint64" | ||
| "float" | ||
| "double" | ||
| (string & {}); | ||
} | ||
@@ -161,0 +170,0 @@ export interface IString extends __ISignificant<"string"> { |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ export namespace AccessorUtil { |
@@ -0,0 +0,0 @@ import { IChatGptSchema } from "../structures/IChatGptSchema"; |
@@ -0,0 +0,0 @@ import { NamingConvention } from "./NamingConvention"; |
@@ -0,0 +0,0 @@ import { IGeminiSchema } from "../structures/IGeminiSchema"; |
@@ -0,0 +0,0 @@ import { OpenApi } from "../../OpenApi"; |
@@ -0,0 +0,0 @@ import { ILlmFunction } from "../structures/ILlmFunction"; |
@@ -0,0 +0,0 @@ import { ILlmSchemaV3_1 } from "../structures/ILlmSchemaV3_1"; |
@@ -0,0 +0,0 @@ import { ILlmSchemaV3 } from "../structures/ILlmSchemaV3"; |
@@ -0,0 +0,0 @@ export namespace NamingConvention { |
@@ -42,2 +42,3 @@ import { OpenApi } from "../OpenApi"; | ||
| "default" | ||
| "format" | ||
>, | ||
@@ -54,2 +55,3 @@ >( | ||
| "default" | ||
| "format" | ||
> => { | ||
@@ -81,2 +83,6 @@ const tags: string[] = []; | ||
} | ||
if (v.format !== undefined) { | ||
tags.push(`@format ${v.format}`); | ||
delete v.format; | ||
} | ||
v.description = writeTagWithDescription({ | ||
@@ -83,0 +89,0 @@ description: v.description, |
@@ -0,0 +0,0 @@ import { OpenApi } from "../OpenApi"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1835974
2.51%31752
0.72%1
Infinity%