Skip to content

Commit b06274d

Browse files
committed
baseline
1 parent 8d6385c commit b06274d

File tree

6 files changed

+14
-5
lines changed

6 files changed

+14
-5
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ jobs:
12981298
tests/Fixtures/app/console api:openapi:export --yaml -o build/out/openapi/openapi_v3.yaml
12991299
- name: Validate OpenAPI documents
13001300
run: |
1301-
npx @quobix/vacuum lint build/out/openapi/openapi_v3.yaml
1301+
npx @quobix/vacuum lint -r tests/Fixtures/app/ruleset.yaml build/out/openapi/openapi_v3.yaml -d
13021302
13031303
laravel:
13041304
name: Laravel (PHP ${{ matrix.php }})

tests/Fixtures/TestBundle/ApiResource/Issue6211/ArrayPropertyDtoOperation.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use ApiPlatform\Metadata\Get;
1717
use ApiPlatform\Tests\Fixtures\TestBundle\Dto\ArrayPropertyDto;
1818

19-
#[Get(provider: [ArrayPropertyDtoOperation::class, 'provide'], output: ArrayPropertyDto::class)]
19+
#[Get(provider: [ArrayPropertyDtoOperation::class, 'provide'], output: ArrayPropertyDto::class, openapi: false)]
2020
class ArrayPropertyDtoOperation
2121
{
2222
public static function provide(): ArrayPropertyDto

tests/Fixtures/TestBundle/ApiResource/Issue6299/Issue6299.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use ApiPlatform\Metadata\Get;
1818

1919
#[ApiResource]
20-
#[Get(output: Issue6299OutputDto::class)]
20+
#[Get(output: Issue6299OutputDto::class, openapi: false)]
2121
final class Issue6299
2222
{
2323
}

tests/Fixtures/TestBundle/ApiResource/Issue6810/JsonLdContextOutput.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use ApiPlatform\Metadata\Get;
1717
use ApiPlatform\Metadata\Operation;
1818

19-
#[Get('/json_ld_context_output', provider: [self::class, 'getData'], output: Output::class, normalizationContext: ['hydra_prefix' => false])]
19+
#[Get('/json_ld_context_output', provider: [self::class, 'getData'], output: Output::class, normalizationContext: ['hydra_prefix' => false], openapi: false)]
2020
class JsonLdContextOutput
2121
{
2222
public function __construct(public string $id)

tests/Fixtures/TestBundle/Entity/WrappedResponseEntity.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use Doctrine\ORM\Mapping as ORM;
2020
use Symfony\Component\Serializer\Annotation\Groups;
2121

22-
#[ApiResource(operations: [new Get(normalizationContext: ['groups' => ['read']], output: CustomOutputEntityWrapperDto::class
22+
#[ApiResource(operations: [new Get(openapi: false, normalizationContext: ['groups' => ['read']], output: CustomOutputEntityWrapperDto::class
2323
)])]
2424
#[ORM\Entity]
2525
class WrappedResponseEntity

tests/Fixtures/app/ruleset.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
extends: [[spectral:oas, recommended]]
2+
rules:
3+
circular-references: false
4+
operation-success-response: false
5+
oas3-parameter-description: false
6+
oas3-missing-example: false
7+
description-duplication: false
8+
component-description: false
9+
paths-kebab-case: false

0 commit comments

Comments
 (0)