@samchon/openapi
Advanced tools
Comparing version 2.5.0 to 2.5.1
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": "2.5.0", | ||
"version": "2.5.1", | ||
"description": "OpenAPI definitions and converters for 'typia' and 'nestia'.", | ||
@@ -49,3 +49,3 @@ "main": "./lib/index.js", | ||
"@nestia/core": "4.2.0", | ||
"@nestia/e2e": "0.7.0", | ||
"@nestia/e2e": "0.8.2", | ||
"@nestia/fetcher": "4.2.0", | ||
@@ -52,0 +52,0 @@ "@nestia/sdk": "4.2.0", |
@@ -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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
1867144
32870
0