Skip to content

Commit 1ab4fe4

Browse files
authored
fix petstore security spec to remove validation errors (#739)
1 parent f6c2105 commit 1ab4fe4

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ paths:
2525
tags:
2626
- fake
2727
summary: To test code injection */ ' " =end -- \r\n \n \r
28-
descriptions: To test code injection */ ' " =end -- \r\n \n \r
28+
description: To test code injection */ ' " =end -- \r\n \n \r
2929
operationId: testCodeInject */ ' " =end -- \r\n \n \r
3030
consumes:
3131
- application/json
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.2-SNAPSHOT
1+
3.2.0-SNAPSHOT

samples/server/petstore-security-test/php-slim/lib/Api/FakeApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class FakeApi extends AbstractApiController {
4343
/**
4444
* PUT testCodeInjectEndRnNR
4545
* Summary: To test code injection *_/ ' \" =end -- \\r\\n \\n \\r
46-
* Notes:
46+
* Notes: To test code injection *_/ ' \" =end -- \\r\\n \\n \\r
4747
*
4848
* @param \Psr\Http\Message\ServerRequestInterface $request Request
4949
* @param \Psr\Http\Message\ResponseInterface $response Response

samples/server/petstore-security-test/php-slim/phpunit.xml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
</testsuites>
2020
<filter>
2121
<whitelist processUncoveredFilesFromWhitelist="true">
22-
<directory suffix=".php">./lib//Api</directory>
23-
<directory suffix=".php">./lib//Model</directory>
22+
<directory suffix=".php">./lib/Api</directory>
23+
<directory suffix=".php">./lib/Model</directory>
2424
</whitelist>
2525
</filter>
2626
</phpunit>

0 commit comments

Comments
 (0)