Tune predefined spec

This commit is contained in:
Andrey Pokhilko
2022-02-21 17:40:50 +03:00
parent de17e605bf
commit e2961a49d8

View File

@@ -20,6 +20,31 @@
"example": "some-uuid-maybe"
}
]
},
"/models/{id}/{id2}": {
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"pattern": ".+(_|-|\\.).+"
},
"example": "some-uuid-maybe"
},
{
"name": "id2",
"in": "path",
"required": true,
"style": "simple",
"schema": {
"type": "string",
"pattern": "\\d+"
}
}
]
}
}
}