Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Updating Resource Definitions After Scaffolding #3

Closed
kleijnweb opened this issue Sep 6, 2015 · 1 comment
Closed

Updating Resource Definitions After Scaffolding #3

kleijnweb opened this issue Sep 6, 2015 · 1 comment

Comments

@kleijnweb
Copy link
Owner

Approximate README addition when finished:

This command can also amend your document to reflect changes in your resource classes. This requires a little configuration:

swagger.dev.fixer.swagger_bundle_response:
    class: KleijnWeb\SwaggerBundle\Dev\DocumentFixer\Fixers\SwaggerBundleResponseFixer
    calls: [chain, [@swagger.dev.fixer.resource_definitions]]

The ResourceDefinitionFixer depends on valid @return PHPDoc tags (it'll handle arrays of objects, eg Pet[]).

@kleijnweb
Copy link
Owner Author

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

No branches or pull requests

1 participant