@samchon/openapi
Advanced tools
Comparing version 3.0.0-dev.20250221 to 3.0.0-dev.20250222
import { OpenApi } from "../OpenApi"; | ||
export declare namespace OpenApiConstraintShifter { | ||
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">>(v: Schema) => Omit<Schema, "minimum" | "maximum" | "exclusiveMinimum" | "exclusiveMaximum" | "multipleOf">; | ||
const shiftString: <Schema extends Pick<OpenApi.IJsonSchema.IString, "description" | "minLength" | "maxLength" | "format" | "pattern" | "contentMediaType">>(v: Schema) => Omit<Schema, "minLength" | "maxLength" | "format" | "pattern" | "contentMediaType">; | ||
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 shiftString: <Schema extends Pick<OpenApi.IJsonSchema.IString, "description" | "minLength" | "maxLength" | "format" | "pattern" | "contentMediaType" | "default">>(v: Schema) => Omit<Schema, "minLength" | "maxLength" | "format" | "pattern" | "contentMediaType" | "default">; | ||
} |
@@ -80,2 +80,6 @@ "use strict"; | ||
}); | ||
if (v.default !== undefined) { | ||
tags.push("@default ".concat(v.default)); | ||
delete v.default; | ||
} | ||
return v; | ||
@@ -105,2 +109,6 @@ }; | ||
} | ||
if (v.default !== undefined) { | ||
tags.push("@default ".concat(v.default)); | ||
delete v.default; | ||
} | ||
v.description = writeTagWithDescription({ | ||
@@ -107,0 +115,0 @@ description: v.description, |
{ | ||
"name": "@samchon/openapi", | ||
"version": "3.0.0-dev.20250221", | ||
"version": "3.0.0-dev.20250222", | ||
"description": "OpenAPI definitions and converters for 'typia' and 'nestia'.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -41,2 +41,3 @@ import { OpenApi } from "../OpenApi"; | ||
| "multipleOf" | ||
| "default" | ||
>, | ||
@@ -52,2 +53,3 @@ >( | ||
| "multipleOf" | ||
| "default" | ||
> => { | ||
@@ -81,2 +83,6 @@ const tags: string[] = []; | ||
}); | ||
if (v.default !== undefined) { | ||
tags.push(`@default ${v.default}`); | ||
delete v.default; | ||
} | ||
return v; | ||
@@ -94,2 +100,3 @@ }; | ||
| "contentMediaType" | ||
| "default" | ||
>, | ||
@@ -100,3 +107,8 @@ >( | ||
Schema, | ||
"minLength" | "maxLength" | "format" | "pattern" | "contentMediaType" | ||
| "minLength" | ||
| "maxLength" | ||
| "format" | ||
| "pattern" | ||
| "contentMediaType" | ||
| "default" | ||
> => { | ||
@@ -124,2 +136,6 @@ const tags: string[] = []; | ||
} | ||
if (v.default !== undefined) { | ||
tags.push(`@default ${v.default}`); | ||
delete v.default; | ||
} | ||
v.description = writeTagWithDescription({ | ||
@@ -126,0 +142,0 @@ description: v.description, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1919037
33138