Skip to content

Commit 4210541

Browse files
committed
feat(docker): fixed some schema definitions and disabled validation
1 parent 3cb69db commit 4210541

File tree

476 files changed

+879
-4773
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

476 files changed

+879
-4773
lines changed

.jane-openapi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ return [
1111
'clean-generated' => true,
1212
'reference' => true,
1313
'use-cacheable-supports-method' => true,
14-
'validation' => true,
14+
'validation' => false, // needs more patches to fully work
1515
];

.php-cs-fixer.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@
2929
/** symfony set @see \PhpCsFixer\RuleSet\Sets\SymfonyRiskySet */
3030
'@Symfony:risky' => true,
3131
'@PhpCsFixer:risky' => true,
32-
'@PHP83Migration' => true,
32+
'@PHP8x3Migration' => true,
3333
'@DoctrineAnnotation' => true,
34-
// OEG Set:
35-
'binary_operator_spaces' => [
34+
'binary_operator_spaces' => [
3635
'default' => 'align',
3736
'operators' => [
3837
'??' => 'single_space',

bin/docker-api

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';
1818
return static function (array $context) {
1919
$application = new Application('Docker API', '@package_version@');
2020
$application->add(new ListContainersCommand());
21-
$application->setDefaultCommand('synchronize-hosts');
21+
$application->setDefaultCommand('docker:list-containers');
2222

2323
return $application;
2424
};

generated/Model/ContainerConfig.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function isInitialized($property): bool
9494
/**
9595
* Command to run specified as a string or an array of strings.
9696
*
97-
* @var list<string>
97+
* @var list<string>|null
9898
*/
9999
protected $cmd;
100100
/**
@@ -120,7 +120,7 @@ public function isInitialized($property): bool
120120
* An object mapping mount point paths inside the container to empty
121121
* objects.
122122
*
123-
* @var array<string, array<string, mixed>>
123+
* @var array<string, array<string, mixed>>|null
124124
*/
125125
protected $volumes;
126126
/**
@@ -136,7 +136,7 @@ public function isInitialized($property): bool
136136
* entry point is reset to system default (i.e., the entry point used by
137137
* docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`).
138138
*
139-
* @var list<string>
139+
* @var list<string>|null
140140
*/
141141
protected $entrypoint;
142142
/**
@@ -478,21 +478,21 @@ public function setEnv(array $env): self
478478
/**
479479
* Command to run specified as a string or an array of strings.
480480
*
481-
* @return list<string>
481+
* @return list<string>|null
482482
*/
483-
public function getCmd(): array
483+
public function getCmd(): ?array
484484
{
485485
return $this->cmd;
486486
}
487487

488488
/**
489489
* Command to run specified as a string or an array of strings.
490490
*
491-
* @param list<string> $cmd
491+
* @param list<string>|null $cmd
492492
*
493493
* @return self
494494
*/
495-
public function setCmd(array $cmd): self
495+
public function setCmd(?array $cmd): self
496496
{
497497
$this->initialized['cmd'] = true;
498498
$this->cmd = $cmd;
@@ -581,9 +581,9 @@ public function setImage(string $image): self
581581
* An object mapping mount point paths inside the container to empty
582582
* objects.
583583
*
584-
* @return array<string, array<string, mixed>>
584+
* @return array<string, array<string, mixed>>|null
585585
*/
586-
public function getVolumes(): iterable
586+
public function getVolumes(): ?iterable
587587
{
588588
return $this->volumes;
589589
}
@@ -592,11 +592,11 @@ public function getVolumes(): iterable
592592
* An object mapping mount point paths inside the container to empty
593593
* objects.
594594
*
595-
* @param array<string, array<string, mixed>> $volumes
595+
* @param array<string, array<string, mixed>>|null $volumes
596596
*
597597
* @return self
598598
*/
599-
public function setVolumes(iterable $volumes): self
599+
public function setVolumes(?iterable $volumes): self
600600
{
601601
$this->initialized['volumes'] = true;
602602
$this->volumes = $volumes;
@@ -636,9 +636,9 @@ public function setWorkingDir(string $workingDir): self
636636
* entry point is reset to system default (i.e., the entry point used by
637637
* docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`).
638638
*
639-
* @return list<string>
639+
* @return list<string>|null
640640
*/
641-
public function getEntrypoint(): array
641+
public function getEntrypoint(): ?array
642642
{
643643
return $this->entrypoint;
644644
}
@@ -650,11 +650,11 @@ public function getEntrypoint(): array
650650
* entry point is reset to system default (i.e., the entry point used by
651651
* docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`).
652652
*
653-
* @param list<string> $entrypoint
653+
* @param list<string>|null $entrypoint
654654
*
655655
* @return self
656656
*/
657-
public function setEntrypoint(array $entrypoint): self
657+
public function setEntrypoint(?array $entrypoint): self
658658
{
659659
$this->initialized['entrypoint'] = true;
660660
$this->entrypoint = $entrypoint;

generated/Model/ContainerInspectResponse.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function isInitialized($property): bool
161161
/**
162162
* Container configuration that depends on the host we are running on.
163163
*
164-
* @var HostConfig
164+
* @var HostConfig|null
165165
*/
166166
protected $hostConfig;
167167
/**
@@ -741,21 +741,21 @@ public function setExecIDs(?array $execIDs): self
741741
/**
742742
* Container configuration that depends on the host we are running on.
743743
*
744-
* @return HostConfig
744+
* @return HostConfig|null
745745
*/
746-
public function getHostConfig(): HostConfig
746+
public function getHostConfig(): ?HostConfig
747747
{
748748
return $this->hostConfig;
749749
}
750750

751751
/**
752752
* Container configuration that depends on the host we are running on.
753753
*
754-
* @param HostConfig $hostConfig
754+
* @param HostConfig|null $hostConfig
755755
*
756756
* @return self
757757
*/
758-
public function setHostConfig(HostConfig $hostConfig): self
758+
public function setHostConfig(?HostConfig $hostConfig): self
759759
{
760760
$this->initialized['hostConfig'] = true;
761761
$this->hostConfig = $hostConfig;

generated/Model/ContainersCreatePostBody.php

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function isInitialized($property): bool
9494
/**
9595
* Command to run specified as a string or an array of strings.
9696
*
97-
* @var list<string>
97+
* @var list<string>|null
9898
*/
9999
protected $cmd;
100100
/**
@@ -120,7 +120,7 @@ public function isInitialized($property): bool
120120
* An object mapping mount point paths inside the container to empty
121121
* objects.
122122
*
123-
* @var array<string, array<string, mixed>>
123+
* @var array<string, array<string, mixed>>|null
124124
*/
125125
protected $volumes;
126126
/**
@@ -136,7 +136,7 @@ public function isInitialized($property): bool
136136
* entry point is reset to system default (i.e., the entry point used by
137137
* docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`).
138138
*
139-
* @var list<string>
139+
* @var list<string>|null
140140
*/
141141
protected $entrypoint;
142142
/**
@@ -186,7 +186,7 @@ public function isInitialized($property): bool
186186
/**
187187
* Container configuration that depends on the host we are running on.
188188
*
189-
* @var HostConfig
189+
* @var HostConfig|null
190190
*/
191191
protected $hostConfig;
192192
/**
@@ -493,21 +493,21 @@ public function setEnv(array $env): self
493493
/**
494494
* Command to run specified as a string or an array of strings.
495495
*
496-
* @return list<string>
496+
* @return list<string>|null
497497
*/
498-
public function getCmd(): array
498+
public function getCmd(): ?array
499499
{
500500
return $this->cmd;
501501
}
502502

503503
/**
504504
* Command to run specified as a string or an array of strings.
505505
*
506-
* @param list<string> $cmd
506+
* @param list<string>|null $cmd
507507
*
508508
* @return self
509509
*/
510-
public function setCmd(array $cmd): self
510+
public function setCmd(?array $cmd): self
511511
{
512512
$this->initialized['cmd'] = true;
513513
$this->cmd = $cmd;
@@ -596,9 +596,9 @@ public function setImage(string $image): self
596596
* An object mapping mount point paths inside the container to empty
597597
* objects.
598598
*
599-
* @return array<string, array<string, mixed>>
599+
* @return array<string, array<string, mixed>>|null
600600
*/
601-
public function getVolumes(): iterable
601+
public function getVolumes(): ?iterable
602602
{
603603
return $this->volumes;
604604
}
@@ -607,11 +607,11 @@ public function getVolumes(): iterable
607607
* An object mapping mount point paths inside the container to empty
608608
* objects.
609609
*
610-
* @param array<string, array<string, mixed>> $volumes
610+
* @param array<string, array<string, mixed>>|null $volumes
611611
*
612612
* @return self
613613
*/
614-
public function setVolumes(iterable $volumes): self
614+
public function setVolumes(?iterable $volumes): self
615615
{
616616
$this->initialized['volumes'] = true;
617617
$this->volumes = $volumes;
@@ -651,9 +651,9 @@ public function setWorkingDir(string $workingDir): self
651651
* entry point is reset to system default (i.e., the entry point used by
652652
* docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`).
653653
*
654-
* @return list<string>
654+
* @return list<string>|null
655655
*/
656-
public function getEntrypoint(): array
656+
public function getEntrypoint(): ?array
657657
{
658658
return $this->entrypoint;
659659
}
@@ -665,11 +665,11 @@ public function getEntrypoint(): array
665665
* entry point is reset to system default (i.e., the entry point used by
666666
* docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`).
667667
*
668-
* @param list<string> $entrypoint
668+
* @param list<string>|null $entrypoint
669669
*
670670
* @return self
671671
*/
672-
public function setEntrypoint(array $entrypoint): self
672+
public function setEntrypoint(?array $entrypoint): self
673673
{
674674
$this->initialized['entrypoint'] = true;
675675
$this->entrypoint = $entrypoint;
@@ -859,21 +859,21 @@ public function setShell(?array $shell): self
859859
/**
860860
* Container configuration that depends on the host we are running on.
861861
*
862-
* @return HostConfig
862+
* @return HostConfig|null
863863
*/
864-
public function getHostConfig(): HostConfig
864+
public function getHostConfig(): ?HostConfig
865865
{
866866
return $this->hostConfig;
867867
}
868868

869869
/**
870870
* Container configuration that depends on the host we are running on.
871871
*
872-
* @param HostConfig $hostConfig
872+
* @param HostConfig|null $hostConfig
873873
*
874874
* @return self
875875
*/
876-
public function setHostConfig(HostConfig $hostConfig): self
876+
public function setHostConfig(?HostConfig $hostConfig): self
877877
{
878878
$this->initialized['hostConfig'] = true;
879879
$this->hostConfig = $hostConfig;

0 commit comments

Comments
 (0)