mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-02 08:58:32 +00:00
Add TRACE to allowed import methods (#2783)
This commit is contained in:
@@ -48,7 +48,7 @@ const varsSchema = Yup.object({
|
||||
|
||||
const requestUrlSchema = Yup.string().min(0).defined();
|
||||
const requestMethodSchema = Yup.string()
|
||||
.oneOf(['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'HEAD', 'OPTIONS'])
|
||||
.oneOf(['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'HEAD', 'OPTIONS', 'TRACE'])
|
||||
.required('method is required');
|
||||
|
||||
const graphqlBodySchema = Yup.object({
|
||||
|
||||
@@ -32,7 +32,7 @@ describe('Request Schema Validation', () => {
|
||||
return Promise.all([
|
||||
expect(requestSchema.validate(request)).rejects.toEqual(
|
||||
validationErrorWithMessages(
|
||||
'method must be one of the following values: GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS'
|
||||
'method must be one of the following values: GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS, TRACE'
|
||||
)
|
||||
)
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user