mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
Updated dependencies and fixed tests
This commit is contained in:
parent
fe22880894
commit
2642eb2cf8
8614
package-lock.json
generated
8614
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
75
package.json
75
package.json
@ -60,66 +60,67 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"camelcase": "^6.3.0",
|
||||
"commander": "^9.3.0",
|
||||
"commander": "^9.4.1",
|
||||
"fs-extra": "^10.1.0",
|
||||
"handlebars": "^4.7.7",
|
||||
"json-schema-ref-parser": "^9.0.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/build-angular": "14.0.1",
|
||||
"@angular/animations": "14.0.1",
|
||||
"@angular/cli": "14.0.1",
|
||||
"@angular/common": "14.0.1",
|
||||
"@angular/compiler": "14.0.1",
|
||||
"@angular/compiler-cli": "14.0.1",
|
||||
"@angular/core": "14.0.1",
|
||||
"@angular/forms": "14.0.1",
|
||||
"@angular/platform-browser": "14.0.1",
|
||||
"@angular/platform-browser-dynamic": "14.0.1",
|
||||
"@angular/router": "14.0.1",
|
||||
"@babel/cli": "7.18.10",
|
||||
"@babel/core": "7.18.13",
|
||||
"@babel/preset-env": "7.19.0",
|
||||
"@angular-devkit/build-angular": "14.2.7",
|
||||
"@angular/animations": "14.2.8",
|
||||
"@angular/cli": "14.2.7",
|
||||
"@angular/common": "14.2.8",
|
||||
"@angular/compiler": "14.2.8",
|
||||
"@angular/compiler-cli": "14.2.8",
|
||||
"@angular/core": "14.2.8",
|
||||
"@angular/forms": "14.2.8",
|
||||
"@angular/platform-browser": "14.2.8",
|
||||
"@angular/platform-browser-dynamic": "14.2.8",
|
||||
"@angular/router": "14.2.8",
|
||||
"@babel/cli": "7.19.3",
|
||||
"@babel/core": "7.19.6",
|
||||
"@babel/preset-env": "7.19.4",
|
||||
"@babel/preset-typescript": "7.18.6",
|
||||
"@rollup/plugin-commonjs": "22.0.2",
|
||||
"@rollup/plugin-node-resolve": "13.3.0",
|
||||
"@rollup/plugin-typescript": "8.5.0",
|
||||
"@rollup/plugin-commonjs": "23.0.2",
|
||||
"@rollup/plugin-node-resolve": "15.0.1",
|
||||
"@rollup/plugin-typescript": "9.0.2",
|
||||
"@types/cross-spawn": "6.0.2",
|
||||
"@types/express": "4.17.13",
|
||||
"@types/express": "4.17.14",
|
||||
"@types/fs-extra": "^9.0.13",
|
||||
"@types/glob": "7.2.0",
|
||||
"@types/jest": "28.1.8",
|
||||
"@types/node": "18.7.17",
|
||||
"@types/node-fetch": "2.6.1",
|
||||
"@types/glob": "8.0.0",
|
||||
"@types/jest": "29.2.0",
|
||||
"@types/node": "18.11.7",
|
||||
"@types/node-fetch": "2.6.2",
|
||||
"@types/qs": "6.9.7",
|
||||
"@typescript-eslint/eslint-plugin": "5.36.2",
|
||||
"@typescript-eslint/parser": "5.37.0",
|
||||
"@typescript-eslint/eslint-plugin": "5.41.0",
|
||||
"@typescript-eslint/parser": "5.41.0",
|
||||
"abort-controller": "3.0.0",
|
||||
"axios": "0.27.2",
|
||||
"axios": "1.1.3",
|
||||
"codecov": "3.8.3",
|
||||
"cross-spawn": "7.0.3",
|
||||
"eslint": "8.23.1",
|
||||
"eslint": "8.26.0",
|
||||
"eslint-config-prettier": "8.5.0",
|
||||
"eslint-plugin-prettier": "4.2.1",
|
||||
"eslint-plugin-simple-import-sort": "7.0.0",
|
||||
"express": "4.18.1",
|
||||
"eslint-plugin-simple-import-sort": "8.0.0",
|
||||
"express": "4.18.2",
|
||||
"form-data": "4.0.0",
|
||||
"glob": "8.0.3",
|
||||
"jest": "28.1.3",
|
||||
"jest-cli": "28.1.3",
|
||||
"jest": "29.2.2",
|
||||
"jest-cli": "29.2.2",
|
||||
"node-fetch": "2.6.7",
|
||||
"prettier": "2.7.1",
|
||||
"puppeteer": "15.5.0",
|
||||
"puppeteer": "19.2.0",
|
||||
"qs": "6.11.0",
|
||||
"rimraf": "3.0.2",
|
||||
"rollup": "2.79.0",
|
||||
"rollup": "3.2.3",
|
||||
"rollup-plugin-terser": "7.0.2",
|
||||
"rxjs": "7.5.6",
|
||||
"rxjs": "7.5.7",
|
||||
"ts-node": "10.9.1",
|
||||
"tslib": "2.4.0",
|
||||
"typescript": "4.7.3",
|
||||
"typescript": "4.8.4",
|
||||
"zone.js": "0.11.8"
|
||||
},
|
||||
"resolutions": {
|
||||
"node-fetch": "2.6.7"
|
||||
"overrides" : {
|
||||
"rollup": "3.2.3"
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,10 +2,12 @@ import commonjs from '@rollup/plugin-commonjs';
|
||||
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
||||
import typescript from '@rollup/plugin-typescript';
|
||||
import { readFileSync } from 'fs';
|
||||
import { precompile } from 'handlebars';
|
||||
import handlebars from 'handlebars';
|
||||
import { dirname, extname, resolve } from 'path';
|
||||
import { terser } from 'rollup-plugin-terser';
|
||||
|
||||
const { precompile } = handlebars;
|
||||
|
||||
/**
|
||||
* Custom plugin to parse handlebar imports and precompile
|
||||
* the template on the fly. This reduces runtime by about
|
||||
@ -549,6 +549,55 @@ export { CancelablePromise, CancelError } from './core/CancelablePromise';
|
||||
export { OpenAPI } from './core/OpenAPI';
|
||||
export type { OpenAPIConfig } from './core/OpenAPI';
|
||||
|
||||
export type { _default as _defaultDto } from './models/_default';
|
||||
export type { ArrayWithArray as ArrayWithArrayDto } from './models/ArrayWithArray';
|
||||
export type { ArrayWithBooleans as ArrayWithBooleansDto } from './models/ArrayWithBooleans';
|
||||
export type { ArrayWithNumbers as ArrayWithNumbersDto } from './models/ArrayWithNumbers';
|
||||
export type { ArrayWithProperties as ArrayWithPropertiesDto } from './models/ArrayWithProperties';
|
||||
export type { ArrayWithReferences as ArrayWithReferencesDto } from './models/ArrayWithReferences';
|
||||
export type { ArrayWithStrings as ArrayWithStringsDto } from './models/ArrayWithStrings';
|
||||
export type { CommentWithBackticks as CommentWithBackticksDto } from './models/CommentWithBackticks';
|
||||
export type { CommentWithBreaks as CommentWithBreaksDto } from './models/CommentWithBreaks';
|
||||
export type { CommentWithExpressionPlaceholders as CommentWithExpressionPlaceholdersDto } from './models/CommentWithExpressionPlaceholders';
|
||||
export type { CommentWithQuotes as CommentWithQuotesDto } from './models/CommentWithQuotes';
|
||||
export type { CommentWithReservedCharacters as CommentWithReservedCharactersDto } from './models/CommentWithReservedCharacters';
|
||||
export type { CommentWithSlashes as CommentWithSlashesDto } from './models/CommentWithSlashes';
|
||||
export type { Date as DateDto } from './models/Date';
|
||||
export type { DictionaryWithArray as DictionaryWithArrayDto } from './models/DictionaryWithArray';
|
||||
export type { DictionaryWithDictionary as DictionaryWithDictionaryDto } from './models/DictionaryWithDictionary';
|
||||
export type { DictionaryWithProperties as DictionaryWithPropertiesDto } from './models/DictionaryWithProperties';
|
||||
export type { DictionaryWithReference as DictionaryWithReferenceDto } from './models/DictionaryWithReference';
|
||||
export type { DictionaryWithString as DictionaryWithStringDto } from './models/DictionaryWithString';
|
||||
export type { EnumFromDescription as EnumFromDescriptionDto } from './models/EnumFromDescription';
|
||||
export { EnumWithExtensions as EnumWithExtensionsDto } from './models/EnumWithExtensions';
|
||||
export { EnumWithNumbers as EnumWithNumbersDto } from './models/EnumWithNumbers';
|
||||
export { EnumWithStrings as EnumWithStringsDto } from './models/EnumWithStrings';
|
||||
export type { ModelThatExtends as ModelThatExtendsDto } from './models/ModelThatExtends';
|
||||
export type { ModelThatExtendsExtends as ModelThatExtendsExtendsDto } from './models/ModelThatExtendsExtends';
|
||||
export type { ModelWithArray as ModelWithArrayDto } from './models/ModelWithArray';
|
||||
export type { ModelWithBoolean as ModelWithBooleanDto } from './models/ModelWithBoolean';
|
||||
export type { ModelWithCircularReference as ModelWithCircularReferenceDto } from './models/ModelWithCircularReference';
|
||||
export type { ModelWithDictionary as ModelWithDictionaryDto } from './models/ModelWithDictionary';
|
||||
export type { ModelWithDuplicateImports as ModelWithDuplicateImportsDto } from './models/ModelWithDuplicateImports';
|
||||
export type { ModelWithDuplicateProperties as ModelWithDuplicatePropertiesDto } from './models/ModelWithDuplicateProperties';
|
||||
export { ModelWithEnum as ModelWithEnumDto } from './models/ModelWithEnum';
|
||||
export type { ModelWithEnumFromDescription as ModelWithEnumFromDescriptionDto } from './models/ModelWithEnumFromDescription';
|
||||
export type { ModelWithInteger as ModelWithIntegerDto } from './models/ModelWithInteger';
|
||||
export type { ModelWithNestedEnums as ModelWithNestedEnumsDto } from './models/ModelWithNestedEnums';
|
||||
export type { ModelWithNestedProperties as ModelWithNestedPropertiesDto } from './models/ModelWithNestedProperties';
|
||||
export type { ModelWithNullableString as ModelWithNullableStringDto } from './models/ModelWithNullableString';
|
||||
export type { ModelWithOrderedProperties as ModelWithOrderedPropertiesDto } from './models/ModelWithOrderedProperties';
|
||||
export type { ModelWithPattern as ModelWithPatternDto } from './models/ModelWithPattern';
|
||||
export type { ModelWithProperties as ModelWithPropertiesDto } from './models/ModelWithProperties';
|
||||
export type { ModelWithReference as ModelWithReferenceDto } from './models/ModelWithReference';
|
||||
export type { ModelWithString as ModelWithStringDto } from './models/ModelWithString';
|
||||
export type { SimpleBoolean as SimpleBooleanDto } from './models/SimpleBoolean';
|
||||
export type { SimpleFile as SimpleFileDto } from './models/SimpleFile';
|
||||
export type { SimpleInteger as SimpleIntegerDto } from './models/SimpleInteger';
|
||||
export type { SimpleReference as SimpleReferenceDto } from './models/SimpleReference';
|
||||
export type { SimpleString as SimpleStringDto } from './models/SimpleString';
|
||||
export type { SimpleStringWithPattern as SimpleStringWithPatternDto } from './models/SimpleStringWithPattern';
|
||||
|
||||
export { $_default } from './schemas/$_default';
|
||||
export { $ArrayWithArray } from './schemas/$ArrayWithArray';
|
||||
export { $ArrayWithBooleans } from './schemas/$ArrayWithBooleans';
|
||||
@ -753,7 +802,7 @@ exports[`v2 should generate: ./test/generated/v2/models/CommentWithQuotes.ts 1`]
|
||||
/* eslint-disable */
|
||||
|
||||
/**
|
||||
* Testing quotes in string: 'single quote''' and \\"double quotes\\"\\"\\" should work
|
||||
* Testing quotes in string: 'single quote''' and "double quotes""" should work
|
||||
*/
|
||||
export type CommentWithQuotes = number;
|
||||
"
|
||||
@ -777,7 +826,7 @@ exports[`v2 should generate: ./test/generated/v2/models/CommentWithSlashes.ts 1`
|
||||
/* eslint-disable */
|
||||
|
||||
/**
|
||||
* Testing slashes in string: \\\\backwards\\\\\\\\\\\\ and /forwards/// should work
|
||||
* Testing slashes in string: \\backwards\\\\\\ and /forwards/// should work
|
||||
*/
|
||||
export type CommentWithSlashes = number;
|
||||
"
|
||||
@ -939,8 +988,8 @@ export enum EnumWithStrings {
|
||||
SUCCESS = 'Success',
|
||||
WARNING = 'Warning',
|
||||
ERROR = 'Error',
|
||||
_SINGLE_QUOTE_ = '\\\\'Single Quote\\\\'',
|
||||
_DOUBLE_QUOTES_ = '\\"Double Quotes\\"',
|
||||
_SINGLE_QUOTE_ = '\\'Single Quote\\'',
|
||||
_DOUBLE_QUOTES_ = '"Double Quotes"',
|
||||
}
|
||||
"
|
||||
`;
|
||||
@ -1514,7 +1563,7 @@ exports[`v2 should generate: ./test/generated/v2/schemas/$CommentWithBackticks.t
|
||||
/* eslint-disable */
|
||||
export const $CommentWithBackticks = {
|
||||
type: 'number',
|
||||
description: \`Testing backticks in string: \\\\\`backticks\\\\\` and \\\\\`\\\\\`\\\\\`multiple backticks\\\\\`\\\\\`\\\\\` should work\`,
|
||||
description: \`Testing backticks in string: \\\`backticks\\\` and \\\`\\\`\\\`multiple backticks\\\`\\\`\\\` should work\`,
|
||||
} as const;
|
||||
"
|
||||
`;
|
||||
@ -1539,7 +1588,7 @@ exports[`v2 should generate: ./test/generated/v2/schemas/$CommentWithExpressionP
|
||||
/* eslint-disable */
|
||||
export const $CommentWithExpressionPlaceholders = {
|
||||
type: 'number',
|
||||
description: \`Testing expression placeholders in string: \\\\\${expression} should work\`,
|
||||
description: \`Testing expression placeholders in string: \\\${expression} should work\`,
|
||||
} as const;
|
||||
"
|
||||
`;
|
||||
@ -1550,7 +1599,7 @@ exports[`v2 should generate: ./test/generated/v2/schemas/$CommentWithQuotes.ts 1
|
||||
/* eslint-disable */
|
||||
export const $CommentWithQuotes = {
|
||||
type: 'number',
|
||||
description: \`Testing quotes in string: 'single quote''' and \\"double quotes\\"\\"\\" should work\`,
|
||||
description: \`Testing quotes in string: 'single quote''' and "double quotes""" should work\`,
|
||||
} as const;
|
||||
"
|
||||
`;
|
||||
@ -1572,7 +1621,7 @@ exports[`v2 should generate: ./test/generated/v2/schemas/$CommentWithSlashes.ts
|
||||
/* eslint-disable */
|
||||
export const $CommentWithSlashes = {
|
||||
type: 'number',
|
||||
description: \`Testing slashes in string: \\\\\\\\backwards\\\\\\\\\\\\\\\\\\\\\\\\ and /forwards/// should work\`,
|
||||
description: \`Testing slashes in string: \\\\backwards\\\\\\\\\\\\ and /forwards/// should work\`,
|
||||
} as const;
|
||||
"
|
||||
`;
|
||||
@ -2064,15 +2113,15 @@ export const $ModelWithPattern = {
|
||||
},
|
||||
id: {
|
||||
type: 'string',
|
||||
pattern: '^\\\\\\\\d{2}-\\\\\\\\d{3}-\\\\\\\\d{4}$',
|
||||
pattern: '^\\\\d{2}-\\\\d{3}-\\\\d{4}$',
|
||||
},
|
||||
text: {
|
||||
type: 'string',
|
||||
pattern: '^\\\\\\\\w+$',
|
||||
pattern: '^\\\\w+$',
|
||||
},
|
||||
patternWithSingleQuotes: {
|
||||
type: 'string',
|
||||
pattern: '^[a-zA-Z0-9\\\\']*$',
|
||||
pattern: '^[a-zA-Z0-9\\']*$',
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
@ -2366,7 +2415,7 @@ export class DefaultsService {
|
||||
parameterBoolean: boolean = true,
|
||||
parameterEnum: 'Success' | 'Warning' | 'Error' = 'Success',
|
||||
parameterModel: ModelWithString = {
|
||||
\\"prop\\": \\"Hello World!\\"
|
||||
"prop": "Hello World!"
|
||||
},
|
||||
): CancelablePromise<void> {
|
||||
return __request(OpenAPI, {
|
||||
@ -2396,7 +2445,7 @@ export class DefaultsService {
|
||||
parameterBoolean: boolean = true,
|
||||
parameterEnum: 'Success' | 'Warning' | 'Error' = 'Success',
|
||||
parameterModel: ModelWithString = {
|
||||
\\"prop\\": \\"Hello World!\\"
|
||||
"prop": "Hello World!"
|
||||
},
|
||||
): CancelablePromise<void> {
|
||||
return __request(OpenAPI, {
|
||||
@ -2469,9 +2518,9 @@ export class DescriptionsService {
|
||||
*
|
||||
* Fourth line
|
||||
* @param parameterWithBackticks Testing backticks in string: \`backticks\` and \`\`\`multiple backticks\`\`\` should work
|
||||
* @param parameterWithSlashes Testing slashes in string: \\\\backwards\\\\\\\\\\\\ and /forwards/// should work
|
||||
* @param parameterWithSlashes Testing slashes in string: \\backwards\\\\\\ and /forwards/// should work
|
||||
* @param parameterWithExpressionPlaceholders Testing expression placeholders in string: \${expression} should work
|
||||
* @param parameterWithQuotes Testing quotes in string: 'single quote''' and \\"double quotes\\"\\"\\" should work
|
||||
* @param parameterWithQuotes Testing quotes in string: 'single quote''' and "double quotes""" should work
|
||||
* @param parameterWithReservedCharacters Testing reserved characters in string: * inline * and ** inline ** should work
|
||||
* @throws ApiError
|
||||
*/
|
||||
@ -3593,7 +3642,76 @@ export { CancelablePromise, CancelError } from './core/CancelablePromise';
|
||||
export { OpenAPI } from './core/OpenAPI';
|
||||
export type { OpenAPIConfig } from './core/OpenAPI';
|
||||
|
||||
export type { _default as _defaultDto } from './models/_default';
|
||||
export type { ArrayWithArray as ArrayWithArrayDto } from './models/ArrayWithArray';
|
||||
export type { ArrayWithBooleans as ArrayWithBooleansDto } from './models/ArrayWithBooleans';
|
||||
export type { ArrayWithNumbers as ArrayWithNumbersDto } from './models/ArrayWithNumbers';
|
||||
export type { ArrayWithProperties as ArrayWithPropertiesDto } from './models/ArrayWithProperties';
|
||||
export type { ArrayWithReferences as ArrayWithReferencesDto } from './models/ArrayWithReferences';
|
||||
export type { ArrayWithStrings as ArrayWithStringsDto } from './models/ArrayWithStrings';
|
||||
export type { CommentWithBackticks as CommentWithBackticksDto } from './models/CommentWithBackticks';
|
||||
export type { CommentWithBreaks as CommentWithBreaksDto } from './models/CommentWithBreaks';
|
||||
export type { CommentWithExpressionPlaceholders as CommentWithExpressionPlaceholdersDto } from './models/CommentWithExpressionPlaceholders';
|
||||
export type { CommentWithQuotes as CommentWithQuotesDto } from './models/CommentWithQuotes';
|
||||
export type { CommentWithReservedCharacters as CommentWithReservedCharactersDto } from './models/CommentWithReservedCharacters';
|
||||
export type { CommentWithSlashes as CommentWithSlashesDto } from './models/CommentWithSlashes';
|
||||
export type { CompositionBaseModel as CompositionBaseModelDto } from './models/CompositionBaseModel';
|
||||
export type { CompositionExtendedModel as CompositionExtendedModelDto } from './models/CompositionExtendedModel';
|
||||
export type { CompositionWithAllOfAndNullable as CompositionWithAllOfAndNullableDto } from './models/CompositionWithAllOfAndNullable';
|
||||
export type { CompositionWithAnyOf as CompositionWithAnyOfDto } from './models/CompositionWithAnyOf';
|
||||
export type { CompositionWithAnyOfAndNullable as CompositionWithAnyOfAndNullableDto } from './models/CompositionWithAnyOfAndNullable';
|
||||
export type { CompositionWithAnyOfAnonymous as CompositionWithAnyOfAnonymousDto } from './models/CompositionWithAnyOfAnonymous';
|
||||
export type { CompositionWithOneOf as CompositionWithOneOfDto } from './models/CompositionWithOneOf';
|
||||
export type { CompositionWithOneOfAndComplexArrayDictionary as CompositionWithOneOfAndComplexArrayDictionaryDto } from './models/CompositionWithOneOfAndComplexArrayDictionary';
|
||||
export type { CompositionWithOneOfAndNullable as CompositionWithOneOfAndNullableDto } from './models/CompositionWithOneOfAndNullable';
|
||||
export type { CompositionWithOneOfAndSimpleArrayDictionary as CompositionWithOneOfAndSimpleArrayDictionaryDto } from './models/CompositionWithOneOfAndSimpleArrayDictionary';
|
||||
export type { CompositionWithOneOfAndSimpleDictionary as CompositionWithOneOfAndSimpleDictionaryDto } from './models/CompositionWithOneOfAndSimpleDictionary';
|
||||
export type { CompositionWithOneOfAnonymous as CompositionWithOneOfAnonymousDto } from './models/CompositionWithOneOfAnonymous';
|
||||
export type { CompositionWithOneOfDiscriminator as CompositionWithOneOfDiscriminatorDto } from './models/CompositionWithOneOfDiscriminator';
|
||||
export type { DeprecatedModel as DeprecatedModelDto } from './models/DeprecatedModel';
|
||||
export type { DictionaryWithArray as DictionaryWithArrayDto } from './models/DictionaryWithArray';
|
||||
export type { DictionaryWithDictionary as DictionaryWithDictionaryDto } from './models/DictionaryWithDictionary';
|
||||
export type { DictionaryWithProperties as DictionaryWithPropertiesDto } from './models/DictionaryWithProperties';
|
||||
export type { DictionaryWithReference as DictionaryWithReferenceDto } from './models/DictionaryWithReference';
|
||||
export type { DictionaryWithString as DictionaryWithStringDto } from './models/DictionaryWithString';
|
||||
export type { EnumFromDescription as EnumFromDescriptionDto } from './models/EnumFromDescription';
|
||||
export { EnumWithExtensions as EnumWithExtensionsDto } from './models/EnumWithExtensions';
|
||||
export { EnumWithNumbers as EnumWithNumbersDto } from './models/EnumWithNumbers';
|
||||
export { EnumWithStrings as EnumWithStringsDto } from './models/EnumWithStrings';
|
||||
export type { File as FileDto } from './models/File';
|
||||
export type { FreeFormObjectWithAdditionalPropertiesEqEmptyObject as FreeFormObjectWithAdditionalPropertiesEqEmptyObjectDto } from './models/FreeFormObjectWithAdditionalPropertiesEqEmptyObject';
|
||||
export type { FreeFormObjectWithAdditionalPropertiesEqTrue as FreeFormObjectWithAdditionalPropertiesEqTrueDto } from './models/FreeFormObjectWithAdditionalPropertiesEqTrue';
|
||||
export type { FreeFormObjectWithoutAdditionalProperties as FreeFormObjectWithoutAdditionalPropertiesDto } from './models/FreeFormObjectWithoutAdditionalProperties';
|
||||
export type { ModelCircle as ModelCircleDto } from './models/ModelCircle';
|
||||
export type { ModelSquare as ModelSquareDto } from './models/ModelSquare';
|
||||
export type { ModelThatExtends as ModelThatExtendsDto } from './models/ModelThatExtends';
|
||||
export type { ModelThatExtendsExtends as ModelThatExtendsExtendsDto } from './models/ModelThatExtendsExtends';
|
||||
export type { ModelWithArray as ModelWithArrayDto } from './models/ModelWithArray';
|
||||
export type { ModelWithBoolean as ModelWithBooleanDto } from './models/ModelWithBoolean';
|
||||
export type { ModelWithCircularReference as ModelWithCircularReferenceDto } from './models/ModelWithCircularReference';
|
||||
export type { ModelWithDictionary as ModelWithDictionaryDto } from './models/ModelWithDictionary';
|
||||
export type { ModelWithDuplicateImports as ModelWithDuplicateImportsDto } from './models/ModelWithDuplicateImports';
|
||||
export type { ModelWithDuplicateProperties as ModelWithDuplicatePropertiesDto } from './models/ModelWithDuplicateProperties';
|
||||
export { ModelWithEnum as ModelWithEnumDto } from './models/ModelWithEnum';
|
||||
export type { ModelWithEnumFromDescription as ModelWithEnumFromDescriptionDto } from './models/ModelWithEnumFromDescription';
|
||||
export type { ModelWithInteger as ModelWithIntegerDto } from './models/ModelWithInteger';
|
||||
export type { ModelWithNestedEnums as ModelWithNestedEnumsDto } from './models/ModelWithNestedEnums';
|
||||
export type { ModelWithNestedProperties as ModelWithNestedPropertiesDto } from './models/ModelWithNestedProperties';
|
||||
export type { ModelWithNullableString as ModelWithNullableStringDto } from './models/ModelWithNullableString';
|
||||
export type { ModelWithOrderedProperties as ModelWithOrderedPropertiesDto } from './models/ModelWithOrderedProperties';
|
||||
export type { ModelWithPattern as ModelWithPatternDto } from './models/ModelWithPattern';
|
||||
export type { ModelWithProperties as ModelWithPropertiesDto } from './models/ModelWithProperties';
|
||||
export type { ModelWithReference as ModelWithReferenceDto } from './models/ModelWithReference';
|
||||
export type { ModelWithString as ModelWithStringDto } from './models/ModelWithString';
|
||||
export type { Pageable as PageableDto } from './models/Pageable';
|
||||
export type { SimpleBoolean as SimpleBooleanDto } from './models/SimpleBoolean';
|
||||
export type { SimpleFile as SimpleFileDto } from './models/SimpleFile';
|
||||
export type { SimpleInteger as SimpleIntegerDto } from './models/SimpleInteger';
|
||||
export type { SimpleReference as SimpleReferenceDto } from './models/SimpleReference';
|
||||
export type { SimpleString as SimpleStringDto } from './models/SimpleString';
|
||||
export type { SimpleStringWithPattern as SimpleStringWithPatternDto } from './models/SimpleStringWithPattern';
|
||||
|
||||
export { $_default } from './schemas/$_default';
|
||||
export { $ArrayWithArray } from './schemas/$ArrayWithArray';
|
||||
export { $ArrayWithBooleans } from './schemas/$ArrayWithBooleans';
|
||||
export { $ArrayWithNumbers } from './schemas/$ArrayWithNumbers';
|
||||
@ -3822,7 +3940,7 @@ exports[`v3 should generate: ./test/generated/v3/models/CommentWithQuotes.ts 1`]
|
||||
/* eslint-disable */
|
||||
|
||||
/**
|
||||
* Testing quotes in string: 'single quote''' and \\"double quotes\\"\\"\\" should work
|
||||
* Testing quotes in string: 'single quote''' and "double quotes""" should work
|
||||
*/
|
||||
export type CommentWithQuotes = number;
|
||||
"
|
||||
@ -3846,7 +3964,7 @@ exports[`v3 should generate: ./test/generated/v3/models/CommentWithSlashes.ts 1`
|
||||
/* eslint-disable */
|
||||
|
||||
/**
|
||||
* Testing slashes in string: \\\\backwards\\\\\\\\\\\\ and /forwards/// should work
|
||||
* Testing slashes in string: \\backwards\\\\\\ and /forwards/// should work
|
||||
*/
|
||||
export type CommentWithSlashes = number;
|
||||
"
|
||||
@ -4249,8 +4367,8 @@ export enum EnumWithStrings {
|
||||
SUCCESS = 'Success',
|
||||
WARNING = 'Warning',
|
||||
ERROR = 'Error',
|
||||
_SINGLE_QUOTE_ = '\\\\'Single Quote\\\\'',
|
||||
_DOUBLE_QUOTES_ = '\\"Double Quotes\\"',
|
||||
_SINGLE_QUOTE_ = '\\'Single Quote\\'',
|
||||
_DOUBLE_QUOTES_ = '"Double Quotes"',
|
||||
}
|
||||
"
|
||||
`;
|
||||
@ -4931,7 +5049,7 @@ exports[`v3 should generate: ./test/generated/v3/schemas/$CommentWithBackticks.t
|
||||
/* eslint-disable */
|
||||
export const $CommentWithBackticks = {
|
||||
type: 'number',
|
||||
description: \`Testing backticks in string: \\\\\`backticks\\\\\` and \\\\\`\\\\\`\\\\\`multiple backticks\\\\\`\\\\\`\\\\\` should work\`,
|
||||
description: \`Testing backticks in string: \\\`backticks\\\` and \\\`\\\`\\\`multiple backticks\\\`\\\`\\\` should work\`,
|
||||
} as const;
|
||||
"
|
||||
`;
|
||||
@ -4956,7 +5074,7 @@ exports[`v3 should generate: ./test/generated/v3/schemas/$CommentWithExpressionP
|
||||
/* eslint-disable */
|
||||
export const $CommentWithExpressionPlaceholders = {
|
||||
type: 'number',
|
||||
description: \`Testing expression placeholders in string: \\\\\${expression} should work\`,
|
||||
description: \`Testing expression placeholders in string: \\\${expression} should work\`,
|
||||
} as const;
|
||||
"
|
||||
`;
|
||||
@ -4967,7 +5085,7 @@ exports[`v3 should generate: ./test/generated/v3/schemas/$CommentWithQuotes.ts 1
|
||||
/* eslint-disable */
|
||||
export const $CommentWithQuotes = {
|
||||
type: 'number',
|
||||
description: \`Testing quotes in string: 'single quote''' and \\"double quotes\\"\\"\\" should work\`,
|
||||
description: \`Testing quotes in string: 'single quote''' and "double quotes""" should work\`,
|
||||
} as const;
|
||||
"
|
||||
`;
|
||||
@ -4989,7 +5107,7 @@ exports[`v3 should generate: ./test/generated/v3/schemas/$CommentWithSlashes.ts
|
||||
/* eslint-disable */
|
||||
export const $CommentWithSlashes = {
|
||||
type: 'number',
|
||||
description: \`Testing slashes in string: \\\\\\\\backwards\\\\\\\\\\\\\\\\\\\\\\\\ and /forwards/// should work\`,
|
||||
description: \`Testing slashes in string: \\\\backwards\\\\\\\\\\\\ and /forwards/// should work\`,
|
||||
} as const;
|
||||
"
|
||||
`;
|
||||
@ -5953,15 +6071,15 @@ export const $ModelWithPattern = {
|
||||
},
|
||||
id: {
|
||||
type: 'string',
|
||||
pattern: '^\\\\\\\\d{2}-\\\\\\\\d{3}-\\\\\\\\d{4}$',
|
||||
pattern: '^\\\\d{2}-\\\\d{3}-\\\\d{4}$',
|
||||
},
|
||||
text: {
|
||||
type: 'string',
|
||||
pattern: '^\\\\\\\\w+$',
|
||||
pattern: '^\\\\w+$',
|
||||
},
|
||||
patternWithSingleQuotes: {
|
||||
type: 'string',
|
||||
pattern: '^[a-zA-Z0-9\\\\']*$',
|
||||
pattern: '^[a-zA-Z0-9\\']*$',
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
@ -6323,7 +6441,7 @@ export class DefaultsService {
|
||||
parameterBoolean: boolean | null = true,
|
||||
parameterEnum: 'Success' | 'Warning' | 'Error' = 'Success',
|
||||
parameterModel: ModelWithString | null = {
|
||||
\\"prop\\": \\"Hello World!\\"
|
||||
"prop": "Hello World!"
|
||||
},
|
||||
): CancelablePromise<void> {
|
||||
return __request(OpenAPI, {
|
||||
@ -6353,7 +6471,7 @@ export class DefaultsService {
|
||||
parameterBoolean: boolean = true,
|
||||
parameterEnum: 'Success' | 'Warning' | 'Error' = 'Success',
|
||||
parameterModel: ModelWithString = {
|
||||
\\"prop\\": \\"Hello World!\\"
|
||||
"prop": "Hello World!"
|
||||
},
|
||||
): CancelablePromise<void> {
|
||||
return __request(OpenAPI, {
|
||||
@ -6459,9 +6577,9 @@ export class DescriptionsService {
|
||||
*
|
||||
* Fourth line
|
||||
* @param parameterWithBackticks Testing backticks in string: \`backticks\` and \`\`\`multiple backticks\`\`\` should work
|
||||
* @param parameterWithSlashes Testing slashes in string: \\\\backwards\\\\\\\\\\\\ and /forwards/// should work
|
||||
* @param parameterWithSlashes Testing slashes in string: \\backwards\\\\\\ and /forwards/// should work
|
||||
* @param parameterWithExpressionPlaceholders Testing expression placeholders in string: \${expression} should work
|
||||
* @param parameterWithQuotes Testing quotes in string: 'single quote''' and \\"double quotes\\"\\"\\" should work
|
||||
* @param parameterWithQuotes Testing quotes in string: 'single quote''' and "double quotes""" should work
|
||||
* @param parameterWithReservedCharacters Testing reserved characters in string: * inline * and ** inline ** should work
|
||||
* @throws ApiError
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user