mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 14:39:28 -07:00
Fix serviceProvider patter
This commit is contained in:
parent
bb5f3ccea2
commit
e52c63e4e0
1 changed files with 7 additions and 9 deletions
|
@ -38,22 +38,20 @@ const pattern = {
|
|||
uri: (x) => {
|
||||
return _.isString(x) || _.isNull(x)
|
||||
},
|
||||
fetch: (x) => {
|
||||
return _.isString(x) || _.isNull(x)
|
||||
request: {
|
||||
fetcher: _.isString,
|
||||
access: _.isInteger,
|
||||
format: _.isInteger,
|
||||
data: _.isObject,
|
||||
},
|
||||
useProxy: _.isBoolean,
|
||||
format: _.isString,
|
||||
},
|
||||
claim: {
|
||||
fingerprint: (x) => {
|
||||
return _.isString(x) || _.isNull(x)
|
||||
},
|
||||
format: _.isString,
|
||||
format: _.isInteger,
|
||||
relation: _.isInteger,
|
||||
path: _.isArray,
|
||||
relation: _.isString,
|
||||
},
|
||||
customRequestHandler: (x) => {
|
||||
return _.isFunction(x) || _.isNull(x) || _.isUndefined(x)
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue