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

type: file is not recognized in a ref schema #1040

Closed
akauppi opened this issue Aug 10, 2016 · 3 comments
Closed

type: file is not recognized in a ref schema #1040

akauppi opened this issue Aug 10, 2016 · 3 comments

Comments

@akauppi
Copy link

akauppi commented Aug 10, 2016

While type: file seems to be recognized if directly under schema, it's still not usable behind a reference. e.g.

definitions:
  testHtml:
    description: |
      Sample content
    type: file
    format: text/html

The error:

ENUM_MISMATCH
message:  "No enum match for: file"

Swagger Editor 2.10.2

Also mentioned here.

@saharj
Copy link
Contributor

saharj commented Aug 17, 2016

This is probably a bug in JSON schema. cc @webron

@webron
Copy link
Contributor

webron commented Aug 17, 2016

@akauppi you can't define a model under definitions with type file. You can only define that inline in the response itself (that's specified in the spec).

@webron
Copy link
Contributor

webron commented Jun 9, 2017

This should no longer be an issue with the new editor.

@webron webron closed this as completed Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants