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

Can package name be removed from schema definitions? #205

Closed
abdulito opened this issue Sep 11, 2018 · 2 comments
Closed

Can package name be removed from schema definitions? #205

abdulito opened this issue Sep 11, 2018 · 2 comments

Comments

@abdulito
Copy link
Contributor

Is there a way to remove package names from generated schema definitions?

For example:

 "definitions": {
        "web.APIError": {
            "type": "object",
            "properties": {
                "createdAt": {
                    "type": "string"
                },
                "errorCode": {
                    "type": "integer"
                },
                "errorMessage": {
                    "type": "string"
                }
            }
        },
        "web.Pet": {
            "type": "object",
            "properties": {
                "category": {
                    "type": "object",
                    "properties": {
                        "id": {
                            "type": "integer"
                        },
                        "name": {
                            "type": "string"
                        }
                    }
                },
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
......

Is there a way to make it be just APIError and Pet instead?

Thanks!

-abdul

@pei0804
Copy link
Member

pei0804 commented Sep 12, 2018

swag can't this behavior.

@easonlin404
Copy link
Member

#205 (comment)

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

3 participants