Honza Dvorsky
Honza Dvorsky
That's a great idea. The CLI, which is used by the plugin, already emits warning and error diagnostics in a format that gets picked up by Xcode's Issue Navigator, but...
@macblazer Great, thanks for considering to take it on! The printing of diagnostics happens in https://github.com/apple/swift-openapi-generator/blob/f530c906215528a7450fc7602b9f93d9236eb4c0/Sources/_OpenAPIGeneratorCore/Diagnostics.swift#L249 when the plugin invokes the CLI. The text formatting of diagnostics happens in https://github.com/apple/swift-openapi-generator/blob/f530c906215528a7450fc7602b9f93d9236eb4c0/Sources/_OpenAPIGeneratorCore/Diagnostics.swift#L105....
Thanks for filing it – you're right, default values are not generated at the moment, but it's a feature we'd like to do, and would gladly accept a pull request...
Hmm, is there a middleware which sees the response but can't see the content type yet? I thought the routes always return a fully defined response. But yeah, we can...
Yeah, makes sense. I guess we'd just need to document how to add that middleware. Works for me great, I'd like to see more people gzipping soon. On Mon, Aug...
Indeed. Unit tests are a must-have nowadays.
JSONs also frequently hold times/dates in the form of a Unix timestamp. Would be nice to detect which one it is & validate it.
Hmm there seems to be something wrong with `make test`. Building works fine, but building the test target fails: https://travis-ci.org/kylef/Requests/builds/109741698
Thanks for filing the issue, we'd certainly accept a contribution of support of recursive types. Could you please add a snippet of OpenAPI that uses it in YAML, and how...
Seems that indirect can only be used on enums, not structs. Before we consider the explicit Box approach, I'd like to see if there's another recommended way in Swift to...