Skip to content

Latest version is showing types.Date as deprecated but can't find the new alternative #1228

@marcciosilva

Description

@marcciosilva

Hi! Getting the following error from golangci-lint after upgrading oapi-codegen to its latest version (v1.14.0):

Error: SA1019: types.Date is deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#Date  (staticcheck)

However, I can't find the new struct within the runtime package (I'm using the Date struct to mock responses from a generated client).

Edit: I noticed the deprecation comment was introduced a couple days ago here, so this might just be a temporary thing and not really an issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions