Skip to content

Commit

Permalink
Endpoint: added patch method (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
kralmichal authored and Milan Felix 艩ulc committed Sep 26, 2017
1 parent e412a34 commit 0d81c8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Schema/Endpoint.php
Expand Up @@ -13,13 +13,15 @@ final class Endpoint
const METHOD_PUT = 'PUT';
const METHOD_DELETE = 'DELETE';
const METHOD_OPTION = 'OPTIONS';
const METHOD_PATCH = 'PATCH';

const METHODS = [
'GET',
'POST',
'PUT',
'DELETE',
'OPTIONS',
'PATCH',
];

/** @var string[] */
Expand Down
1 change: 1 addition & 0 deletions src/Schema/Validation/PathValidation.php
Expand Up @@ -40,6 +40,7 @@ protected function validateDuplicities(SchemaBuilder $builder)
Endpoint::METHOD_PUT => [],
Endpoint::METHOD_DELETE => [],
Endpoint::METHOD_OPTION => [],
Endpoint::METHOD_PATCH => [],
];
}

Expand Down

0 comments on commit 0d81c8b

Please sign in to comment.