You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mv-api-spec/openapi/components/schemas/user.yaml

29 lines
1009 B

# Whether you participate or organize, you're a User.
type: object
properties:
id:
type: string
description: |
A unique identifier.
That identifier has a fixed length of 10 alphanumerical characters,
as well as `_` and `-`.
pattern: '[abcdefghijkmnopqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ0-9_-]{10}'
example: 1jDe2e57_F
username:
type: string
# To support all unicode letters, can we use `\p{L}` instead?
pattern: '[a-zA-Z0-9._-]{3,21}'
description: >
Unique username, chosen by the user.
May only contain alphanumeric latin characters without diacritics and `.`, `-` or `_`.
example: john.doe.41
password:
type: string
format: password
description: >
Hash of the password chosen by the user.
# description:
# type: string
# description: An optional description of the user
# example: John Doe is a multiple-use name that is used when the true name of a person is unknown or is being intentionally concealed