instructor_ex
instructor_ex copied to clipboard
Missing schema descriptions in prod
When running in prod
, I'm getting different results than when running in dev
. After digging, it seems that the @doc description from my schema is missing in prod.
E.g. in prod
:
iex> Instructor.JSONSchema.from_ecto_schema(DSS.ProductSuggestion)
"{\"type\":\"object\",\"description\":\"\",\"title\":\"DSS.ProductSuggestion\",\"required\":[\"product_description\",\"product_name\",\"relative_description\"],\"properties\":{\"product_description\":{\"type\":\"string\",\"title\":\"product_description\"},\"product_name\":{\"type\":\"string\",\"title\":\"product_name\"},\"relative_description\":{\"type\":\"string\",\"title\":\"relative_description\"}}}"
Notice that the description
field is empty, which is not the case when calling the same function in dev
.