Honza Dvorsky

Results 526 comments of Honza Dvorsky

Yeah, that sounds about right. Ideally, we could constrain this as much as possible, to: - direct nesting - the property must be optional And we could use a property...

Hi @scsinke, sure! TypeUsage is defined here: https://github.com/apple/swift-openapi-generator/blob/6b11135cccfb0846809f434cf2ad95134b65e945/Sources/_OpenAPIGeneratorCore/Translator/TypeAssignment/TypeUsage.swift#L43 The need for boxing could be represented as another case in the type usage internal enum. The need for it would be...

Another way to implement this would be: - The type that needs to be "boxed" (aka is part of a cycle) would have a slightly different implementation under the hood:...

This also blocks generating the App Store Connect OpenAPI document: https://developer.apple.com/sample-code/app-store-connect/app-store-connect-openapi-specification.zip The schema `DiagnosticLogCallStackNode` is recursive there.

Thanks @herrernst for letting us know. Without going into any confidential specifics, what's your use case of recursive schemas? We've seen a representation of a file system hierarchy, which is...

Thanks for the info, everyone, helps as I'm working on the design for this.

Landed in main, will get released in 0.3.1.

Shipped in https://github.com/apple/swift-openapi-generator/releases/tag/0.3.1.

Glad to hear that. Just FYI for anyone else following up, I did find a scenario under which the cycle detector doesn't work correctly in a complex graph and am...

Here's the fix: https://github.com/apple/swift-openapi-generator/pull/335