Create a canonical Pydantic model from field definitions
Create a canonical Pydantic model.
Accepts an explicit list of field definitions and returns:
- The resolved field list
- A JSON Schema representation
- A Pydantic v2 Python class source string
Authentication
AuthorizationBearer
Static shared-secret token for internal service-to-service calls.
Request
This endpoint expects an object.
name
Name of the canonical model (PascalCase)
fields
List of field definitions
description
Model description
Response
Successful Response
name
description
fields
json_schema
Generated JSON Schema for the model
python_class
Generated Python Pydantic v2 class source code
Errors
422
Unprocessable Entity Error