Skip to content

Commit 4a9267b

Browse files
committed
Remove oneOf to fix UserGet not being correctly generated
1 parent 48fc725 commit 4a9267b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

swagger.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2970,18 +2970,17 @@ components:
29702970
type: object
29712971
required:
29722972
- id
2973-
oneOf:
2974-
- required: ['name']
2975-
- required: ['email']
29762973
additionalProperties: true
29772974
properties:
29782975
id:
29792976
type: string
29802977
description: 'This is a string that uniquely identifies the user in the server, often it is an email address or an internal id'
29812978
name:
29822979
type: string
2980+
description: 'Must be provided if email is null'
29832981
email:
29842982
type: string
2983+
description: 'Must be provided if name is null'
29852984

29862985
topics_GET:
29872986
type: object

0 commit comments

Comments
 (0)