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.
namestringRequired

Name of the canonical model (PascalCase)

fieldslist of objectsRequired
List of field definitions
descriptionstring or nullOptional
Model description

Response

Successful Response
namestring
descriptionstring or null
fieldslist of objects
json_schemamap from strings to any
Generated JSON Schema for the model
python_classstring
Generated Python Pydantic v2 class source code

Errors

422
Unprocessable Entity Error