nelmio/NelmioApiDocBundle — pull request #61 by evillemez (2012-08-08 02:03:51+00:00)
Title: Implemented JmsMetadataParser

`JmsMetadataParser` registers if the JMS serializer is present, and will parse provided `input` metadata from `ApiDoc` if the given `input` class has JMS metadata.

Tests (such as they are) are passing (for me locally at least, getting the FOSRest annotation errors from travis), but there's still work to do here.

Right now I'm not getting `description` or `required` for any property. As @stof pointed out to me, the `ApiDocExtractor` has logic for retrieving text in the docblock for controller methods. I could reuse this logic in the parsers to get `description` from comments in the docblocks of class properties. As for `required`... well, JMS doesn't seem to have an equivalent, so I'm sort of stuck and open to suggestions.

This closes [#22](https://github.com/nelmio/NelmioApiDocBundle/issues/12).

I would like to support nesting, but in order to do it in a way that the formatters can handle, it may require refactoring elsewhere, see [#56](https://github.com/nelmio/NelmioApiDocBundle/pull/56#issuecomment-7562849)

Let me know what I should change.