Skip to content

Latest Preview 1.0 - beta4 - Enum inferred type is int  #186

@jkone27

Description

@jkone27

Description

https://swagger.io/docs/specification/data-models/enums/

 {
            "name": "target",
            "in": "query",
            "description": "Service to search. Leave blank or specify 'undefined' to search globally, specify any other target to search just that section of data.",
            "required": false,
            "type": "string",
            "enum": [ "Undefined", "CustomerName", "CustomerAddress", "CustomerEmail", "OrderNumber", "CustomerPaymentProviderReference", "CustomerPaymentInternalReference", "FlightProductCheckinAddress", "Pnr", "TicketNumber", "CustomerCompany", "InsurancePolicyNumber", "SupplierReference" ]
}

and SwaggerProvider generated type instead is int, wheras should be string (or eventually an Enum with valid values, before it was string with the old "LTS" package

This causes new generate types not to be compatible with "old" ones.

image

image

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