const service = await parse(v4metadata) // containing a v4 function
// service.functions[x].isBound is of type String, "true"/"false"
// so above linked code in convert() fails in `bindingParameterFromParameters`
// and no functions are included in the swagger spec
const swagger = await convert(
service.entitySets,
{
functions: service.functions
},
service.version
)
if manually converted to the proper Boolean, convert(...) runs w/o an issue:
debug run showed the code from https://github.com/elasticio/odata2openapi/blob/bab243822101409304cc0cbd4af8baa7a0629519/src/convert.ts#L404 to be the culprit:
if manually converted to the proper
Boolean
,convert(...)
runs w/o an issue:env: