forked from loafle/openapi-generator-original
* Changes manually cherry-picked (for the most part) from https://github.com/OpenAPITools/openapi-generator/pull/12685/files * Examples updated post changes * Missed a change in the mustache template * Update examples after last fix * Missed dereference for required files * Update unit tests * Missed another test case update * `f := *f` isn't quite the same as `*f, err = ...`