Skip to content

Don't use pointer to slice of types #1561

@thatjames

Description

@thatjames

Currently, the oapi-codegen tool will generate a pointer to a slice of types.

This is unnecessary, as slices are already reference values, per the language spec

This gives the ability to distinguish between an empty slice (len ==0) and an unset field (array == nil)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExternal contributions would be very much appreciated!

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions