Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

enum properties not working? #10

Closed
DallanQ opened this issue Apr 16, 2012 · 1 comment
Closed

enum properties not working? #10

DallanQ opened this issue Apr 16, 2012 · 1 comment

Comments

@DallanQ
Copy link

DallanQ commented Apr 16, 2012

When I try accessing the petStore example using swagger-ui, I get a javascript error in swagger-service.js line 227 that this.allowableValues.create is not a function. In the debugger it appears that allowableValues is an array, not an object, at that point. If I change line 43 in petResources.js and remove the "available,pending,sold" and "available" parameters, everything works fine. Are enum properties not being sent to the UI correctly?

@fehguy
Copy link
Contributor

fehguy commented Oct 31, 2012

See commit 5a74a7d

@fehguy fehguy closed this as completed Oct 31, 2012
theganyo pushed a commit that referenced this issue Jul 27, 2015
add dotenv dependency injection
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants