{
  "openapi": "3.1.0",
  "info": {
    "title": "Schema.biz Fake REST API",
    "version": "1.0.0",
    "summary": "Fixed fake data for tutorials, prototypes and tests. Nothing sent to it is stored.",
    "description": "A free fake REST API with 8 related resources. GETs return fixed records; POST, PUT, PATCH and DELETE are checked against each resource's schema and answered as if they worked, but nothing is stored (every response has X-Fake-API: not-persisted). CORS is open to every origin. Limits: 60 requests a minute per IP address (best effort), 16 KB bodies. Docs: https://schema.biz/api/fake-api/"
  },
  "externalDocs": {
    "description": "Docs, examples and a Try-it box",
    "url": "https://schema.biz/api/fake-api/"
  },
  "servers": [
    {
      "url": "https://schema.biz/fake/v1"
    }
  ],
  "tags": [
    {
      "name": "users",
      "description": "People with an email, phone, company, address and role."
    },
    {
      "name": "posts",
      "description": "Blog posts, each written by a user, with tags."
    },
    {
      "name": "comments",
      "description": "Comments on posts, each by a user."
    },
    {
      "name": "todos",
      "description": "To-do items, each belonging to a user, done or not."
    },
    {
      "name": "products",
      "description": "Products with a category, price, stock count, SKU and rating."
    },
    {
      "name": "orders",
      "description": "Orders placed by users: line items, a status, a shipping address and a total."
    },
    {
      "name": "carts",
      "description": "Shopping carts, one per user at most, with line items and a total."
    },
    {
      "name": "reviews",
      "description": "Product reviews by users, rated 1 to 5."
    }
  ],
  "paths": {
    "/users": {
      "get": {
        "operationId": "listUsers",
        "tags": [
          "users"
        ],
        "summary": "List users",
        "description": "People with an email, phone, company, address and role. 30 records.",
        "parameters": [
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/order"
          },
          {
            "$ref": "#/components/parameters/q"
          },
          {
            "$ref": "#/components/parameters/users.id"
          },
          {
            "$ref": "#/components/parameters/users.name"
          },
          {
            "$ref": "#/components/parameters/users.email"
          },
          {
            "$ref": "#/components/parameters/users.phone"
          },
          {
            "$ref": "#/components/parameters/users.website"
          },
          {
            "$ref": "#/components/parameters/users.company"
          },
          {
            "$ref": "#/components/parameters/users.role"
          },
          {
            "$ref": "#/components/parameters/users.createdAt"
          },
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The users, filtered, searched, sorted and paged as asked.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "X-Total-Count": {
                "$ref": "#/components/headers/X-Total-Count"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/User"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "post": {
        "operationId": "createUser",
        "tags": [
          "users"
        ],
        "summary": "Create a user (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The user as it would be created, with the next id.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "Location": {
                "description": "Where the user would be.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/users/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/id"
        }
      ],
      "get": {
        "operationId": "getUser",
        "tags": [
          "users"
        ],
        "summary": "Get a user",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The user.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "put": {
        "operationId": "replaceUser",
        "tags": [
          "users"
        ],
        "summary": "Replace a user (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The user as it would be after the change.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "patch": {
        "operationId": "updateUser",
        "tags": [
          "users"
        ],
        "summary": "Update some of a user's fields (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The user as it would be after the change.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "delete": {
        "operationId": "deleteUser",
        "tags": [
          "users"
        ],
        "summary": "Delete a user (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The user that would be deleted.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/users/{id}/posts": {
      "parameters": [
        {
          "$ref": "#/components/parameters/id"
        }
      ],
      "get": {
        "operationId": "listUserPosts",
        "tags": [
          "posts"
        ],
        "summary": "List a user's posts",
        "description": "The posts whose userId is this user's id; the same as /posts?userId={id}.",
        "parameters": [
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/order"
          },
          {
            "$ref": "#/components/parameters/q"
          },
          {
            "$ref": "#/components/parameters/posts.id"
          },
          {
            "$ref": "#/components/parameters/posts.title"
          },
          {
            "$ref": "#/components/parameters/posts.body"
          },
          {
            "$ref": "#/components/parameters/posts.published"
          },
          {
            "$ref": "#/components/parameters/posts.createdAt"
          },
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The posts, filtered, searched, sorted and paged as asked.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "X-Total-Count": {
                "$ref": "#/components/headers/X-Total-Count"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Post"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "post": {
        "operationId": "createUserPost",
        "tags": [
          "posts"
        ],
        "summary": "Create a post for a user (not stored)",
        "description": "Like POST /posts, with userId set from the path.",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostInput",
                "description": "userId may be left out."
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The post as it would be created.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "Location": {
                "description": "Where the post would be.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Post"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/users/{id}/comments": {
      "parameters": [
        {
          "$ref": "#/components/parameters/id"
        }
      ],
      "get": {
        "operationId": "listUserComments",
        "tags": [
          "comments"
        ],
        "summary": "List a user's comments",
        "description": "The comments whose userId is this user's id; the same as /comments?userId={id}.",
        "parameters": [
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/order"
          },
          {
            "$ref": "#/components/parameters/q"
          },
          {
            "$ref": "#/components/parameters/comments.id"
          },
          {
            "$ref": "#/components/parameters/comments.postId"
          },
          {
            "$ref": "#/components/parameters/comments.body"
          },
          {
            "$ref": "#/components/parameters/comments.createdAt"
          },
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The comments, filtered, searched, sorted and paged as asked.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "X-Total-Count": {
                "$ref": "#/components/headers/X-Total-Count"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Comment"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "post": {
        "operationId": "createUserComment",
        "tags": [
          "comments"
        ],
        "summary": "Create a comment for a user (not stored)",
        "description": "Like POST /comments, with userId set from the path.",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommentInput",
                "description": "userId may be left out."
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The comment as it would be created.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "Location": {
                "description": "Where the comment would be.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Comment"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/users/{id}/todos": {
      "parameters": [
        {
          "$ref": "#/components/parameters/id"
        }
      ],
      "get": {
        "operationId": "listUserTodos",
        "tags": [
          "todos"
        ],
        "summary": "List a user's todos",
        "description": "The todos whose userId is this user's id; the same as /todos?userId={id}.",
        "parameters": [
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/order"
          },
          {
            "$ref": "#/components/parameters/q"
          },
          {
            "$ref": "#/components/parameters/todos.id"
          },
          {
            "$ref": "#/components/parameters/todos.title"
          },
          {
            "$ref": "#/components/parameters/todos.completed"
          },
          {
            "$ref": "#/components/parameters/todos.dueDate"
          },
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The todos, filtered, searched, sorted and paged as asked.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "X-Total-Count": {
                "$ref": "#/components/headers/X-Total-Count"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Todo"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "post": {
        "operationId": "createUserTodo",
        "tags": [
          "todos"
        ],
        "summary": "Create a todo for a user (not stored)",
        "description": "Like POST /todos, with userId set from the path.",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TodoInput",
                "description": "userId may be left out."
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The todo as it would be created.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "Location": {
                "description": "Where the todo would be.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Todo"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/users/{id}/orders": {
      "parameters": [
        {
          "$ref": "#/components/parameters/id"
        }
      ],
      "get": {
        "operationId": "listUserOrders",
        "tags": [
          "orders"
        ],
        "summary": "List a user's orders",
        "description": "The orders whose userId is this user's id; the same as /orders?userId={id}.",
        "parameters": [
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/order"
          },
          {
            "$ref": "#/components/parameters/q"
          },
          {
            "$ref": "#/components/parameters/orders.id"
          },
          {
            "$ref": "#/components/parameters/orders.status"
          },
          {
            "$ref": "#/components/parameters/orders.total"
          },
          {
            "$ref": "#/components/parameters/orders.createdAt"
          },
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The orders, filtered, searched, sorted and paged as asked.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "X-Total-Count": {
                "$ref": "#/components/headers/X-Total-Count"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Order"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "post": {
        "operationId": "createUserOrder",
        "tags": [
          "orders"
        ],
        "summary": "Create a order for a user (not stored)",
        "description": "Like POST /orders, with userId set from the path.",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderInput",
                "description": "userId may be left out."
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The order as it would be created.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "Location": {
                "description": "Where the order would be.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/users/{id}/carts": {
      "parameters": [
        {
          "$ref": "#/components/parameters/id"
        }
      ],
      "get": {
        "operationId": "listUserCarts",
        "tags": [
          "carts"
        ],
        "summary": "List a user's carts",
        "description": "The carts whose userId is this user's id; the same as /carts?userId={id}.",
        "parameters": [
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/order"
          },
          {
            "$ref": "#/components/parameters/q"
          },
          {
            "$ref": "#/components/parameters/carts.id"
          },
          {
            "$ref": "#/components/parameters/carts.total"
          },
          {
            "$ref": "#/components/parameters/carts.updatedAt"
          },
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The carts, filtered, searched, sorted and paged as asked.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "X-Total-Count": {
                "$ref": "#/components/headers/X-Total-Count"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cart"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "post": {
        "operationId": "createUserCart",
        "tags": [
          "carts"
        ],
        "summary": "Create a cart for a user (not stored)",
        "description": "Like POST /carts, with userId set from the path.",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CartInput",
                "description": "userId may be left out."
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The cart as it would be created.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "Location": {
                "description": "Where the cart would be.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cart"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/users/{id}/reviews": {
      "parameters": [
        {
          "$ref": "#/components/parameters/id"
        }
      ],
      "get": {
        "operationId": "listUserReviews",
        "tags": [
          "reviews"
        ],
        "summary": "List a user's reviews",
        "description": "The reviews whose userId is this user's id; the same as /reviews?userId={id}.",
        "parameters": [
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/order"
          },
          {
            "$ref": "#/components/parameters/q"
          },
          {
            "$ref": "#/components/parameters/reviews.id"
          },
          {
            "$ref": "#/components/parameters/reviews.productId"
          },
          {
            "$ref": "#/components/parameters/reviews.rating"
          },
          {
            "$ref": "#/components/parameters/reviews.title"
          },
          {
            "$ref": "#/components/parameters/reviews.body"
          },
          {
            "$ref": "#/components/parameters/reviews.createdAt"
          },
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The reviews, filtered, searched, sorted and paged as asked.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "X-Total-Count": {
                "$ref": "#/components/headers/X-Total-Count"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Review"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "post": {
        "operationId": "createUserReview",
        "tags": [
          "reviews"
        ],
        "summary": "Create a review for a user (not stored)",
        "description": "Like POST /reviews, with userId set from the path.",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewInput",
                "description": "userId may be left out."
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The review as it would be created.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "Location": {
                "description": "Where the review would be.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Review"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/posts": {
      "get": {
        "operationId": "listPosts",
        "tags": [
          "posts"
        ],
        "summary": "List posts",
        "description": "Blog posts, each written by a user, with tags. 100 records.",
        "parameters": [
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/order"
          },
          {
            "$ref": "#/components/parameters/q"
          },
          {
            "$ref": "#/components/parameters/posts.id"
          },
          {
            "$ref": "#/components/parameters/posts.userId"
          },
          {
            "$ref": "#/components/parameters/posts.title"
          },
          {
            "$ref": "#/components/parameters/posts.body"
          },
          {
            "$ref": "#/components/parameters/posts.published"
          },
          {
            "$ref": "#/components/parameters/posts.createdAt"
          },
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The posts, filtered, searched, sorted and paged as asked.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "X-Total-Count": {
                "$ref": "#/components/headers/X-Total-Count"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Post"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "post": {
        "operationId": "createPost",
        "tags": [
          "posts"
        ],
        "summary": "Create a post (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The post as it would be created, with the next id.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "Location": {
                "description": "Where the post would be.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Post"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/posts/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/id"
        }
      ],
      "get": {
        "operationId": "getPost",
        "tags": [
          "posts"
        ],
        "summary": "Get a post",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The post.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Post"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "put": {
        "operationId": "replacePost",
        "tags": [
          "posts"
        ],
        "summary": "Replace a post (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The post as it would be after the change.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Post"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "patch": {
        "operationId": "updatePost",
        "tags": [
          "posts"
        ],
        "summary": "Update some of a post's fields (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The post as it would be after the change.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Post"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "delete": {
        "operationId": "deletePost",
        "tags": [
          "posts"
        ],
        "summary": "Delete a post (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The post that would be deleted.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Post"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/posts/{id}/comments": {
      "parameters": [
        {
          "$ref": "#/components/parameters/id"
        }
      ],
      "get": {
        "operationId": "listPostComments",
        "tags": [
          "comments"
        ],
        "summary": "List a post's comments",
        "description": "The comments whose postId is this post's id; the same as /comments?postId={id}.",
        "parameters": [
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/order"
          },
          {
            "$ref": "#/components/parameters/q"
          },
          {
            "$ref": "#/components/parameters/comments.id"
          },
          {
            "$ref": "#/components/parameters/comments.userId"
          },
          {
            "$ref": "#/components/parameters/comments.body"
          },
          {
            "$ref": "#/components/parameters/comments.createdAt"
          },
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The comments, filtered, searched, sorted and paged as asked.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "X-Total-Count": {
                "$ref": "#/components/headers/X-Total-Count"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Comment"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "post": {
        "operationId": "createPostComment",
        "tags": [
          "comments"
        ],
        "summary": "Create a comment for a post (not stored)",
        "description": "Like POST /comments, with postId set from the path.",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommentInput",
                "description": "postId may be left out."
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The comment as it would be created.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "Location": {
                "description": "Where the comment would be.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Comment"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/comments": {
      "get": {
        "operationId": "listComments",
        "tags": [
          "comments"
        ],
        "summary": "List comments",
        "description": "Comments on posts, each by a user. 200 records.",
        "parameters": [
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/order"
          },
          {
            "$ref": "#/components/parameters/q"
          },
          {
            "$ref": "#/components/parameters/comments.id"
          },
          {
            "$ref": "#/components/parameters/comments.postId"
          },
          {
            "$ref": "#/components/parameters/comments.userId"
          },
          {
            "$ref": "#/components/parameters/comments.body"
          },
          {
            "$ref": "#/components/parameters/comments.createdAt"
          },
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The comments, filtered, searched, sorted and paged as asked.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "X-Total-Count": {
                "$ref": "#/components/headers/X-Total-Count"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Comment"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "post": {
        "operationId": "createComment",
        "tags": [
          "comments"
        ],
        "summary": "Create a comment (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommentInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The comment as it would be created, with the next id.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "Location": {
                "description": "Where the comment would be.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Comment"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/comments/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/id"
        }
      ],
      "get": {
        "operationId": "getComment",
        "tags": [
          "comments"
        ],
        "summary": "Get a comment",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The comment.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Comment"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "put": {
        "operationId": "replaceComment",
        "tags": [
          "comments"
        ],
        "summary": "Replace a comment (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommentInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The comment as it would be after the change.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Comment"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "patch": {
        "operationId": "updateComment",
        "tags": [
          "comments"
        ],
        "summary": "Update some of a comment's fields (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommentPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The comment as it would be after the change.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Comment"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "delete": {
        "operationId": "deleteComment",
        "tags": [
          "comments"
        ],
        "summary": "Delete a comment (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The comment that would be deleted.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Comment"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/todos": {
      "get": {
        "operationId": "listTodos",
        "tags": [
          "todos"
        ],
        "summary": "List todos",
        "description": "To-do items, each belonging to a user, done or not. 150 records.",
        "parameters": [
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/order"
          },
          {
            "$ref": "#/components/parameters/q"
          },
          {
            "$ref": "#/components/parameters/todos.id"
          },
          {
            "$ref": "#/components/parameters/todos.userId"
          },
          {
            "$ref": "#/components/parameters/todos.title"
          },
          {
            "$ref": "#/components/parameters/todos.completed"
          },
          {
            "$ref": "#/components/parameters/todos.dueDate"
          },
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The todos, filtered, searched, sorted and paged as asked.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "X-Total-Count": {
                "$ref": "#/components/headers/X-Total-Count"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Todo"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "post": {
        "operationId": "createTodo",
        "tags": [
          "todos"
        ],
        "summary": "Create a todo (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TodoInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The todo as it would be created, with the next id.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "Location": {
                "description": "Where the todo would be.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Todo"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/todos/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/id"
        }
      ],
      "get": {
        "operationId": "getTodo",
        "tags": [
          "todos"
        ],
        "summary": "Get a todo",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The todo.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Todo"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "put": {
        "operationId": "replaceTodo",
        "tags": [
          "todos"
        ],
        "summary": "Replace a todo (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TodoInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The todo as it would be after the change.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Todo"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "patch": {
        "operationId": "updateTodo",
        "tags": [
          "todos"
        ],
        "summary": "Update some of a todo's fields (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TodoPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The todo as it would be after the change.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Todo"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "delete": {
        "operationId": "deleteTodo",
        "tags": [
          "todos"
        ],
        "summary": "Delete a todo (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The todo that would be deleted.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Todo"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/products": {
      "get": {
        "operationId": "listProducts",
        "tags": [
          "products"
        ],
        "summary": "List products",
        "description": "Products with a category, price, stock count, SKU and rating. 50 records.",
        "parameters": [
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/order"
          },
          {
            "$ref": "#/components/parameters/q"
          },
          {
            "$ref": "#/components/parameters/products.id"
          },
          {
            "$ref": "#/components/parameters/products.title"
          },
          {
            "$ref": "#/components/parameters/products.description"
          },
          {
            "$ref": "#/components/parameters/products.category"
          },
          {
            "$ref": "#/components/parameters/products.price"
          },
          {
            "$ref": "#/components/parameters/products.stock"
          },
          {
            "$ref": "#/components/parameters/products.sku"
          },
          {
            "$ref": "#/components/parameters/products.rating"
          },
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The products, filtered, searched, sorted and paged as asked.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "X-Total-Count": {
                "$ref": "#/components/headers/X-Total-Count"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Product"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "post": {
        "operationId": "createProduct",
        "tags": [
          "products"
        ],
        "summary": "Create a product (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProductInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The product as it would be created, with the next id.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "Location": {
                "description": "Where the product would be.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Product"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/products/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/id"
        }
      ],
      "get": {
        "operationId": "getProduct",
        "tags": [
          "products"
        ],
        "summary": "Get a product",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The product.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Product"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "put": {
        "operationId": "replaceProduct",
        "tags": [
          "products"
        ],
        "summary": "Replace a product (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProductInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The product as it would be after the change.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Product"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "patch": {
        "operationId": "updateProduct",
        "tags": [
          "products"
        ],
        "summary": "Update some of a product's fields (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProductPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The product as it would be after the change.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Product"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "delete": {
        "operationId": "deleteProduct",
        "tags": [
          "products"
        ],
        "summary": "Delete a product (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The product that would be deleted.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Product"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/products/{id}/reviews": {
      "parameters": [
        {
          "$ref": "#/components/parameters/id"
        }
      ],
      "get": {
        "operationId": "listProductReviews",
        "tags": [
          "reviews"
        ],
        "summary": "List a product's reviews",
        "description": "The reviews whose productId is this product's id; the same as /reviews?productId={id}.",
        "parameters": [
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/order"
          },
          {
            "$ref": "#/components/parameters/q"
          },
          {
            "$ref": "#/components/parameters/reviews.id"
          },
          {
            "$ref": "#/components/parameters/reviews.userId"
          },
          {
            "$ref": "#/components/parameters/reviews.rating"
          },
          {
            "$ref": "#/components/parameters/reviews.title"
          },
          {
            "$ref": "#/components/parameters/reviews.body"
          },
          {
            "$ref": "#/components/parameters/reviews.createdAt"
          },
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The reviews, filtered, searched, sorted and paged as asked.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "X-Total-Count": {
                "$ref": "#/components/headers/X-Total-Count"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Review"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "post": {
        "operationId": "createProductReview",
        "tags": [
          "reviews"
        ],
        "summary": "Create a review for a product (not stored)",
        "description": "Like POST /reviews, with productId set from the path.",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewInput",
                "description": "productId may be left out."
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The review as it would be created.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "Location": {
                "description": "Where the review would be.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Review"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/orders": {
      "get": {
        "operationId": "listOrders",
        "tags": [
          "orders"
        ],
        "summary": "List orders",
        "description": "Orders placed by users: line items, a status, a shipping address and a total. 60 records.",
        "parameters": [
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/order"
          },
          {
            "$ref": "#/components/parameters/q"
          },
          {
            "$ref": "#/components/parameters/orders.id"
          },
          {
            "$ref": "#/components/parameters/orders.userId"
          },
          {
            "$ref": "#/components/parameters/orders.status"
          },
          {
            "$ref": "#/components/parameters/orders.total"
          },
          {
            "$ref": "#/components/parameters/orders.createdAt"
          },
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The orders, filtered, searched, sorted and paged as asked.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "X-Total-Count": {
                "$ref": "#/components/headers/X-Total-Count"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Order"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "post": {
        "operationId": "createOrder",
        "tags": [
          "orders"
        ],
        "summary": "Create a order (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The order as it would be created, with the next id.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "Location": {
                "description": "Where the order would be.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/orders/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/id"
        }
      ],
      "get": {
        "operationId": "getOrder",
        "tags": [
          "orders"
        ],
        "summary": "Get a order",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The order.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "put": {
        "operationId": "replaceOrder",
        "tags": [
          "orders"
        ],
        "summary": "Replace a order (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The order as it would be after the change.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "patch": {
        "operationId": "updateOrder",
        "tags": [
          "orders"
        ],
        "summary": "Update some of a order's fields (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The order as it would be after the change.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "delete": {
        "operationId": "deleteOrder",
        "tags": [
          "orders"
        ],
        "summary": "Delete a order (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The order that would be deleted.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Order"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/carts": {
      "get": {
        "operationId": "listCarts",
        "tags": [
          "carts"
        ],
        "summary": "List carts",
        "description": "Shopping carts, one per user at most, with line items and a total. 20 records.",
        "parameters": [
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/order"
          },
          {
            "$ref": "#/components/parameters/q"
          },
          {
            "$ref": "#/components/parameters/carts.id"
          },
          {
            "$ref": "#/components/parameters/carts.userId"
          },
          {
            "$ref": "#/components/parameters/carts.total"
          },
          {
            "$ref": "#/components/parameters/carts.updatedAt"
          },
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The carts, filtered, searched, sorted and paged as asked.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "X-Total-Count": {
                "$ref": "#/components/headers/X-Total-Count"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Cart"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "post": {
        "operationId": "createCart",
        "tags": [
          "carts"
        ],
        "summary": "Create a cart (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CartInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The cart as it would be created, with the next id.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "Location": {
                "description": "Where the cart would be.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cart"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/carts/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/id"
        }
      ],
      "get": {
        "operationId": "getCart",
        "tags": [
          "carts"
        ],
        "summary": "Get a cart",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The cart.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cart"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "put": {
        "operationId": "replaceCart",
        "tags": [
          "carts"
        ],
        "summary": "Replace a cart (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CartInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The cart as it would be after the change.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cart"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "patch": {
        "operationId": "updateCart",
        "tags": [
          "carts"
        ],
        "summary": "Update some of a cart's fields (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CartPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The cart as it would be after the change.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cart"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "delete": {
        "operationId": "deleteCart",
        "tags": [
          "carts"
        ],
        "summary": "Delete a cart (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The cart that would be deleted.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cart"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/reviews": {
      "get": {
        "operationId": "listReviews",
        "tags": [
          "reviews"
        ],
        "summary": "List reviews",
        "description": "Product reviews by users, rated 1 to 5. 150 records.",
        "parameters": [
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "$ref": "#/components/parameters/sort"
          },
          {
            "$ref": "#/components/parameters/order"
          },
          {
            "$ref": "#/components/parameters/q"
          },
          {
            "$ref": "#/components/parameters/reviews.id"
          },
          {
            "$ref": "#/components/parameters/reviews.productId"
          },
          {
            "$ref": "#/components/parameters/reviews.userId"
          },
          {
            "$ref": "#/components/parameters/reviews.rating"
          },
          {
            "$ref": "#/components/parameters/reviews.title"
          },
          {
            "$ref": "#/components/parameters/reviews.body"
          },
          {
            "$ref": "#/components/parameters/reviews.createdAt"
          },
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The reviews, filtered, searched, sorted and paged as asked.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "X-Total-Count": {
                "$ref": "#/components/headers/X-Total-Count"
              },
              "Link": {
                "$ref": "#/components/headers/Link"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Review"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "post": {
        "operationId": "createReview",
        "tags": [
          "reviews"
        ],
        "summary": "Create a review (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The review as it would be created, with the next id.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              },
              "Location": {
                "description": "Where the review would be.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Review"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    },
    "/reviews/{id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/id"
        }
      ],
      "get": {
        "operationId": "getReview",
        "tags": [
          "reviews"
        ],
        "summary": "Get a review",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The review.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Review"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "put": {
        "operationId": "replaceReview",
        "tags": [
          "reviews"
        ],
        "summary": "Replace a review (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewInput"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The review as it would be after the change.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Review"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "patch": {
        "operationId": "updateReview",
        "tags": [
          "reviews"
        ],
        "summary": "Update some of a review's fields (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "requestBody": {
          "required": true,
          "description": "At most 16 KB of JSON. It's checked and answered, never stored.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReviewPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The review as it would be after the change.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Review"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/UnsupportedMediaType"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      },
      "delete": {
        "operationId": "deleteReview",
        "tags": [
          "reviews"
        ],
        "summary": "Delete a review (not stored)",
        "parameters": [
          {
            "$ref": "#/components/parameters/delay"
          },
          {
            "$ref": "#/components/parameters/status"
          }
        ],
        "responses": {
          "200": {
            "description": "The review that would be deleted.",
            "headers": {
              "X-Fake-API": {
                "$ref": "#/components/headers/X-Fake-API"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Review"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "default": {
            "$ref": "#/components/responses/Simulated"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Address": {
        "type": "object",
        "required": [
          "street",
          "city",
          "zipcode",
          "country"
        ],
        "additionalProperties": false,
        "properties": {
          "street": {
            "type": "string",
            "minLength": 3,
            "maxLength": 80
          },
          "city": {
            "type": "string",
            "minLength": 2,
            "maxLength": 60
          },
          "zipcode": {
            "type": "string",
            "pattern": "^[0-9]{5}$"
          },
          "country": {
            "type": "string",
            "pattern": "^[A-Z]{2}$",
            "description": "ISO 3166-1 alpha-2 country code."
          }
        }
      },
      "LineItem": {
        "type": "object",
        "required": [
          "productId",
          "quantity",
          "unitPrice"
        ],
        "additionalProperties": false,
        "properties": {
          "productId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5
          },
          "unitPrice": {
            "type": "number",
            "minimum": 1,
            "maximum": 500,
            "description": "The product's price when it was added."
          }
        }
      },
      "User": {
        "description": "People with an email, phone, company, address and role.",
        "type": "object",
        "required": [
          "id",
          "name",
          "email",
          "role",
          "address",
          "createdAt"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "description": "Assigned by the API."
          },
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 60
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "phone": {
            "type": "string",
            "maxLength": 30
          },
          "website": {
            "type": "string",
            "format": "uri"
          },
          "company": {
            "type": "string",
            "maxLength": 60
          },
          "role": {
            "type": "string",
            "enum": [
              "admin",
              "editor",
              "viewer"
            ]
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "UserInput": {
        "type": "object",
        "required": [
          "name",
          "email",
          "role",
          "address",
          "createdAt"
        ],
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 60
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "phone": {
            "type": "string",
            "maxLength": 30
          },
          "website": {
            "type": "string",
            "format": "uri"
          },
          "company": {
            "type": "string",
            "maxLength": 60
          },
          "role": {
            "type": "string",
            "enum": [
              "admin",
              "editor",
              "viewer"
            ]
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "A user without its id, which the API assigns."
      },
      "UserPatch": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 60
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "phone": {
            "type": "string",
            "maxLength": 30
          },
          "website": {
            "type": "string",
            "format": "uri"
          },
          "company": {
            "type": "string",
            "maxLength": 60
          },
          "role": {
            "type": "string",
            "enum": [
              "admin",
              "editor",
              "viewer"
            ]
          },
          "address": {
            "$ref": "#/components/schemas/Address"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Any of a user's fields; the rest keep their values."
      },
      "Post": {
        "description": "Blog posts, each written by a user, with tags.",
        "type": "object",
        "required": [
          "id",
          "userId",
          "title",
          "body",
          "published",
          "createdAt"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "description": "Assigned by the API."
          },
          "userId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "description": "The author's id."
          },
          "title": {
            "type": "string",
            "minLength": 3,
            "maxLength": 80
          },
          "body": {
            "type": "string",
            "minLength": 20,
            "maxLength": 600
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "api",
                "json",
                "schema",
                "testing",
                "frontend",
                "backend",
                "tutorial"
              ]
            },
            "uniqueItems": true,
            "minItems": 0,
            "maxItems": 3
          },
          "published": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "PostInput": {
        "type": "object",
        "required": [
          "userId",
          "title",
          "body",
          "published",
          "createdAt"
        ],
        "additionalProperties": false,
        "properties": {
          "userId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "description": "The author's id."
          },
          "title": {
            "type": "string",
            "minLength": 3,
            "maxLength": 80
          },
          "body": {
            "type": "string",
            "minLength": 20,
            "maxLength": 600
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "api",
                "json",
                "schema",
                "testing",
                "frontend",
                "backend",
                "tutorial"
              ]
            },
            "uniqueItems": true,
            "minItems": 0,
            "maxItems": 3
          },
          "published": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "A post without its id, which the API assigns."
      },
      "PostPatch": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "userId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "description": "The author's id."
          },
          "title": {
            "type": "string",
            "minLength": 3,
            "maxLength": 80
          },
          "body": {
            "type": "string",
            "minLength": 20,
            "maxLength": 600
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "api",
                "json",
                "schema",
                "testing",
                "frontend",
                "backend",
                "tutorial"
              ]
            },
            "uniqueItems": true,
            "minItems": 0,
            "maxItems": 3
          },
          "published": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Any of a post's fields; the rest keep their values."
      },
      "Comment": {
        "description": "Comments on posts, each by a user.",
        "type": "object",
        "required": [
          "id",
          "postId",
          "userId",
          "body",
          "createdAt"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "description": "Assigned by the API."
          },
          "postId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "The post's id."
          },
          "userId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "description": "The commenter's id."
          },
          "body": {
            "type": "string",
            "minLength": 5,
            "maxLength": 300
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "CommentInput": {
        "type": "object",
        "required": [
          "postId",
          "userId",
          "body",
          "createdAt"
        ],
        "additionalProperties": false,
        "properties": {
          "postId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "The post's id."
          },
          "userId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "description": "The commenter's id."
          },
          "body": {
            "type": "string",
            "minLength": 5,
            "maxLength": 300
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "A comment without its id, which the API assigns."
      },
      "CommentPatch": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "postId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "The post's id."
          },
          "userId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "description": "The commenter's id."
          },
          "body": {
            "type": "string",
            "minLength": 5,
            "maxLength": 300
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Any of a comment's fields; the rest keep their values."
      },
      "Todo": {
        "description": "To-do items, each belonging to a user, done or not.",
        "type": "object",
        "required": [
          "id",
          "userId",
          "title",
          "completed"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "description": "Assigned by the API."
          },
          "userId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "description": "The owner's id."
          },
          "title": {
            "type": "string",
            "minLength": 3,
            "maxLength": 80
          },
          "completed": {
            "type": "boolean"
          },
          "dueDate": {
            "type": "string",
            "format": "date"
          }
        }
      },
      "TodoInput": {
        "type": "object",
        "required": [
          "userId",
          "title",
          "completed"
        ],
        "additionalProperties": false,
        "properties": {
          "userId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "description": "The owner's id."
          },
          "title": {
            "type": "string",
            "minLength": 3,
            "maxLength": 80
          },
          "completed": {
            "type": "boolean"
          },
          "dueDate": {
            "type": "string",
            "format": "date"
          }
        },
        "description": "A todo without its id, which the API assigns."
      },
      "TodoPatch": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "userId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "description": "The owner's id."
          },
          "title": {
            "type": "string",
            "minLength": 3,
            "maxLength": 80
          },
          "completed": {
            "type": "boolean"
          },
          "dueDate": {
            "type": "string",
            "format": "date"
          }
        },
        "description": "Any of a todo's fields; the rest keep their values."
      },
      "Product": {
        "description": "Products with a category, price, stock count, SKU and rating.",
        "type": "object",
        "required": [
          "id",
          "title",
          "category",
          "price",
          "stock",
          "sku"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "description": "Assigned by the API."
          },
          "title": {
            "type": "string",
            "minLength": 3,
            "maxLength": 80
          },
          "description": {
            "type": "string",
            "minLength": 20,
            "maxLength": 300
          },
          "category": {
            "type": "string",
            "enum": [
              "books",
              "electronics",
              "garden",
              "home",
              "sports",
              "toys"
            ]
          },
          "price": {
            "type": "number",
            "minimum": 1,
            "maximum": 500
          },
          "stock": {
            "type": "integer",
            "minimum": 0,
            "maximum": 500
          },
          "sku": {
            "type": "string",
            "pattern": "^[A-Z]{3}-[0-9]{4}$"
          },
          "rating": {
            "type": "number",
            "minimum": 1,
            "maximum": 5
          }
        }
      },
      "ProductInput": {
        "type": "object",
        "required": [
          "title",
          "category",
          "price",
          "stock",
          "sku"
        ],
        "additionalProperties": false,
        "properties": {
          "title": {
            "type": "string",
            "minLength": 3,
            "maxLength": 80
          },
          "description": {
            "type": "string",
            "minLength": 20,
            "maxLength": 300
          },
          "category": {
            "type": "string",
            "enum": [
              "books",
              "electronics",
              "garden",
              "home",
              "sports",
              "toys"
            ]
          },
          "price": {
            "type": "number",
            "minimum": 1,
            "maximum": 500
          },
          "stock": {
            "type": "integer",
            "minimum": 0,
            "maximum": 500
          },
          "sku": {
            "type": "string",
            "pattern": "^[A-Z]{3}-[0-9]{4}$"
          },
          "rating": {
            "type": "number",
            "minimum": 1,
            "maximum": 5
          }
        },
        "description": "A product without its id, which the API assigns."
      },
      "ProductPatch": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "title": {
            "type": "string",
            "minLength": 3,
            "maxLength": 80
          },
          "description": {
            "type": "string",
            "minLength": 20,
            "maxLength": 300
          },
          "category": {
            "type": "string",
            "enum": [
              "books",
              "electronics",
              "garden",
              "home",
              "sports",
              "toys"
            ]
          },
          "price": {
            "type": "number",
            "minimum": 1,
            "maximum": 500
          },
          "stock": {
            "type": "integer",
            "minimum": 0,
            "maximum": 500
          },
          "sku": {
            "type": "string",
            "pattern": "^[A-Z]{3}-[0-9]{4}$"
          },
          "rating": {
            "type": "number",
            "minimum": 1,
            "maximum": 5
          }
        },
        "description": "Any of a product's fields; the rest keep their values."
      },
      "Order": {
        "description": "Orders placed by users: line items, a status, a shipping address and a total.",
        "type": "object",
        "required": [
          "id",
          "userId",
          "status",
          "items",
          "total",
          "shippingAddress",
          "createdAt"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "description": "Assigned by the API."
          },
          "userId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "description": "The customer's id."
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "paid",
              "shipped",
              "delivered",
              "cancelled"
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LineItem"
            },
            "minItems": 1,
            "maxItems": 4
          },
          "total": {
            "type": "number",
            "minimum": 0,
            "description": "The sum of quantity × unitPrice over the items."
          },
          "shippingAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "OrderInput": {
        "type": "object",
        "required": [
          "userId",
          "status",
          "items",
          "total",
          "shippingAddress",
          "createdAt"
        ],
        "additionalProperties": false,
        "properties": {
          "userId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "description": "The customer's id."
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "paid",
              "shipped",
              "delivered",
              "cancelled"
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LineItem"
            },
            "minItems": 1,
            "maxItems": 4
          },
          "total": {
            "type": "number",
            "minimum": 0,
            "description": "The sum of quantity × unitPrice over the items."
          },
          "shippingAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "A order without its id, which the API assigns."
      },
      "OrderPatch": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "userId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "description": "The customer's id."
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "paid",
              "shipped",
              "delivered",
              "cancelled"
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LineItem"
            },
            "minItems": 1,
            "maxItems": 4
          },
          "total": {
            "type": "number",
            "minimum": 0,
            "description": "The sum of quantity × unitPrice over the items."
          },
          "shippingAddress": {
            "$ref": "#/components/schemas/Address"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Any of a order's fields; the rest keep their values."
      },
      "Cart": {
        "description": "Shopping carts, one per user at most, with line items and a total.",
        "type": "object",
        "required": [
          "id",
          "userId",
          "items",
          "total",
          "updatedAt"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "description": "Assigned by the API."
          },
          "userId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "description": "The shopper's id."
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LineItem"
            },
            "minItems": 0,
            "maxItems": 4
          },
          "total": {
            "type": "number",
            "minimum": 0,
            "description": "The sum of quantity × unitPrice over the items."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "CartInput": {
        "type": "object",
        "required": [
          "userId",
          "items",
          "total",
          "updatedAt"
        ],
        "additionalProperties": false,
        "properties": {
          "userId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "description": "The shopper's id."
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LineItem"
            },
            "minItems": 0,
            "maxItems": 4
          },
          "total": {
            "type": "number",
            "minimum": 0,
            "description": "The sum of quantity × unitPrice over the items."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "A cart without its id, which the API assigns."
      },
      "CartPatch": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "userId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "description": "The shopper's id."
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LineItem"
            },
            "minItems": 0,
            "maxItems": 4
          },
          "total": {
            "type": "number",
            "minimum": 0,
            "description": "The sum of quantity × unitPrice over the items."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Any of a cart's fields; the rest keep their values."
      },
      "Review": {
        "description": "Product reviews by users, rated 1 to 5.",
        "type": "object",
        "required": [
          "id",
          "productId",
          "userId",
          "rating",
          "body",
          "createdAt"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "minimum": 1,
            "readOnly": true,
            "description": "Assigned by the API."
          },
          "productId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "description": "The reviewed product's id."
          },
          "userId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "description": "The reviewer's id."
          },
          "rating": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5
          },
          "title": {
            "type": "string",
            "minLength": 3,
            "maxLength": 80
          },
          "body": {
            "type": "string",
            "minLength": 10,
            "maxLength": 400
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ReviewInput": {
        "type": "object",
        "required": [
          "productId",
          "userId",
          "rating",
          "body",
          "createdAt"
        ],
        "additionalProperties": false,
        "properties": {
          "productId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "description": "The reviewed product's id."
          },
          "userId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "description": "The reviewer's id."
          },
          "rating": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5
          },
          "title": {
            "type": "string",
            "minLength": 3,
            "maxLength": 80
          },
          "body": {
            "type": "string",
            "minLength": 10,
            "maxLength": 400
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "A review without its id, which the API assigns."
      },
      "ReviewPatch": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "productId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "description": "The reviewed product's id."
          },
          "userId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "description": "The reviewer's id."
          },
          "rating": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5
          },
          "title": {
            "type": "string",
            "minLength": 3,
            "maxLength": 80
          },
          "body": {
            "type": "string",
            "minLength": 10,
            "maxLength": 400
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "Any of a review's fields; the rest keep their values."
      },
      "Problem": {
        "type": "object",
        "description": "An error, as RFC 9457 problem details.",
        "required": [
          "type",
          "title",
          "status"
        ],
        "properties": {
          "type": {
            "type": "string",
            "format": "uri",
            "description": "A link to the docs section about this kind of error."
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "minimum": 400,
            "maximum": 599
          },
          "detail": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "description": "For 422: each problem with the body.",
            "items": {
              "type": "object",
              "required": [
                "pointer",
                "message"
              ],
              "properties": {
                "pointer": {
                  "type": "string",
                  "description": "JSON pointer into the body."
                },
                "message": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "headers": {
      "X-Fake-API": {
        "description": "Always not-persisted: nothing sent to the API is stored.",
        "schema": {
          "type": "string",
          "const": "not-persisted"
        }
      },
      "X-Total-Count": {
        "description": "How many match, before paging.",
        "schema": {
          "type": "integer",
          "minimum": 0
        }
      },
      "Link": {
        "description": "first, prev, next and last pages, when _page or _limit is given (RFC 8288).",
        "schema": {
          "type": "string"
        }
      }
    },
    "parameters": {
      "users.id": {
        "name": "id",
        "in": "query",
        "required": false,
        "description": "Only users whose id equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "integer",
          "minimum": 1
        }
      },
      "users.name": {
        "name": "name",
        "in": "query",
        "required": false,
        "description": "Only users whose name equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "minLength": 2,
          "maxLength": 60
        }
      },
      "users.email": {
        "name": "email",
        "in": "query",
        "required": false,
        "description": "Only users whose email equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "format": "email"
        }
      },
      "users.phone": {
        "name": "phone",
        "in": "query",
        "required": false,
        "description": "Only users whose phone equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "maxLength": 30
        }
      },
      "users.website": {
        "name": "website",
        "in": "query",
        "required": false,
        "description": "Only users whose website equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "format": "uri"
        }
      },
      "users.company": {
        "name": "company",
        "in": "query",
        "required": false,
        "description": "Only users whose company equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "maxLength": 60
        }
      },
      "users.role": {
        "name": "role",
        "in": "query",
        "required": false,
        "description": "Only users whose role equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "enum": [
            "admin",
            "editor",
            "viewer"
          ]
        }
      },
      "users.createdAt": {
        "name": "createdAt",
        "in": "query",
        "required": false,
        "description": "Only users whose createdAt equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "format": "date-time"
        }
      },
      "posts.id": {
        "name": "id",
        "in": "query",
        "required": false,
        "description": "Only posts whose id equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "integer",
          "minimum": 1
        }
      },
      "posts.userId": {
        "name": "userId",
        "in": "query",
        "required": false,
        "description": "Only posts whose userId equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 30
        }
      },
      "posts.title": {
        "name": "title",
        "in": "query",
        "required": false,
        "description": "Only posts whose title equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "minLength": 3,
          "maxLength": 80
        }
      },
      "posts.body": {
        "name": "body",
        "in": "query",
        "required": false,
        "description": "Only posts whose body equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "minLength": 20,
          "maxLength": 600
        }
      },
      "posts.published": {
        "name": "published",
        "in": "query",
        "required": false,
        "description": "Only posts whose published equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "boolean"
        }
      },
      "posts.createdAt": {
        "name": "createdAt",
        "in": "query",
        "required": false,
        "description": "Only posts whose createdAt equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "format": "date-time"
        }
      },
      "comments.id": {
        "name": "id",
        "in": "query",
        "required": false,
        "description": "Only comments whose id equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "integer",
          "minimum": 1
        }
      },
      "comments.postId": {
        "name": "postId",
        "in": "query",
        "required": false,
        "description": "Only comments whose postId equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        }
      },
      "comments.userId": {
        "name": "userId",
        "in": "query",
        "required": false,
        "description": "Only comments whose userId equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 30
        }
      },
      "comments.body": {
        "name": "body",
        "in": "query",
        "required": false,
        "description": "Only comments whose body equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "minLength": 5,
          "maxLength": 300
        }
      },
      "comments.createdAt": {
        "name": "createdAt",
        "in": "query",
        "required": false,
        "description": "Only comments whose createdAt equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "format": "date-time"
        }
      },
      "todos.id": {
        "name": "id",
        "in": "query",
        "required": false,
        "description": "Only todos whose id equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "integer",
          "minimum": 1
        }
      },
      "todos.userId": {
        "name": "userId",
        "in": "query",
        "required": false,
        "description": "Only todos whose userId equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 30
        }
      },
      "todos.title": {
        "name": "title",
        "in": "query",
        "required": false,
        "description": "Only todos whose title equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "minLength": 3,
          "maxLength": 80
        }
      },
      "todos.completed": {
        "name": "completed",
        "in": "query",
        "required": false,
        "description": "Only todos whose completed equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "boolean"
        }
      },
      "todos.dueDate": {
        "name": "dueDate",
        "in": "query",
        "required": false,
        "description": "Only todos whose dueDate equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "format": "date"
        }
      },
      "products.id": {
        "name": "id",
        "in": "query",
        "required": false,
        "description": "Only products whose id equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "integer",
          "minimum": 1
        }
      },
      "products.title": {
        "name": "title",
        "in": "query",
        "required": false,
        "description": "Only products whose title equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "minLength": 3,
          "maxLength": 80
        }
      },
      "products.description": {
        "name": "description",
        "in": "query",
        "required": false,
        "description": "Only products whose description equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "minLength": 20,
          "maxLength": 300
        }
      },
      "products.category": {
        "name": "category",
        "in": "query",
        "required": false,
        "description": "Only products whose category equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "enum": [
            "books",
            "electronics",
            "garden",
            "home",
            "sports",
            "toys"
          ]
        }
      },
      "products.price": {
        "name": "price",
        "in": "query",
        "required": false,
        "description": "Only products whose price equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "number",
          "minimum": 1,
          "maximum": 500
        }
      },
      "products.stock": {
        "name": "stock",
        "in": "query",
        "required": false,
        "description": "Only products whose stock equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "integer",
          "minimum": 0,
          "maximum": 500
        }
      },
      "products.sku": {
        "name": "sku",
        "in": "query",
        "required": false,
        "description": "Only products whose sku equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "pattern": "^[A-Z]{3}-[0-9]{4}$"
        }
      },
      "products.rating": {
        "name": "rating",
        "in": "query",
        "required": false,
        "description": "Only products whose rating equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "number",
          "minimum": 1,
          "maximum": 5
        }
      },
      "orders.id": {
        "name": "id",
        "in": "query",
        "required": false,
        "description": "Only orders whose id equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "integer",
          "minimum": 1
        }
      },
      "orders.userId": {
        "name": "userId",
        "in": "query",
        "required": false,
        "description": "Only orders whose userId equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 30
        }
      },
      "orders.status": {
        "name": "status",
        "in": "query",
        "required": false,
        "description": "Only orders whose status equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "enum": [
            "pending",
            "paid",
            "shipped",
            "delivered",
            "cancelled"
          ]
        }
      },
      "orders.total": {
        "name": "total",
        "in": "query",
        "required": false,
        "description": "Only orders whose total equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "number",
          "minimum": 0
        }
      },
      "orders.createdAt": {
        "name": "createdAt",
        "in": "query",
        "required": false,
        "description": "Only orders whose createdAt equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "format": "date-time"
        }
      },
      "carts.id": {
        "name": "id",
        "in": "query",
        "required": false,
        "description": "Only carts whose id equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "integer",
          "minimum": 1
        }
      },
      "carts.userId": {
        "name": "userId",
        "in": "query",
        "required": false,
        "description": "Only carts whose userId equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 30
        }
      },
      "carts.total": {
        "name": "total",
        "in": "query",
        "required": false,
        "description": "Only carts whose total equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "number",
          "minimum": 0
        }
      },
      "carts.updatedAt": {
        "name": "updatedAt",
        "in": "query",
        "required": false,
        "description": "Only carts whose updatedAt equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "format": "date-time"
        }
      },
      "reviews.id": {
        "name": "id",
        "in": "query",
        "required": false,
        "description": "Only reviews whose id equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "integer",
          "minimum": 1
        }
      },
      "reviews.productId": {
        "name": "productId",
        "in": "query",
        "required": false,
        "description": "Only reviews whose productId equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 50
        }
      },
      "reviews.userId": {
        "name": "userId",
        "in": "query",
        "required": false,
        "description": "Only reviews whose userId equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 30
        }
      },
      "reviews.rating": {
        "name": "rating",
        "in": "query",
        "required": false,
        "description": "Only reviews whose rating equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 5
        }
      },
      "reviews.title": {
        "name": "title",
        "in": "query",
        "required": false,
        "description": "Only reviews whose title equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "minLength": 3,
          "maxLength": 80
        }
      },
      "reviews.body": {
        "name": "body",
        "in": "query",
        "required": false,
        "description": "Only reviews whose body equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "minLength": 10,
          "maxLength": 400
        }
      },
      "reviews.createdAt": {
        "name": "createdAt",
        "in": "query",
        "required": false,
        "description": "Only reviews whose createdAt equals this. Repeat it to match any of several values.",
        "schema": {
          "type": "string",
          "format": "date-time"
        }
      },
      "id": {
        "name": "id",
        "in": "path",
        "required": true,
        "description": "The record's id.",
        "schema": {
          "type": "integer",
          "minimum": 1
        }
      },
      "page": {
        "name": "_page",
        "in": "query",
        "required": false,
        "description": "Page number, from 1. With _page or _limit the response is paged and has a Link header.",
        "schema": {
          "type": "integer",
          "minimum": 1
        }
      },
      "limit": {
        "name": "_limit",
        "in": "query",
        "required": false,
        "description": "Records per page: 10 by default, at most 100.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        }
      },
      "sort": {
        "name": "_sort",
        "in": "query",
        "required": false,
        "description": "Fields to sort by, separated by commas.",
        "schema": {
          "type": "string"
        }
      },
      "order": {
        "name": "_order",
        "in": "query",
        "required": false,
        "description": "asc (the default) or desc, one per _sort field.",
        "schema": {
          "type": "string",
          "pattern": "^(asc|desc)(,(asc|desc))*$"
        }
      },
      "q": {
        "name": "_q",
        "in": "query",
        "required": false,
        "description": "Full-text search: records with any text value containing this, ignoring case.",
        "schema": {
          "type": "string",
          "maxLength": 100
        }
      },
      "delay": {
        "name": "_delay",
        "in": "query",
        "required": false,
        "description": "Wait this many milliseconds before answering (at most 3000).",
        "schema": {
          "type": "integer",
          "minimum": 0,
          "maximum": 3000
        }
      },
      "status": {
        "name": "_status",
        "in": "query",
        "required": false,
        "description": "Answer with this 4xx or 5xx status, as problem details, instead of the real response.",
        "schema": {
          "type": "integer",
          "minimum": 400,
          "maximum": 599
        }
      }
    },
    "responses": {
      "BadRequest": {
        "description": "A query parameter or the JSON body couldn't be read.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "NotFound": {
        "description": "No such resource or record.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "TooLarge": {
        "description": "The body is over 16 KB.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "UnsupportedMediaType": {
        "description": "The body isn't sent as application/json.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "Invalid": {
        "description": "The body doesn't match the resource's schema; errors lists each problem.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "Over 60 requests a minute from one IP address.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        },
        "headers": {
          "Retry-After": {
            "description": "Seconds to wait.",
            "schema": {
              "type": "integer"
            }
          }
        }
      },
      "Simulated": {
        "description": "A status asked for with _status, or another error.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      }
    }
  }
}