View Source Instructor.JSONSchema (Instructor v0.0.5)

Summary

Functions

Generates a JSON Schema from an Ecto schema.

Functions

Link to this function

from_ecto_schema(ecto_schema)

View Source

Generates a JSON Schema from an Ecto schema.

Note: This will output a correct JSON Schema for the given Ecto schema, but it will not necessarily be optimal, nor support all Ecto types.