Skip to main content

User

idint64
pet object
oneOf
idint64

Pet ID

category Category

Categories this pet belongs to

idint64

Category ID

namestring

Category name

Possible values: non-empty

sub object

Test Sub Category

prop1string

Dumb Property

namestringrequired

The name given to a pet

Example: Guru
photoUrlsurl[]required

The list of URL to a cute photos featuring pet

Possible values: <= 20

friendcircular(Pet)
tags Tag[]required

Tags attached to the pet

Possible values: >= 1

  • Array [
  • idint64

    Tag ID

    namestring

    Tag name

    Possible values: non-empty

  • ]
  • statusstring

    Pet status in the store

    Enum ValueDescription
    availableWhen the pet is available
    pendingWhen the pet is being sold
    soldWhen the pet has been sold.

    These descriptions can contain line

    breaks and also links

    Possible values: [available, pending, sold]

    petType object

    Type of a pet

    Possible values: [cat, dog, bee]

    huntingSkillstringrequired

    The measured skill for hunting

    Possible values: [clueless, lazy, adventurous, aggressive]

    Default value: lazy
    Example: adventurous
    usernamestring

    User supplied username

    Possible values: >= 4 characters

    Example: John78
    firstNamestring

    User first name

    Possible values: non-empty

    Example: John
    lastNamestring

    User last name

    Possible values: non-empty

    Example: Smith
    emailemail

    User email address

    Example: john.smith@example.com
    passwordpassword

    User password, MUST contain a mix of upper and lower case letters, as well as digits

    Possible values: >= 8 characters, Value must match regular expression /(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])/

    Example: drowssaP123
    phonestring

    User phone number in international format

    Possible values: Value must match regular expression /^\+(?:[0-9]-?){6,14}[0-9]$/

    Example: +1-202-555-0192
    userStatusint32

    User status

    User
    {
    "id": 0,
    "pet": {
    "id": 0,
    "category": {
    "id": 0,
    "name": "string",
    "sub": {
    "prop1": "string"
    }
    },
    "name": "Guru",
    "photoUrls": [
    "string"
    ],
    "friend": {},
    "tags": [
    {
    "id": 0,
    "name": "string"
    }
    ],
    "status": "available",
    "petType": {
    "huntingSkill": "adventurous"
    }
    },
    "username": "John78",
    "firstName": "John",
    "lastName": "Smith",
    "email": "john.smith@example.com",
    "password": "drowssaP123",
    "phone": "+1-202-555-0192",
    "userStatus": 0
    }