From 14ecfc0aacab75e607328e7bd31ccec60670feb2 Mon Sep 17 00:00:00 2001 From: lena-larionova <54370747+lena-larionova@users.noreply.github.com> Date: Fri, 13 Dec 2024 14:14:02 -0800 Subject: [PATCH 1/2] fix route format --- app/_hub/kong-inc/oas-validation/overview/_index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/_hub/kong-inc/oas-validation/overview/_index.md b/app/_hub/kong-inc/oas-validation/overview/_index.md index 826a8440c2df..e77c2523ae2f 100644 --- a/app/_hub/kong-inc/oas-validation/overview/_index.md +++ b/app/_hub/kong-inc/oas-validation/overview/_index.md @@ -64,9 +64,9 @@ This example tutorial steps you through ensuring an API request conforms to the ```bash curl -X POST http://localhost:8001/services/Petstore-Service/routes \ --data name='Petstore-Route' \ - --data paths='/.*' + --data paths='~/.*' ``` - + 3. Enable the Validation plugin on the service you configured: ```bash From c53e8575d06503f34a3b67c40999ee31fa2bd528 Mon Sep 17 00:00:00 2001 From: lena-larionova <54370747+lena-larionova@users.noreply.github.com> Date: Fri, 13 Dec 2024 14:18:07 -0800 Subject: [PATCH 2/2] set strip_path to false --- app/_hub/kong-inc/oas-validation/overview/_index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/_hub/kong-inc/oas-validation/overview/_index.md b/app/_hub/kong-inc/oas-validation/overview/_index.md index e77c2523ae2f..ecf622a47949 100644 --- a/app/_hub/kong-inc/oas-validation/overview/_index.md +++ b/app/_hub/kong-inc/oas-validation/overview/_index.md @@ -64,7 +64,8 @@ This example tutorial steps you through ensuring an API request conforms to the ```bash curl -X POST http://localhost:8001/services/Petstore-Service/routes \ --data name='Petstore-Route' \ - --data paths='~/.*' + --data paths='~/.*' \ + --data strip_path=false ``` 3. Enable the Validation plugin on the service you configured: