Create Document Type and Generate JSON Schema
A 3-step recipe with Affinda. We can help you get access.
Recipe · 3 steps
Create Document Type and Generate JSON Schema
with Affinda
Create a document type and generate a JSON schema and Pydantic models from it.
- Create a new document type within the organization.
- Generate a JSON schema representation of the new document type.
- Generate Pydantic model code from the new document type.
What you'll need to have ready
- organization: The organization identifier that will own the document type.
- name: The name of the new document type.
- description: Optional description of the document type.
- schemaTitle: Optional title to use for the generated JSON schema.
- modelName: Optional name for the generated Pydantic model.
For your developer
Arazzo workflow affinda:document-type-to-json-schema, 3 operations: createDocumentType → jsonSchemaFromDocumentType → pydanticModelsFromDocumentType. Specs on APIs.io.