Closed hisunnymay closed 1 year ago
@HuiCheng 这是之前相关的 issue:[Bug]: Inappropriate return type generated in the postgrest function#1287
之前这个 issue 和现在的 issue 的区别是:
UserInfo
是 concrete frame 并且 storage enabled (即该 type 在 PostgreSQL db 中有对应的 table)me.test.foodOrdering.IDish
是 interface frame 但没有开启 storageThe data structure has been changed, there is no need to fix this issue for now.
Is there an existing issue for this?
Make sure you are using OpenCUI on Google Chrome!
Current Behavior
在 foodOrderingProvider 中,Postgrest function
_getDishes
的 return type 中第五个 column options 的类型是 textExpected Behavior
由于该 return type 对应的 composite type 是
me.test.foodOrdering.IDish
,这个 type 的 options 的类型是 text[]所以 function
_getDishes
的 return type 中第五个 column options 的类型应该是 text[]Use Case
目前由于类型不匹配,使用 function testing 会有报错: Returned type text[] does not match expected type text in column 5.
Steps To Reproduce
getDishes
,传入参数Pizza
Label of org.project
me.test
OpenCUI Link
https://build.opencui.io/org/me.test/agent/foodOrderingProvider/struct/service_schema
Test Case
No response
Additional information
No response