Comments (3)
Bump?
from nelmioapidocbundle.
This is a kinda hard problem because it depends how you bind your form. I find that for APIs it usually makes more sense to bind like: $form->bind($request->request->all())
. That way you circumvent the default form behavior that is to look in user[]
. It's more convenient for users of the API, and it makes the docs work.
The only way we can fix it otherwise is to read the form's name and add that to the docs, but then it'd need to be made optional too.
from nelmioapidocbundle.
Ok, that makes sense. I didn't know that you could use $request->request->all()
- That definitely is a better approach than forcing formname[parameter]
.
from nelmioapidocbundle.
Related Issues (20)
- More cases with false positive required properties HOT 3
- NullablePropertyProcessor fails with OA\Generator::UNDEFINED HOT 1
- [v4.18.0] Doc with attribute MapQueryParameter does not work with arrays HOT 1
- Orphaned MapQueryString schema since v4.18.0 HOT 2
- User Warning: Ignoring unexpected property "$ref" for @OA\Parameter() HOT 1
- I've update the bundle and I am getting the error below(Argument #2 ($area) must be of type string)
- Document multiple MapQueryString
- Missing array of array descriptor information HOT 1
- Bug Report - Incorrect Swagger Generation for Array Query Parameters HOT 1
- Describe dictionary
- [BUG] 🐛 `Multiple @OA\MediaType() with the same mediaType="application/json"` after `composer update -W` HOT 10
- [Symfony 7.1] support for Serialize attribute
- [Feature] Example property value HOT 1
- [Symfony 7.1] support for TypeInfo component
- NelmioApiDocBundle v5 overview HOT 1
- Duplicate schemas when referencing with `Attributes\Model` HOT 7
- Description from OpenApi\Attributes\QueryParameter is not processing HOT 2
- Properties with default values still get marked as required
- Converting tool is not available anymore HOT 1
- OpenAPI Specification Extensions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nelmioapidocbundle.