From e2961a49d81779bf7bcf02b39d381eb71e37e4d3 Mon Sep 17 00:00:00 2001 From: Andrey Pokhilko Date: Mon, 21 Feb 2022 17:40:50 +0300 Subject: [PATCH] Tune predefined spec --- agent/pkg/oas/test_artifacts/trcc.json | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/agent/pkg/oas/test_artifacts/trcc.json b/agent/pkg/oas/test_artifacts/trcc.json index 91252b166..4a49ec5b8 100644 --- a/agent/pkg/oas/test_artifacts/trcc.json +++ b/agent/pkg/oas/test_artifacts/trcc.json @@ -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+" + } + } + ] } } } \ No newline at end of file