Skip to content

Commit

Permalink
added version annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
cebe committed Feb 10, 2022
1 parent 43044d5 commit 8bbbcf1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ services:
node:
image: node:12
volumes:
# - ./tests/tmp/.composer:/root/.composer:rw
- .:/app
3 changes: 2 additions & 1 deletion src/SpecBaseObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ protected function hasProperty(string $name): bool
/**
* @param string $name property name.
* @return bool true, when a property has a non-null value (does not check for default values)
* @since 1.6.0
*/
protected function hasPropertyValue(string $name): bool
{
Expand Down Expand Up @@ -511,7 +512,7 @@ public function getDocumentPosition(): ?JsonPointer
* Returns extension properties with `x-` prefix.
* @see https://github.com/OAI/OpenAPI-Specification/blob/3.0.2/versions/3.0.2.md#specificationExtensions
* @return array<string, mixed>
* @since 1.5.3
* @since 1.6.0
*/
public function getExtensions(): array
{
Expand Down
3 changes: 3 additions & 0 deletions tests/ReaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ private function assertApiContent(\cebe\openapi\spec\OpenApi $openapi)
$this->assertEquals("1.0.0", $openapi->info->version);
}

/**
* @see https://github.com/symfony/symfony/issues/34805
*/
public function testSymfonyYamlBugHunt()
{
$openApiFile = __DIR__ . '/../vendor/oai/openapi-specification/examples/v3.0/uspto.yaml';
Expand Down

0 comments on commit 8bbbcf1

Please sign in to comment.