mirror of
https://github.com/opdavies/build-configs.git
synced 2025-09-07 03:45:34 +01:00
parent
a179f1b0ee
commit
b4b289748a
7 changed files with 68 additions and 2 deletions
|
@ -28,13 +28,20 @@ final class ConfigurationValidator implements ValidatorInterface
|
|||
'language' => [
|
||||
new Assert\NotNull(),
|
||||
new Assert\Type('string'),
|
||||
new Assert\Choice(['node', 'php']),
|
||||
new Assert\Choice([
|
||||
'node',
|
||||
'php',
|
||||
]),
|
||||
],
|
||||
|
||||
'type' => [
|
||||
new Assert\NotNull(),
|
||||
new Assert\Type('string'),
|
||||
new Assert\Choice(['drupal-project', 'fractal', 'php-library']),
|
||||
new Assert\Choice([
|
||||
'drupal-project',
|
||||
'fractal',
|
||||
'php-library',
|
||||
]),
|
||||
],
|
||||
|
||||
'project_root' => [
|
||||
|
@ -53,6 +60,8 @@ final class ConfigurationValidator implements ValidatorInterface
|
|||
// TODO: this should be a boolean if present.
|
||||
'justfile' => new Assert\Optional(),
|
||||
|
||||
'node' => new Assert\Optional(),
|
||||
|
||||
'php' => new Assert\Optional(),
|
||||
|
||||
'web' => new Assert\Optional(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue