Skip to content

Commit

Permalink
Add test fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-balitskyi committed Jan 10, 2025
1 parent 848cb29 commit 12eb338
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/fixtures/types/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,22 @@ export default {
format: 'uuid',
type: 'string',
},
foo_type: {
description: 'Foo type',
type: 'string',
enum: ['foo_basic', 'foo_advanced'],
'x-enums': {
foo_basic: {
title: 'Basic Foo',
description: 'Use a basic foo',
},
foo_advanced: {
title: 'Advanced Foo',
description: 'Use an advanced foo',
deprecated: 'Advanced foo will be deprecated soon',
},
},
},
name: {
description: 'Foo name',
type: 'string',
Expand Down

0 comments on commit 12eb338

Please sign in to comment.