Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty enums #10

Open
anttileppa opened this issue Dec 12, 2016 · 2 comments
Open

Empty enums #10

anttileppa opened this issue Dec 12, 2016 · 2 comments

Comments

@anttileppa
Copy link

anttileppa commented Dec 12, 2016

After Wordpress 4.7 upgrade empty enums appeared into template POST parameters in several enpoints (Page, Post):

e.g.:

{  
  "name":"template",
  "type":"string",
  "in":"formData",
  "description":"Teematiedosto joka n\u00e4ytt\u00e4\u00e4 kohteen.",
  "enum":[
    ""
  ]
}
@starfishmod
Copy link
Owner

Is that by design I wonder?
I see plenty of other template variables that have an enum list...

I'm not sure what should be here though?

@RichiWIP
Copy link

RichiWIP commented Dec 22, 2016

I have also come across this issue. Also I my swagger UI would not display this because of null values. I have written a small fix, maybe you want to add this.
https://gist.github.com/RichiWIP/c096f6e7c26a0f5dbcd4e66c650b1f74
I haven't coded PHP for 15 years, so please ignore any rookie mistakes I might have made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants