Skip to content

Commit

Permalink
Added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Prakhar Srivastava authored and Prakhar Srivastava committed Oct 11, 2023
1 parent 7ec3d6d commit b04abcc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions singer_sdk/_singerlib/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class Schema:
"""

type: str | list[str] | None = None # noqa: A003
default: t.Any | None = None
properties: dict | None = None
items: t.Any | None = None
description: str | None = None
Expand Down
8 changes: 4 additions & 4 deletions tests/_singerlib/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

from singer_sdk._singerlib import Schema, resolve_schema_references

STRING_SCHEMA = Schema(type="string", maxLength=32)
STRING_DICT = {"type": "string", "maxLength": 32}
INTEGER_SCHEMA = Schema(type="integer", maximum=1000000)
INTEGER_DICT = {"type": "integer", "maximum": 1000000}
STRING_SCHEMA = Schema(type="string", maxLength=32, default="")
STRING_DICT = {"type": "string", "maxLength": 32 , "default":""}
INTEGER_SCHEMA = Schema(type="integer", maximum=1000000, default=0)
INTEGER_DICT = {"type": "integer", "maximum": 1000000, "default":0}
ARRAY_SCHEMA = Schema(type="array", items=INTEGER_SCHEMA)
ARRAY_DICT = {"type": "array", "items": INTEGER_DICT}
OBJECT_SCHEMA = Schema(
Expand Down

0 comments on commit b04abcc

Please sign in to comment.