Skip to content

Golang: Handling of enum properties #287

@leecalcote

Description

@leecalcote

Current Behavior

OpenAPI enums are directly represented as constants in Golang, but are not automatically grouped as you would expect with an enum (given that Golang uses iotas or other mechanism and doesn't have enums).

Desired Behavior

Establish a process for Meshery contributors to follow in the representation of OpenAPI properties that are enums (oneOf or anyOf or enum).

Implementation

  1. Possible use of a helper to group into an array or group into a separate module with enum variants or...?
  2. Establish consistent naming pattern... ?
  3. Enhancement of the model generation script...

Acceptance Tests

  1. Schema-driven contributor guide is updated.

Contributor Guides and Handbook

Metadata

Metadata

Assignees

Labels

issue/willfixThis issue will be worked onkind/enhancementImprovement in current feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions