From e640769f064bbc08231aaeb416a42d2d6164930e Mon Sep 17 00:00:00 2001 From: "Aaron (\"AJ\") Steers" Date: Fri, 21 Oct 2022 16:31:01 -0700 Subject: [PATCH] docs: updated usage examples in typing module ref --- singer_sdk/typing.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/singer_sdk/typing.py b/singer_sdk/typing.py index b642ced61..ba523a2d1 100644 --- a/singer_sdk/typing.py +++ b/singer_sdk/typing.py @@ -5,13 +5,16 @@ .. code-block:: python jsonschema = PropertiesList( + Property("username", StringType, required=True), + Property("password", StringType, required=True, secret=True), + Property("id", IntegerType, required=True), - Property("name", StringType), - Property("tags", ArrayType(StringType)), - Property("ratio", NumberType), + Property("foo_or_bar", StringType, allowed_values=["foo", "bar"]), + Property("ratio", NumberType, examples=[0.25, 0.75, 1.0]), Property("days_active", IntegerType), Property("updated_on", DateTimeType), Property("is_deleted", BooleanType), + Property( "author", ObjectType( @@ -19,6 +22,7 @@ Property("name", StringType), ) ), + Property("tags", ArrayType(StringType)), Property( "groups", ArrayType(