# flask 3.1.3 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input
Register a new tag with this serializer.

        :param tag_class: tag class to register. Will be instantiated with this
            serializer instance.
        :param force: overwrite an existing tag. If false (default), a
            :exc:`KeyError` is raised.
        :param index: index to insert the new tag in the tag order. Useful when
            the new tag is a special case of an existing tag. If ``None``
            (default), the tag is appended to the end of the order.

        :raise KeyError: if the tag key is already registered and ``force`` is
            not true.
        
=== parse rest
short_description: 'Register a new tag with this serializer.'
blank_after_short_description: True
blank_after_long_description: False
style: rest
- DocstringParam
  description: |
    tag class to register. Will be instantiated with this
    serializer instance.
  kind: param
  key: 'param'
  arg_name: 'tag_class'
  is_optional: False
- DocstringParam
  description: |
    overwrite an existing tag. If false (default), a
    :exc:`KeyError` is raised.
  kind: param
  key: 'param'
  arg_name: 'force'
  is_optional: False
- DocstringParam
  description: |
    index to insert the new tag in the tag order. Useful when
    the new tag is a special case of an existing tag. If ``None``
    (default), the tag is appended to the end of the order.
  kind: param
  key: 'param'
  arg_name: 'index'
  is_optional: False
- DocstringRaises
  description: |
    if the tag key is already registered and ``force`` is
    not true.
  kind: raises
  key: 'raise'
  type_name: 'KeyError'
=== detect
rest
=== compose rest
Register a new tag with this serializer.

:param tag_class: tag class to register. Will be instantiated with this
    serializer instance.
:param force: overwrite an existing tag. If false (default), a
    :exc:`KeyError` is raised.
:param index: index to insert the new tag in the tag order. Useful when
    the new tag is a special case of an existing tag. If ``None``
    (default), the tag is appended to the end of the order.
:raise KeyError: if the tag key is already registered and ``force`` is
    not true.
