Guilhem Niot

Results 139 comments of Guilhem Niot

The issue is that property_exists returns false for private parent properties (in https://github.com/nelmio/NelmioApiDocBundle/blob/master/ModelDescriber/ObjectModelDescriber.php#L61), I'm not sure how to fix that properly... Meanwhile, you can use @SWG\Definition and define your type...

I'm not sure that's really safe, `@Type` can contain a lot of different values (see https://symfony.com/doc/current/reference/constraints/Type.html) and few are compatible with open api. What about having an allow list to...

I mean the value wrapped by `@Assert\Type` is not necessarily a valid value for OpenApi so we must be cautious. For instance, `["float", "string"]` is an accepted value for `@Assert\Type`...

This is actually quite odd and should not be happening. But it may just be that you're using an outdated version of NelmioApiDocBundle, could you try upgrading to the latest...

I think `@Nelmio\ApiDocBundle\Annotation\Operation::$produces` is what you're looking for (see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#operation-object).

It's not for now but it shouldn't be too hard to implement. Feel free to submit a PR :)

> Is the right way to modify the \Nelmio\ApiDocBundle\RouteDescriber\FosRestDescriber and using \FOS\RestBundle\Negotiation\FormatNegotiator to get the available formats for the route? I think we should extract fosrest rules from the config...

Hello, Are you using the latest versions of both zircote/swagger-php and NelmioApiDocBundle?

Hi! I'm not the one who wrote the JMSDescriber (it's @goetas), but this describer removes the `Default` group whenever possible to make it implicit (no groups defined in `@Model` is...

This is most likely related to https://github.com/nelmio/NelmioApiDocBundle/blob/master/ModelDescriber/JMSModelDescriber.php#L195-L197, but I believe it is really there on purpose to consider as similar `['Default']` and `null` groups, that's bothering if that's not working...