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:
type: object
title: User
description: Represents a system user.
required:
- login
- firstName
- lastName
- email
- role
properties:
login:
type: string
description: name used for logging in
example: john.doe
required: true
firstName:
type: string
description: first name of a the user
......@@ -122,39 +127,44 @@ components:
description: email address of the user
example: john@example.com
role:
enum:
- manager
- superadmin
description: the role of the user
type: string
# FIXME: is this an openapi bug or just wrong syntax ? https://github.com/OpenAPITools/openapi-generator/issues/11323
#enum:
# - manager
# - admin
CreationUserDto:
type: object
title: User
description: Represents a user.
required:
- login
- firstName
- lastName
- password
- email
- role
properties:
login:
type: string
description: name used for logging in
example: john.doe
required: true
firstName:
type: string
description: first name of a the user
example: John
required: true
lastName:
type: string
description: last name of a user
example: Doe
required: true
password:
type: string
description: password of the user
example: secretPassword
required: true
email:
type: string
description: email address of the user
example: john@example.com
role:
enum:
- manager
- superadmin
\ No newline at end of file
type: string
# TODO: enum
\ 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