jschon.output
- jschon.output.create_output(result, format, **kwargs)
- Parameters:
result (Result) –
format (str) –
kwargs (Any) –
- Return type:
None | bool | int | float | str | Sequence[Any] | Mapping[str, Any]
- jschon.output.output_formatter(format)
A decorator for a JSON Schema output formatting function.
- Parameters:
format (str) – A string identifying the output format.
- jschon.output.OutputFormatter
Call signature for a function decorated with
output_formatter()
.The function must take a
Result
object as its first argument.alias of
Callable
[[…],Union
[None
,bool
,int
,float
,str
,Sequence
[Any
],Mapping
[str
,Any
]]]