New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'File' type migration #2
Comments
Uhm, IIRC, |
It's not a version migration, it's a general malformation. I want to be On Mon, Apr 28, 2014 at 4:18 PM, Francis Galiegue
|
Uhm, OK, does that make the |
Depends on how you look at it. If the type is On Mon, Apr 28, 2014 at 4:27 PM, Francis Galiegue
|
OK, so, if in a 1.1 declaration I see: {
"dataType": "File",
"paramType": "whatever"
} then I have to migrate it to: {
"type": "File",
"paramType": "form",
"consumes": "multipart/form-data"
} Is that correct? |
Yes. On Mon, Apr 28, 2014 at 4:40 PM, Francis Galiegue
|
Modify two things: * when dataType is File, move it to type; * add a supplementary migration step to modify the contents if type is set to * File; run this step even if the input JSON didn't have a dataType field to start with.
OK, I have a (tested) fix. Waiting to confirm whether that is fixed for you as well. |
Still waiting for sample JSON for continuing work on the problem ;) |
Yup, will get around to it tomorrow.
|
@webron can i close this? |
Sure. |
Test all branches
Following #1 - we should write a migrator that does two things if the type is 'File':
consumes
field of this operation to "multipart/form-data".paramType
of the parameter to "form".The text was updated successfully, but these errors were encountered: