From 233ccc69eff88b55139884674cd4e2ff79b96e2c Mon Sep 17 00:00:00 2001 From: BuzzCutNorman Date: Mon, 3 Apr 2023 15:28:26 -0700 Subject: [PATCH] add pattern, contentMediaType, contentEncoding to Schema data class --- singer_sdk/_singerlib/schema.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/singer_sdk/_singerlib/schema.py b/singer_sdk/_singerlib/schema.py index 3b396f971..9ef615e0d 100644 --- a/singer_sdk/_singerlib/schema.py +++ b/singer_sdk/_singerlib/schema.py @@ -23,6 +23,9 @@ "type", "required", "enum", + "pattern", + "contentMediaType", + "contentEncoding", # These are NOT simple keys (they can contain schemas themselves). We could # consider adding extra handling to them. "additionalProperties", @@ -61,6 +64,9 @@ class Schema: required: list[str] | None = None enum: list[t.Any] | None = None title: str | None = None + pattern: str | None = None + contentMediaType: str | None = None # noqa: N815 + contentEncoding: str | None = None # noqa: N815 def to_dict(self) -> dict[str, t.Any]: """Return the raw JSON Schema as a (possibly nested) dict.