Skip to content

Commit ecff095

Browse files
tobyzernergithub-actions[bot]
authored andcommitted
Run Prettier
1 parent 0a80255 commit ecff095

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

src/Extension/Atomic/Atomic.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ public function rootSchema(SchemaContext $context): array
174174
'content' => [
175175
$mediaType => [
176176
'schema' => [
177-
'$ref' => '#/components/schemas/jsonApiAtomicOperationsDocument',
177+
'$ref' =>
178+
'#/components/schemas/jsonApiAtomicOperationsDocument',
178179
],
179180
],
180181
],
@@ -185,7 +186,8 @@ public function rootSchema(SchemaContext $context): array
185186
'content' => [
186187
$mediaType => [
187188
'schema' => [
188-
'$ref' => '#/components/schemas/jsonApiAtomicResultsDocument',
189+
'$ref' =>
190+
'#/components/schemas/jsonApiAtomicResultsDocument',
189191
],
190192
],
191193
],
@@ -284,7 +286,8 @@ public function rootSchema(SchemaContext $context): array
284286
[
285287
'type' => 'array',
286288
'items' => [
287-
'$ref' => '#/components/schemas/jsonApiAtomicResourceIdentifier',
289+
'$ref' =>
290+
'#/components/schemas/jsonApiAtomicResourceIdentifier',
288291
],
289292
],
290293
['type' => 'null'],
@@ -304,7 +307,8 @@ public function rootSchema(SchemaContext $context): array
304307
'type' => 'object',
305308
'properties' => [
306309
'data' => [
307-
'$ref' => '#/components/schemas/jsonApiAtomicRelationshipData',
310+
'$ref' =>
311+
'#/components/schemas/jsonApiAtomicRelationshipData',
308312
],
309313
'meta' => ['type' => 'object'],
310314
'links' => ['type' => 'object'],
@@ -337,7 +341,8 @@ public function rootSchema(SchemaContext $context): array
337341
'oneOf' => [
338342
['type' => 'null'],
339343
[
340-
'$ref' => '#/components/schemas/jsonApiAtomicResultDocument',
344+
'$ref' =>
345+
'#/components/schemas/jsonApiAtomicResultDocument',
341346
],
342347
],
343348
],

tests/specification/AtomicOperationsTest.php

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ public function test_atomic_operations_schema()
170170
'properties' => [
171171
'atomic:operations' => [
172172
'items' => [
173-
'$ref' =>
174-
'#/components/schemas/jsonApiAtomicOperation',
173+
'$ref' => '#/components/schemas/jsonApiAtomicOperation',
175174
],
176175
],
177176
],
@@ -183,8 +182,7 @@ public function test_atomic_operations_schema()
183182
'enum' => ['add', 'update', 'remove'],
184183
],
185184
'data' => [
186-
'$ref' =>
187-
'#/components/schemas/jsonApiAtomicOperationData',
185+
'$ref' => '#/components/schemas/jsonApiAtomicOperationData',
188186
],
189187
'ref' => [
190188
'$ref' => '#/components/schemas/jsonApiAtomicRef',
@@ -195,8 +193,7 @@ public function test_atomic_operations_schema()
195193
'anyOf' => [
196194
['$ref' => '#/components/schemas/jsonApiAtomicResourceObject'],
197195
[
198-
'$ref' =>
199-
'#/components/schemas/jsonApiAtomicRelationshipData',
196+
'$ref' => '#/components/schemas/jsonApiAtomicRelationshipData',
200197
],
201198
],
202199
],
@@ -223,10 +220,7 @@ public function test_atomic_operations_schema()
223220
'jsonApiAtomicRef' => [
224221
'properties' => [
225222
'relationship' => [
226-
'oneOf' => [
227-
['type' => 'string'],
228-
['type' => 'object'],
229-
],
223+
'oneOf' => [['type' => 'string'], ['type' => 'object']],
230224
],
231225
],
232226
],

0 commit comments

Comments
 (0)