Skip to content

Commit 0bcd69c

Browse files
authored
Remove overly restrictive MIME type validation from Resource (#2585)
1 parent 9b41d16 commit 0bcd69c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/fastmcp/resources/resource.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ class Resource(FastMCPComponent):
4242
mime_type: str = Field(
4343
default="text/plain",
4444
description="MIME type of the resource content",
45-
pattern=r"^[a-zA-Z0-9]+/[a-zA-Z0-9\-+.]+$",
4645
)
4746
annotations: Annotated[
4847
Annotations | None,

0 commit comments

Comments
 (0)