Skip to content

Commit 48bb891

Browse files
Update unit tests for title annotation
1 parent fbe198d commit 48bb891

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

tests/fixtures/testModel.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,6 +1143,7 @@ export class TestClassModel extends TestClassBaseModel {
11431143
* @maxLength 20
11441144
* @pattern ^[a-zA-Z]+$
11451145
* @example "classPropExample"
1146+
* @title Example title
11461147
*/
11471148
public publicStringProperty!: string;
11481149
/**

tests/unit/swagger/definitionsGeneration/definitions.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,7 @@ describe('Definition generation', () => {
12481248
description: 'This is a description of a public string property',
12491249
format: undefined,
12501250
example: 'classPropExample',
1251+
title: 'Example title',
12511252
},
12521253
defaultValue2: { type: 'string', default: 'Default Value 2', description: undefined, format: undefined, example: undefined },
12531254
account: { $ref: '#/definitions/Account', format: undefined, description: undefined, example: undefined },

tests/unit/swagger/schemaDetails3.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2353,6 +2353,7 @@ describe('Definition generation for OpenAPI 3.0.0', () => {
23532353
description: 'This is a description of a public string property',
23542354
format: undefined,
23552355
example: 'classPropExample',
2356+
title: 'Example title',
23562357
},
23572358
defaultValue2: { type: 'string', default: 'Default Value 2', description: undefined, format: undefined, example: undefined },
23582359
account: { $ref: '#/components/schemas/Account', format: undefined, description: undefined, example: undefined },

0 commit comments

Comments
 (0)