Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch statement must have at least... #37

Closed
nitrag opened this issue Jul 29, 2017 · 3 comments
Closed

Switch statement must have at least... #37

nitrag opened this issue Jul 29, 2017 · 3 comments

Comments

@nitrag
Copy link

nitrag commented Jul 29, 2017

'switch' statement body must have at least one 'case' or 'default' block

ActivateCreate.swift

extension API.Auth { 
....
public enum Response: APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible {
            public typealias SuccessType = Void

            public var success: Void? {
                switch self {
                }
            }
@yonaskolb
Copy link
Owner

Hi Nitrag
What does your operation spec look like. It might be that your operation spec is missing a responses field?
From the Swagger spec, each operation requires at least one defined response https://swagger.io/specification/#responses-object-54
Does that answer your issue?

Reminds me that I should add a step before generating that lints the spec.

@nitrag
Copy link
Author

nitrag commented Jul 30, 2017 via email

@yonaskolb
Copy link
Owner

Ok, then closing this now. Let me know if you have any other issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants