Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

preliminary drf3 support #161

Merged
merged 2 commits into from
Dec 6, 2014
Merged

preliminary drf3 support #161

merged 2 commits into from
Dec 6, 2014

Conversation

ariovistus
Copy link
Contributor

No description provided.

ariovistus pushed a commit that referenced this pull request Dec 6, 2014
preliminary drf3 support
@ariovistus ariovistus merged commit 81019da into marcgibbons:master Dec 6, 2014
@ariovistus ariovistus mentioned this pull request Dec 6, 2014
@j0hnsmith
Copy link

I get

rest_framework.fields.empty instance at is not JSON serializable

I can't seen any swagger refs in the stack trace. I'll investigate further.

@j0hnsmith
Copy link

Here's a little more.

renderer_context    
{u'args': (),
 u'kwargs': {'path': u'api/v1'},
 u'request': <rest_framework.request.Request object at 0x7f6876daebd0>,
 u'response': <rest_framework.response.Response object at 0x7f687c0d1b10>,
 u'view': <rest_framework_swagger.views.SwaggerApiView object at 0x7f687c07c190>}
self    
<rest_framework.renderers.JSONRenderer object at 0x7f6876daed90>
separators  
(',', ':')
data    
{'apiVersion': '',
 'apis': [{'description': u'',
           'operations': [{'method': u'GET',
                           'nickname': u'Api_Root',
                           'notes': '  \n',
                           'summary': '',
                           'type': None}],
           'path': u'/api/v1/'},
          {'description': u'',
           'operations': [{'method': u'POST',
                           'nickname': u'Share',
                           'notes': '  \n',
                           'parameters': [{'defaultValue': <rest_framework.fields.empty instance at 0x7f6876fcfb00>,
                                           'description': None,
                                           'format': 'string',
                                           'name': 'server',
                                           'paramType': 'form',
                                           'required': True,
                                           'type': 'string'},
                                          {'defaultValue': <rest_framework.fields.empty instance at 0x7f6876fcf2d8>,
                                           'description': None,
                                           'format': 'string',
                                           'name': 'share',
                                           'paramType': 'form',
                                           'required': True,
                                           'type': 'string'},

@ch4rlyp
Copy link

ch4rlyp commented Dec 8, 2014

I've probably the same issue: #163

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants