Skip to content

const vaues getting parsed #190

Open
@TobiPeterG

Description

@TobiPeterG

With this code

/*
 * API Documentation
 *
 * Source of truth and network automation platform
 *
 * API version: 2.2.5 (2.2)
 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
 */
package nautobot

type RackTypeChoices string

// List of RackTypeChoices
const (
	2POSTFRAME__RackTypeChoices RackTypeChoices = "2-post-frame"
	4POSTFRAME__RackTypeChoices RackTypeChoices = "4-post-frame"
	4POSTCABINET__RackTypeChoices RackTypeChoices = "4-post-cabinet"
	WALL_FRAME_RackTypeChoices RackTypeChoices = "wall-frame"
	WALL_FRAME_VERTICAL_RackTypeChoices RackTypeChoices = "wall-frame-vertical"
	WALL_CABINET_RackTypeChoices RackTypeChoices = "wall-cabinet"
	WALL_CABINET_VERTICAL_RackTypeChoices RackTypeChoices = "wall-cabinet-vertical"
	OTHER_RackTypeChoices RackTypeChoices = "other"
)

I get this error
Parser.Parse source file: target parser.ParseFile(): /client/model_port_type_choices.go:15:3: 'P' exponent requires hexadecimal mantissa (and 10 more errors)

I guess this should not happen.
I called gotests with this command
gotests -all -w -parallel ../

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions