Skip to content
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

Rename default renderer to cornicejson #543

Merged
merged 1 commit into from
Aug 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cornice/__init__.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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