@samchon/openapi
Advanced tools
Comparing version 2.0.0-dev.20241121-2 to 2.0.0-dev.20241121-3
@@ -86,3 +86,3 @@ "use strict"; | ||
return 0; | ||
if (props.options.escape === false || | ||
if (props.options.reference === true || | ||
OpenApiTypeChecker_1.OpenApiTypeChecker.isRecursiveReference({ | ||
@@ -276,3 +276,3 @@ components: props.components, | ||
input.oneOf.forEach(visitConstant); | ||
else if (props.options.escape === true && | ||
else if (props.options.reference === false && | ||
OpenApiTypeChecker_1.OpenApiTypeChecker.isReference(input) && | ||
@@ -279,0 +279,0 @@ OpenApiTypeChecker_1.OpenApiTypeChecker.isRecursiveReference({ |
@@ -72,3 +72,3 @@ "use strict"; | ||
separate: (_b = (_a = props.options) === null || _a === void 0 ? void 0 : _a.separate) !== null && _b !== void 0 ? _b : null, | ||
escape: (_d = (_c = props.options) === null || _c === void 0 ? void 0 : _c.escape) !== null && _d !== void 0 ? _d : false, | ||
reference: (_d = (_c = props.options) === null || _c === void 0 ? void 0 : _c.reference) !== null && _d !== void 0 ? _d : false, | ||
constraint: (_f = (_e = props.options) === null || _e === void 0 ? void 0 : _e.constraint) !== null && _f !== void 0 ? _f : false, | ||
@@ -75,0 +75,0 @@ } |
@@ -31,3 +31,3 @@ /** | ||
* For reference, if you've composed the `IChatGptSchema` type with the | ||
* {@link ILlmApplication.IChatGptOptions.escape} `true` option (default is `false`), | ||
* {@link ILlmApplication.IChatGptOptions.reference} `false` option (default is `false`), | ||
* only the recursived named types would be archived into the | ||
@@ -34,0 +34,0 @@ * {@link IChatGptSchema.IParameters.$defs}, and the others would be ecaped from the |
@@ -147,5 +147,5 @@ import { IChatGptSchema } from "./IChatGptSchema"; | ||
/** | ||
* Whether to escape reference type or not. | ||
* Whether to allow reference type in everywhere. | ||
* | ||
* If you configure this property to `true`, most of reference types | ||
* If you configure this property to `false`, most of reference types | ||
* represented by {@link IChatGptSchema.IReference} would be escaped to | ||
@@ -165,3 +165,3 @@ * a plain type unless recursive type case. | ||
*/ | ||
escape: boolean; | ||
reference: boolean; | ||
/** | ||
@@ -168,0 +168,0 @@ * Whether to allow contraint properties or not. |
{ | ||
"name": "@samchon/openapi", | ||
"version": "2.0.0-dev.20241121-2", | ||
"version": "2.0.0-dev.20241121-3", | ||
"description": "OpenAPI definitions and converters for 'typia' and 'nestia'.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -53,3 +53,3 @@ import { OpenApi } from "../OpenApi"; | ||
if ( | ||
props.options.escape === false || | ||
props.options.reference === true || | ||
OpenApiTypeChecker.isRecursiveReference({ | ||
@@ -264,3 +264,3 @@ components: props.components, | ||
else if ( | ||
props.options.escape === true && | ||
props.options.reference === false && | ||
OpenApiTypeChecker.isReference(input) && | ||
@@ -267,0 +267,0 @@ OpenApiTypeChecker.isRecursiveReference({ |
@@ -102,5 +102,5 @@ import { HttpMigration } from "./HttpMigration"; | ||
null, | ||
escape: | ||
reference: | ||
(props.options as IHttpLlmApplication.IChatGptOptions | undefined) | ||
?.escape ?? false, | ||
?.reference ?? false, | ||
constraint: | ||
@@ -107,0 +107,0 @@ (props.options as IHttpLlmApplication.IChatGptOptions | undefined) |
@@ -31,3 +31,3 @@ /** | ||
* For reference, if you've composed the `IChatGptSchema` type with the | ||
* {@link ILlmApplication.IChatGptOptions.escape} `true` option (default is `false`), | ||
* {@link ILlmApplication.IChatGptOptions.reference} `false` option (default is `false`), | ||
* only the recursived named types would be archived into the | ||
@@ -34,0 +34,0 @@ * {@link IChatGptSchema.IParameters.$defs}, and the others would be ecaped from the |
@@ -181,5 +181,5 @@ import { IChatGptSchema } from "./IChatGptSchema"; | ||
/** | ||
* Whether to escape reference type or not. | ||
* Whether to allow reference type in everywhere. | ||
* | ||
* If you configure this property to `true`, most of reference types | ||
* If you configure this property to `false`, most of reference types | ||
* represented by {@link IChatGptSchema.IReference} would be escaped to | ||
@@ -199,3 +199,3 @@ * a plain type unless recursive type case. | ||
*/ | ||
escape: boolean; | ||
reference: boolean; | ||
@@ -202,0 +202,0 @@ /** |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1535593