Skip to content

undefined method build_from_hash in Enum data type #4848

Open
@ydgiannp

Description

@ydgiannp

Hi, Im having an issue.
I am generating a json swagger into a ruby gem, the swagger JSOn contains Enum data type.
The generated class that has an Enum data type does not have build_from_hash method so it always get NoMethodError. the convert_to_type method always call build_from_hash method

this is the convert_to_type method

screen shot 2017-02-24 at 9 09 23 pm

this is the AccountCategory class that has Enum data type

screen shot 2017-02-24 at 9 09 39 pm

can somebody help me?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions