Skip to content

Commit

Permalink
Merge 0ea2c50 into 34a1868
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Aug 12, 2020
2 parents 34a1868 + 0ea2c50 commit 9341fec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cornice/__init__.py
Expand Up @@ -84,7 +84,7 @@ def includeme(config):
config.add_directive('add_cornice_service', register_service_views)
config.add_directive('add_cornice_resource', register_resource_views)
config.add_subscriber(wrap_request, NewRequest)
config.add_renderer('cornice', CorniceRenderer())
config.add_renderer('cornicejson', CorniceRenderer())
config.add_view_predicate('content_type', ContentTypePredicate)
config.add_request_method(current_service, reify=True)

Expand Down
4 changes: 2 additions & 2 deletions cornice/service.py
Expand Up @@ -53,7 +53,7 @@ class Service(object):
:param renderer:
The renderer that should be used by this service. Default value is
'cornice'.
'cornicejson'.
:param description:
The description of what the webservice does. This is primarily intended
Expand Down Expand Up @@ -149,7 +149,7 @@ class Service(object):
:meth:`~put`, :meth:`~options` and :meth:`~delete` are decorators that can
be used to decorate views.
"""
renderer = 'cornice'
renderer = 'cornicejson'
default_validators = DEFAULT_VALIDATORS
default_filters = DEFAULT_FILTERS

Expand Down

0 comments on commit 9341fec

Please sign in to comment.