From 1ab4fe43b506329080d97a658967298f02affe87 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Mon, 6 Aug 2018 17:02:02 +0800 Subject: [PATCH] fix petstore security spec to remove validation errors (#739) --- .../src/test/resources/2_0/petstore-security-test.yaml | 2 +- .../php-slim/.openapi-generator/VERSION | 2 +- .../petstore-security-test/php-slim/lib/Api/FakeApi.php | 2 +- .../server/petstore-security-test/php-slim/phpunit.xml.dist | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml index 49fd4d18dc3..e63cb90e0a6 100644 --- a/modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml +++ b/modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml @@ -25,7 +25,7 @@ paths: tags: - fake summary: To test code injection */ ' " =end -- \r\n \n \r - descriptions: To test code injection */ ' " =end -- \r\n \n \r + description: To test code injection */ ' " =end -- \r\n \n \r operationId: testCodeInject */ ' " =end -- \r\n \n \r consumes: - application/json diff --git a/samples/server/petstore-security-test/php-slim/.openapi-generator/VERSION b/samples/server/petstore-security-test/php-slim/.openapi-generator/VERSION index 0f58aa04141..4395ff59232 100644 --- a/samples/server/petstore-security-test/php-slim/.openapi-generator/VERSION +++ b/samples/server/petstore-security-test/php-slim/.openapi-generator/VERSION @@ -1 +1 @@ -3.1.2-SNAPSHOT \ No newline at end of file +3.2.0-SNAPSHOT \ No newline at end of file diff --git a/samples/server/petstore-security-test/php-slim/lib/Api/FakeApi.php b/samples/server/petstore-security-test/php-slim/lib/Api/FakeApi.php index cb49e6b7797..464145051c8 100644 --- a/samples/server/petstore-security-test/php-slim/lib/Api/FakeApi.php +++ b/samples/server/petstore-security-test/php-slim/lib/Api/FakeApi.php @@ -43,7 +43,7 @@ class FakeApi extends AbstractApiController { /** * PUT testCodeInjectEndRnNR * Summary: To test code injection *_/ ' \" =end -- \\r\\n \\n \\r - * Notes: + * Notes: To test code injection *_/ ' \" =end -- \\r\\n \\n \\r * * @param \Psr\Http\Message\ServerRequestInterface $request Request * @param \Psr\Http\Message\ResponseInterface $response Response diff --git a/samples/server/petstore-security-test/php-slim/phpunit.xml.dist b/samples/server/petstore-security-test/php-slim/phpunit.xml.dist index 93af3ee9b13..4a44f5ac146 100644 --- a/samples/server/petstore-security-test/php-slim/phpunit.xml.dist +++ b/samples/server/petstore-security-test/php-slim/phpunit.xml.dist @@ -19,8 +19,8 @@ - ./lib//Api - ./lib//Model + ./lib/Api + ./lib/Model \ No newline at end of file