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

Implement "swagger:generate" metadata #863

Merged
merged 1 commit into from Nov 12, 2016

Conversation

Projects
None yet
1 participant
@raphael
Copy link
Member

raphael commented Nov 12, 2016

Can be applied to resources, actions and file servers.
Set the value to "false" to prevent Swagger specification from being generated. Example:

Resource("invisible", func() {
    Metadata("swagger:generate", "false")
    Action("visible", func() {
        Metadata("swagger:generate", "true") // Override resource swagger:generate metadata
   })
})

Fix #628

@raphael raphael force-pushed the add_swagger_generate_metadata branch from 40b63cc to 089d332 Nov 12, 2016

Implement "swagger:generate" metadata
Can be applied to resources, actions and file servers.
Set the value to "false" to prevent Swagger specification from being generated. Examples:

    Resource("invisible", func() {
        Metadata("swagger:generate", "false")
        Action("visible", func() {
            Metadata("swagger:generate", "true") // Override resource swagger:generate metadata
       })
    })

@raphael raphael force-pushed the add_swagger_generate_metadata branch from 089d332 to 36ffcac Nov 12, 2016

@raphael raphael merged commit 40c363a into master Nov 12, 2016

3 checks passed

continuous-integration/appveyor/branch AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@raphael raphael deleted the add_swagger_generate_metadata branch Nov 12, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment