Skip to content

Commit

Permalink
Added length restriction to spec
Browse files Browse the repository at this point in the history
(cherry picked from commit 41c6ea8)
  • Loading branch information
lastmheart committed May 24, 2023
1 parent 27d1526 commit 1b50d1b
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion ewm-main-service-spec.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"openapi": "3.0.1",
"info": {
"title": "Main service API",
"description": "Documentation \"Explore With Me\" API v1.0",
"title": "\"Explore With Me\" API сервер",
"version": "1.0"
},
"servers": [
Expand Down Expand Up @@ -479,6 +480,7 @@
"name": "from",
"required": false,
"schema": {
"minimum": 0,
"type": "integer",
"format": "int32",
"default": 0
Expand Down Expand Up @@ -634,6 +636,7 @@
"name": "from",
"required": false,
"schema": {
"minimum": 0,
"type": "integer",
"format": "int32",
"default": 0
Expand Down Expand Up @@ -803,6 +806,7 @@
"name": "from",
"required": false,
"schema": {
"minimum": 0,
"type": "integer",
"format": "int32",
"default": 0
Expand Down Expand Up @@ -943,6 +947,7 @@
"name": "from",
"required": false,
"schema": {
"minimum": 0,
"type": "integer",
"format": "int32",
"default": 0
Expand Down Expand Up @@ -1074,6 +1079,8 @@
"name": "text",
"required": false,
"schema": {
"maxLength": 7000,
"minLength": 1,
"type": "string"
}
},
Expand Down Expand Up @@ -1146,6 +1153,7 @@
"name": "from",
"required": false,
"schema": {
"minimum": 0,
"type": "integer",
"format": "int32",
"default": 0
Expand Down Expand Up @@ -1287,6 +1295,7 @@
"name": "from",
"required": false,
"schema": {
"minimum": 0,
"type": "integer",
"format": "int32",
"default": 0
Expand Down Expand Up @@ -2098,6 +2107,8 @@
"example": 1
},
"name": {
"maxLength": 50,
"minLength": 1,
"type": "string",
"description": "Название категории",
"example": "Концерты"
Expand Down Expand Up @@ -2441,6 +2452,8 @@
"type": "object",
"properties": {
"name": {
"maxLength": 50,
"minLength": 1,
"type": "string",
"description": "Название категории",
"example": "Концерты"
Expand Down Expand Up @@ -2476,6 +2489,8 @@
"default": false
},
"title": {
"maxLength": 50,
"minLength": 1,
"type": "string",
"description": "Заголовок подборки",
"example": "Летние концерты"
Expand Down Expand Up @@ -2559,11 +2574,15 @@
"type": "object",
"properties": {
"email": {
"maxLength": 254,
"minLength": 6,
"type": "string",
"description": "Почтовый адрес",
"example": "[email protected]"
},
"name": {
"maxLength": 250,
"minLength": 2,
"type": "string",
"description": "Имя",
"example": "Иван Петров"
Expand Down Expand Up @@ -2624,6 +2643,8 @@
"example": true
},
"title": {
"maxLength": 50,
"minLength": 1,
"type": "string",
"description": "Заголовок подборки",
"example": "Необычные фотозоны"
Expand Down

0 comments on commit 1b50d1b

Please sign in to comment.