nlpstack.common.jsonschema module#

class nlpstack.common.jsonschema.UnionType[source]#

Bases: object

nlpstack.common.jsonschema.generate_json_schema(cls, root=True, definitions=None)[source]#
Return type:

Dict[str, Any]

Parameters:
  • cls (Type[Any]) –

  • root (bool) –

  • definitions (Dict[str, Any] | None) –

nlpstack.common.jsonschema.is_namedtuple(python_type)[source]#
Return type:

bool

Parameters:

python_type (Type) –

nlpstack.common.jsonschema.is_optional(python_type)[source]#
Return type:

bool

Parameters:

python_type (Type) –