Skip to content

Commit

Permalink
docs: updated usage examples in typing module ref
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsteers committed Oct 21, 2022
1 parent 28dd4c3 commit e640769
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions singer_sdk/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,24 @@
.. 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(
Property("id", StringType),
Property("name", StringType),
)
),
Property("tags", ArrayType(StringType)),
Property(
"groups",
ArrayType(
Expand Down

0 comments on commit e640769

Please sign in to comment.