kopia lustrzana https://github.com/OpenDroneMap/NodeODM
Returning string values on /options per OpenAPI spec definition which doesn't allow mixed types
rodzic
4f8faab628
commit
955fc04eca
|
@ -85,6 +85,10 @@ module.exports = {
|
||||||
|
|
||||||
help = help.replace(/\%\(default\)s/g, value);
|
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({
|
odmOptions.push({
|
||||||
name, type, value, domain, help
|
name, type, value, domain, help
|
||||||
});
|
});
|
||||||
|
|
Ładowanie…
Reference in New Issue