Skip to content

Commit f427054

Browse files
committed
Merge pull request #229 from joseprl89/feature/228
Added PATCH to the allowed HTTPMethod values.
2 parents 18532af + b8b266c commit f427054

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mockserver/model/request.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module MockServer::Model
1414
# Enum for HTTP methods
1515
class HTTPMethod < SymbolizedEnum
1616
def allowed_values
17-
[:GET, :POST, :PUT, :DELETE]
17+
[:GET, :POST, :PUT, :DELETE, :PATCH]
1818
end
1919
end
2020

@@ -24,7 +24,7 @@ class Request < Hashie::Trash
2424
include Hashie::Extensions::IgnoreUndeclared
2525
include Hashie::Extensions::Coercion
2626

27-
ALLOWED_METHODS = [:GET, :POST, :PUT, :DELETE]
27+
ALLOWED_METHODS = [:GET, :POST, :PUT, :DELETE, :PATCH]
2828

2929
property :method, required: true, default: :GET
3030
property :path, required: true, default: ''

0 commit comments

Comments
 (0)