diff --git a/src/Types/StringSchema.php b/src/Types/StringSchema.php index b37e146..1954b1f 100644 --- a/src/Types/StringSchema.php +++ b/src/Types/StringSchema.php @@ -79,6 +79,7 @@ public function pattern(string $pattern): static */ public function contentEncoding(string $contentEncoding): static { + $this->validateFeatureSupport(SchemaFeature::ContentEncoding); $this->contentEncoding = $contentEncoding; return $this; @@ -89,6 +90,7 @@ public function contentEncoding(string $contentEncoding): static */ public function contentMediaType(string $contentMediaType): static { + $this->validateFeatureSupport(SchemaFeature::ContentMediaType); $this->contentMediaType = $contentMediaType; return $this;