You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught (in promise) TypeError: o.allowedValues.split is not a function
at de.inputParametersTemplate (api-request.js:520:1)
at api-request.js:217:1
at xR.render (callback-template.js:74:1)
at xR.update (callback-template.js:74:1)
at xR._$AS (common-utils.js:13:1)
at re (rapidoc-min.js:2:9848)
at ne._$AI (rapidoc-min.js:2:10938)
at se.p (rapidoc-min.js:2:10532)
at ne.$ (rapidoc-min.js:2:11583)
at ne._$AI (rapidoc-min.js:2:11079)
Since const can accept any data type, it is necessary to handle non-string types appropriately.
Specifically, when assigning schema.const to allowedValues, it should be processed in advance using getPrintableVal():
Uh oh!
There was an error while loading. Please reload this page.
An error occurs when a parameter schema contains a
const
value that is not a string, as shown below:The following error occurs:
Since
const
can accept any data type, it is necessary to handle non-string types appropriately.Specifically, when assigning
schema.const
toallowedValues
, it should be processed in advance usinggetPrintableVal()
:RapiDoc/src/utils/schema-utils.js
Lines 79 to 84 in 7f53d25
RapiDoc/src/utils/schema-utils.js
Lines 92 to 95 in 7f53d25
The text was updated successfully, but these errors were encountered: