def spec_with_external_docs() -> str:
    """Helper for creating a specification object with externalDocs."""
    _spec = """
            openapi: 3.0.3
            info:
              title: Swagger Petstore
              version: 1.0.0
            paths: {}
            externalDocs:
              description: Find more info here
              url: https://example.com
            """
    return _spec