Skip to content

v1.12.5 : Do you have any plans for the next release? #1019

Description

@kakakakakku

Hi there!

Do you have any plans for the next release?

I noticed that there is an error in the README.md file regarding the behavior of x-enum-varnames. I know that although the master branch has the newest code generator with #880, it has not yet been released.

Therefore, the behavior of the latest version v1.12.5 is different from what is described in the README.md file. Of course I know notice below.

⚠️ This README may be for the latest development version, which may contain unreleased changes. Please ensure you're looking at the README for the latest release version.

components:
  schemas:
    Object:
      properties:
        category:
          type: integer
          enum: [0, 1, 2]
          x-enum-varnames:
            - notice
            - warning
            - urgent

To summarize the differences, I have listed them below:

If I use v1.12.4 version

$ oapi-codegen -version
github.com/deepmap/oapi-codegen/cmd/oapi-codegen
v1.12.4
// Defines values for ObjectCategory.
const (
	N0 ObjectCategory = 0
	N1 ObjectCategory = 1
	N2 ObjectCategory = 2
)

If I use master branch version

$ oapi-codegen -version
github.com/deepmap/oapi-codegen/cmd/oapi-codegen
v1.12.5-0.20230403173426-fd06f5aed350
// Defines values for ObjectCategory.
const (
	Notice  ObjectCategory = 0
	Urgent  ObjectCategory = 2
	Warning ObjectCategory = 1
)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions