ExOpenAI.Codegen.parse_type

You're seeing just the function parse_type, go back to ExOpenAI.Codegen module for more information.

Parses the given component type, returns a flattened representation of that type

See tests for some examples:

assert ExOpenAI.Codegen.parse_type(%{
 "type" => "object",
 "properties" => %{
   "foo" => %{
     "type" => "array",
     "items" => %{
       "type" => "string"
     }
   },
   "bar" => %{
     "type" => "number"
   }
 }
}) == {:object, %{"foo" => {:array, "string"}, "bar" => "number"}}