Model Adapter¶ class spectree.model_adapter.ModelAdapter[source]¶ The protocol of model adapter. check the model type validate the model dump model instance to a JSON generate the JSON schema check the validation errors __init__(*args, **kwargs)¶ class spectree.model_adapter.pydantic_adapter.PydanticModelAdapter[source]¶ pydantic model adapter. __init__() → None[source]¶