-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
591 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace RonasIT\Support\AutoDoc\Exceptions\SpecValidation; | ||
|
||
use Exception; | ||
|
||
class DuplicateFieldException extends Exception | ||
{ | ||
public function __construct(string $fieldName, array $fieldValue) | ||
{ | ||
$fieldValueString = implode(', ', $fieldValue); | ||
|
||
parent::__construct("Validation failed. Found multiple '{$fieldName}' with value '{$fieldValueString}'."); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/Exceptions/SpecValidation/InvalidFieldNameException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace RonasIT\Support\AutoDoc\Exceptions\SpecValidation; | ||
|
||
use Exception; | ||
|
||
class InvalidFieldNameException extends Exception | ||
{ | ||
public function __construct(string $fieldName) | ||
{ | ||
parent::__construct("Validation failed. Invalid field name '{$fieldName}' found."); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
src/Exceptions/SpecValidation/InvalidHttpMethodException.php
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/Exceptions/SpecValidation/InvalidResponseCodeException.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/Exceptions/SpecValidation/MissingPathPlaceholderException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace RonasIT\Support\AutoDoc\Exceptions\SpecValidation; | ||
|
||
use Exception; | ||
|
||
class MissingPathPlaceholderException extends Exception | ||
{ | ||
public function __construct(string $operationId, string $paramName) | ||
{ | ||
parent::__construct("Validation failed. Operation {$operationId} has a path parameter named '{$paramName}', but there is no corresponding '{$paramName}' in the path string."); | ||
} | ||
} |
Oops, something went wrong.