def METHOD_NAME(no_warnings):
    # this is a bad example as it is already part of 3.0.3, but others would work accordingly
    # https://github.com/Redocly/redoc/blob/master/docs/redoc-vendor-extensions.md#parameter-object
    @extend_schema(
        responses=None,
        parameters=[
            OpenApiParameter(
                name='q',
                type=str,
                location=OpenApiParameter.QUERY,
                extensions={'x-examples': ['foo', 'bar']}  # don't use this for examples!
            )
        ]
    )
    @api_view(['GET'])
    def view_func(request, format=None):
        pass  # pragma: no cover
    schema = generate_schema('x', view_function=view_func)
    assert schema['paths']['/x']['get']['parameters'][0] == {
        'in': 'query',
        'name': 'q',
        'schema': {'type': 'string'},
        'x-examples': ['foo', 'bar']
    }