OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
[ ] [Optional] Sponsorship to speed up the bug fix or feature request (example)
It contains syntax that cannot be expressed in Swift.
public struct A: Codable {
public var a: A // Value type 'A' cannot have a stored property that recursively contains it
public init(a: A) {
self.a = a
}
}
Bug Report Checklist
It contains syntax that cannot be expressed in Swift.
Description
When generating Swift5 code using the openapi-generator-cli-6.5.0.jar with the OpenAPI spec from this URL https://raw.githubusercontent.com/Bokun/api-docs/gh-pages/bokun.yaml, the following error occurred:
Value type 'RouteBookingDto' cannot have a stored property that recursively contains it.
openapi-generator version
openapi-generator-cli-6.5.0
OpenAPI declaration file content or url
https://raw.githubusercontent.com/Bokun/api-docs/gh-pages/bokun.yaml
Generation Details
Steps to reproduce
Related issues/PRs
-
Suggest a fix
-