Skip to content

Commit 996205b

Browse files
committed
fix: Add objectParser action for ParseServerOptions in Definitions.js
1 parent f27b050 commit 996205b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

resources/buildConfigDefinitions.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ function mapperFor(elt, t) {
153153
return wrap(t.identifier('objectParser'));
154154
} else if (t.isBooleanTypeAnnotation(elt)) {
155155
return wrap(t.identifier('booleanParser'));
156+
} else if (t.isObjectTypeAnnotation(elt)) {
157+
return wrap(t.identifier('objectParser'));
156158
} else if (t.isGenericTypeAnnotation(elt)) {
157159
const type = elt.typeAnnotation.id.name;
158160
if (type == 'Adapter') {

src/Options/Definitions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ module.exports.ParseServerOptions = {
111111
env: 'PARSE_SERVER_AUTH_PROVIDERS',
112112
help:
113113
'Configuration for your authentication providers, as stringified JSON. See http://docs.parseplatform.org/parse-server/guide/#oauth-and-3rd-party-authentication',
114+
action: parsers.objectParser,
114115
},
115116
cacheAdapter: {
116117
env: 'PARSE_SERVER_CACHE_ADAPTER',

0 commit comments

Comments
 (0)