singer_sdk.typing.StringType#

class singer_sdk.typing.StringType#

String type.

Examples

>>> StringType.type_dict
{'type': ['string']}
>>> StringType().type_dict
{'type': ['string']}
>>> StringType(allowed_values=["a", "b"]).type_dict
{'type': ['string'], 'enum': ['a', 'b']}
string_format: str | None = None#

String format.

See the formats built into the JSON Schema specification.

Returns:

A string describing the format.