Skip to content

Commit 8bbbcf1

Browse files
committedFeb 10, 2022
added version annotation
1 parent 43044d5 commit 8bbbcf1

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed
 

‎docker-compose.yml

-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ services:
1818
node:
1919
image: node:12
2020
volumes:
21-
# - ./tests/tmp/.composer:/root/.composer:rw
2221
- .:/app

‎src/SpecBaseObject.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ protected function hasProperty(string $name): bool
318318
/**
319319
* @param string $name property name.
320320
* @return bool true, when a property has a non-null value (does not check for default values)
321+
* @since 1.6.0
321322
*/
322323
protected function hasPropertyValue(string $name): bool
323324
{
@@ -511,7 +512,7 @@ public function getDocumentPosition(): ?JsonPointer
511512
* Returns extension properties with `x-` prefix.
512513
* @see https://github.com/OAI/OpenAPI-Specification/blob/3.0.2/versions/3.0.2.md#specificationExtensions
513514
* @return array<string, mixed>
514-
* @since 1.5.3
515+
* @since 1.6.0
515516
*/
516517
public function getExtensions(): array
517518
{

‎tests/ReaderTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ private function assertApiContent(\cebe\openapi\spec\OpenApi $openapi)
8989
$this->assertEquals("1.0.0", $openapi->info->version);
9090
}
9191

92+
/**
93+
* @see https://github.com/symfony/symfony/issues/34805
94+
*/
9295
public function testSymfonyYamlBugHunt()
9396
{
9497
$openApiFile = __DIR__ . '/../vendor/oai/openapi-specification/examples/v3.0/uspto.yaml';

0 commit comments

Comments
 (0)
Please sign in to comment.