swagger-api/swagger-codegen
Auf GitHub ansehenundefined method build_from_hash in Enum data type
Open
#4.848 geöffnet am 24. Feb. 2017
Client: RubyFeature: EnumIssue: BugIssue: Workaround availablehelp wanted
Repository-Metriken
- Stars
- (12.701 Stars)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
Beschreibung
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

this is the AccountCategory class that has Enum data type

can somebody help me?