I use input
property of @ApiDoc
annotation for specifieng of parameters of my api that are form's fields.
* @ApiDoc(
* section="User",
* resource=true,
* input={
* "class"="Nik\UserBundle\Form\UserType",
* },
* ....
data_class
of form is a entity that have constraint validation for properties.
I expect that nelmio api doc specify parameter format as validation constraints of entity, but format are empty.
How can i specify parameter formats in nelmio ApiDocBundle?
EDIT: maybe i write a bad question.
we can specify parsers for input
& output
, if we no specify parser for these, it call all parser for input
& output
, then all parser are called for UserType
.
nelmio
have a parser named ValidationParser that have a method named parseConstraint that set format
for input & output, but this method is not called for my document, why?
i submit a pull request that use validation metadata for format
property.
you can see this PR
here