Skip to content

Commit 398d06e

Browse files
committed
feat(rest): add PATCH
1 parent b2825d5 commit 398d06e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/REST.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ export const steps: StepRunner<Record<string, any>>[] = [
1717
regExpMatchedStep(
1818
{
1919
regExp:
20-
/^I `(?<method>GET|POST|PUT|DELETE)`( to)? `(?<endpoint>https?:\/\/[^`]+)`(?<withPayload> with)?$/,
20+
/^I `(?<method>GET|POST|PUT|PATCH|DELETE)`( to)? `(?<endpoint>https?:\/\/[^`]+)`(?<withPayload> with)?$/,
2121
schema: Type.Object({
2222
method: Type.Union([
2323
Type.Literal('GET'),
2424
Type.Literal('POST'),
2525
Type.Literal('PUT'),
26+
Type.Literal('PATCH'),
2627
Type.Literal('DELETE'),
2728
]),
2829
endpoint: Type.String({ minLength: 1 }),

0 commit comments

Comments
 (0)