fix(core): validate provider body options
This commit is contained in:
parent
98d48b60be
commit
7e6a7b91d5
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ const lowerer: Lowerer = {
|
|||
return {
|
||||
settings: Object.fromEntries(Object.entries(options).filter(([key]) => key !== "headers" && key !== "body")),
|
||||
headers: record(options.headers, (value): value is string => typeof value === "string"),
|
||||
body: record(options.body, () => true),
|
||||
body: record(options.body, (_value): _value is unknown => true),
|
||||
}
|
||||
},
|
||||
model: (options) => ({ ...options }),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue