Skip to content

Commit c469ad7

Browse files
committed
Linter fixes
1 parent 3ae51c6 commit c469ad7

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/execute/oas3/style-serializer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import encodeToRFC3986 from "encode-3986"
1+
import encodeToRFC3986 from 'encode-3986'
22

33
export default function (config) {
44
const {value} = config

test/oas3/execute/style-explode.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -974,13 +974,13 @@ describe('buildRequest w/ `style` & `explode` - OpenAPI Specification 3.0', func
974974
spec,
975975
operationId: 'myOperation',
976976
parameters: {
977-
id: `:/?#[]@!$&'()*+,;=`
977+
id: ':/?#[]@!$&\'()*+,;='
978978
}
979979
})
980980

981981
expect(req).toEqual({
982982
method: 'GET',
983-
url: `/users?id=:/?#[]@!$&'()*+,;=`,
983+
url: '/users?id=:/?#[]@!$&\'()*+,;=',
984984
credentials: 'same-origin',
985985
headers: {},
986986
})
@@ -1012,13 +1012,13 @@ describe('buildRequest w/ `style` & `explode` - OpenAPI Specification 3.0', func
10121012
spec,
10131013
operationId: 'myOperation',
10141014
parameters: {
1015-
id: `:/?#[]@!$&'()*+,;=`
1015+
id: ':/?#[]@!$&\'()*+,;='
10161016
}
10171017
})
10181018

10191019
expect(req).toEqual({
10201020
method: 'GET',
1021-
url: `/users?id=%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D`,
1021+
url: '/users?id=%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D',
10221022
credentials: 'same-origin',
10231023
headers: {},
10241024
})
@@ -1167,15 +1167,15 @@ describe('buildRequest w/ `style` & `explode` - OpenAPI Specification 3.0', func
11671167
operationId: 'myOperation',
11681168
parameters: {
11691169
id: [
1170-
":", "/", "?", "#", "[", "]", "@", "!", "$", "&", "'",
1171-
"(", ")", "*", "+", ",", ";", "="
1170+
':', '/', '?', '#', '[', ']', '@', '!', '$', '&', '\'',
1171+
'(', ')', '*', '+', ',', ';', '='
11721172
]
11731173
}
11741174
})
11751175

11761176
expect(req).toEqual({
11771177
method: 'GET',
1178-
url: `/users?id=:,/,?,#,[,],@,!,$,&,',(,),*,+,,,;,=`,
1178+
url: '/users?id=:,/,?,#,[,],@,!,$,&,\',(,),*,+,,,;,=',
11791179
credentials: 'same-origin',
11801180
headers: {},
11811181
})
@@ -1208,15 +1208,15 @@ describe('buildRequest w/ `style` & `explode` - OpenAPI Specification 3.0', func
12081208
operationId: 'myOperation',
12091209
parameters: {
12101210
id: [
1211-
":", "/", "?", "#", "[", "]", "@", "!", "$", "&", "'",
1212-
"(", ")", "*", "+", ",", ";", "="
1211+
':', '/', '?', '#', '[', ']', '@', '!', '$', '&', '\'',
1212+
'(', ')', '*', '+', ',', ';', '='
12131213
]
12141214
}
12151215
})
12161216

12171217
expect(req).toEqual({
12181218
method: 'GET',
1219-
url: `/users?id=%3A%2C%2F%2C%3F%2C%23%2C%5B%2C%5D%2C%40%2C%21%2C%24%2C%26%2C%27%2C%28%2C%29%2C%2A%2C%2B%2C%2C%2C%3B%2C%3D`,
1219+
url: '/users?id=%3A%2C%2F%2C%3F%2C%23%2C%5B%2C%5D%2C%40%2C%21%2C%24%2C%26%2C%27%2C%28%2C%29%2C%2A%2C%2B%2C%2C%2C%3B%2C%3D',
12201220
credentials: 'same-origin',
12211221
headers: {},
12221222
})

0 commit comments

Comments
 (0)