Wso2 打开api以自动生成ballerina源代码时出错
我从OpenAPI3自动生成ballerina源代码时出错。 yaml文件包括Wso2 打开api以自动生成ballerina源代码时出错,wso2,openapi,ballerina,Wso2,Openapi,Ballerina,我从OpenAPI3自动生成ballerina源代码时出错。 yaml文件包括 content: application/json: schema: oneOf: - $ref: "#/components/schemas/incidentResolved" - $ref: "#/components/schemas/incidentUpdate"
content:
application/json:
schema:
oneOf:
- $ref: "#/components/schemas/incidentResolved"
- $ref: "#/components/schemas/incidentUpdate"
- $ref: "#/components/schemas/postmortem"
使用中的一个是错误的原因
error: Error occurred when generating GEN_SERVICE for openapi file at incidentReporting.yaml. null
如何解决这个问题?Ballerina OpenAPI工具不支持“oneOf”。。。对于每个操作的一种内容类型,它只能与“allOf”一起使用。目前,Ballerina工具团队正在努力添加对大多数OpenAPI规范和JSON模式规范的支持 关于这一问题的报道:
我想它目前只支持allOf。