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
contains logic that should be moved out of it - the function should only encode characters.
We can move the logic for converting numbers to strings and returning empty strings or non-string type values to the valueEncoder function. It should take care of converting all values to strings as it does now for objects and arrays.
We can also remove the parse parameter as it is not used anywhere.
The signature of the function should be encodeCharacters(str, { characterSet = 'reserved' } = {} and the logic for returning non-encoded strings for when the escape value is set to false should also be moved to valueEncoder.
The text was updated successfully, but these errors were encountered:
encodeDisallowedCharacters
functionswagger-js/src/execute/oas3/style-serializer.js
Line 5 in f327d4b
contains logic that should be moved out of it - the function should only encode characters.
We can move the logic for converting numbers to strings and returning empty strings or non-string type values to the
valueEncoder
function. It should take care of converting all values to strings as it does now for objects and arrays.swagger-js/src/execute/oas3/style-serializer.js
Line 59 in f327d4b
We can also remove the
parse
parameter as it is not used anywhere.The signature of the function should be
encodeCharacters(str, { characterSet = 'reserved' } = {}
and the logic for returning non-encoded strings for when theescape
value is set tofalse
should also be moved tovalueEncoder
.The text was updated successfully, but these errors were encountered: