Returning string values on /options per OpenAPI spec definition which doesn't allow mixed types

pull/1/head
Piero Toffanin 2016-09-21 17:29:08 -04:00
rodzic 4f8faab628
commit 955fc04eca
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -85,6 +85,10 @@ module.exports = {
help = help.replace(/\%\(default\)s/g, value);
// In the end, all values must be converted back
// to strings (per OpenAPI spec which doesn't allow mixed types)
value = String(value);
odmOptions.push({
name, type, value, domain, help
});