oapi-codegen
oapi-codegen copied to clipboard
Simplify extensions merge in `mergeOpenapiSchemas`
From the Go specification ^1:
"3. If the map is nil, the number of iterations is 0."
Therefore, we don't need the nil checks for merging the Extensions. Just like how we did for Properties:
https://github.com/deepmap/oapi-codegen/blob/66f9bb8d73111908bb20d30bae90e65eb49a6770/pkg/codegen/merge_schemas.go#L202-L210
Thanks @Juneezee! Would you mind merging the latest changes into your branch, also so CI can pick it up? I'm not sure I'll be able to as you're on your master branch.
@jamietanna I just rebased the latest changes. Please take a look again. Thanks :smiley: !