And the same for the generated enum class (e.g. from CreateCompletionRequestModelEnum to CompletionModelCatalog)
With those two minor improvements, I should be able to generate a very fluent OpenAI client with very minor changes on their spec (basically by just adding some titles on their nested objects).
Let me know what you think, I can help out with the implementation.
Some future improvements that may be worth considering:
title
to be able to override the default union class name (e.g. fromUnionCreateCompletionRequestModel
toCompletionModel
)CreateCompletionRequestModelEnum
toCompletionModelCatalog
)With those two minor improvements, I should be able to generate a very fluent OpenAI client with very minor changes on their spec (basically by just adding some titles on their nested objects).
Let me know what you think, I can help out with the implementation.
_Originally posted by @davidmigloz in https://github.com/tazatechnology/openapi_spec/issues/13#issuecomment-1786033358_