dify
dify copied to clipboard
OpenApi 3.1.0 ArrayType is recognized as StringType unexpectly
Self Checks
- [X] This is only for bug report, if you would like to ask a question, please head to Discussions.
- [X] I have searched for existing issues search for existing issues, including closed ones.
- [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [X] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
- [X] Please do not modify this template :) and fill in all the required fields.
Dify version
0.6.11
Cloud or Self Hosted
Cloud
Steps to reproduce
Import this openapi schema as custom tool, add it into a workflow later, the "article_ids" parameter of ApiInsertArticleInsert is recognized as StringType instead of ArrayType[StringType ] (which Coze workflow can recognize correctly, though it only support 3.0.0 openApi schema, u can convert it ):
the openapi 3.1.0 schema generated by LiteStar
✔️ Expected Behavior
type of paramerter article_ids should be list[str]
❌ Actual Behavior
type of paramerter article_ids is str