Skip to content
Snippets Groups Projects
Unverified Commit dd789f33 authored by Matej Hrica's avatar Matej Hrica
Browse files

Fix not compiling authorization

parent 35d127ce
No related branches found
No related tags found
No related merge requests found
...@@ -103,12 +103,17 @@ components: ...@@ -103,12 +103,17 @@ components:
type: object type: object
title: User title: User
description: Represents a system user. description: Represents a system user.
required:
- login
- firstName
- lastName
- email
- role
properties: properties:
login: login:
type: string type: string
description: name used for logging in description: name used for logging in
example: john.doe example: john.doe
required: true
firstName: firstName:
type: string type: string
description: first name of a the user description: first name of a the user
...@@ -122,39 +127,44 @@ components: ...@@ -122,39 +127,44 @@ components:
description: email address of the user description: email address of the user
example: john@example.com example: john@example.com
role: role:
enum: description: the role of the user
- manager type: string
- superadmin # FIXME: is this an openapi bug or just wrong syntax ? https://github.com/OpenAPITools/openapi-generator/issues/11323
#enum:
# - manager
# - admin
CreationUserDto: CreationUserDto:
type: object type: object
title: User title: User
description: Represents a user. description: Represents a user.
required:
- login
- firstName
- lastName
- password
- email
- role
properties: properties:
login: login:
type: string type: string
description: name used for logging in description: name used for logging in
example: john.doe example: john.doe
required: true
firstName: firstName:
type: string type: string
description: first name of a the user description: first name of a the user
example: John example: John
required: true
lastName: lastName:
type: string type: string
description: last name of a user description: last name of a user
example: Doe example: Doe
required: true
password: password:
type: string type: string
description: password of the user description: password of the user
example: secretPassword example: secretPassword
required: true
email: email:
type: string type: string
description: email address of the user description: email address of the user
example: john@example.com example: john@example.com
role: role:
enum: type: string
- manager # TODO: enum
- superadmin \ No newline at end of file
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment