Coder Social home page Coder Social logo

Comments (3)

JamesMessinger avatar JamesMessinger commented on May 23, 2024

Hi. Sorry for not responding sooner. Been crazy busy!

Thank you for exposing your Swagger files via a REST API. That makes it SUPER easy for me to use them without having to create duplicate copies of them in this repo. I've made the necessary code changes on my end to use your API, and it mostly works great. But there are a couple APIs that don't pass validation, which is causing my test suites to fail. :( Any chance you could fix these validation issues?

backupify.com
The blob definition on line 1461 only has a description which isn't enough information to satisfy the oneOf rule in the Swagger 2.0 schema. Adding type: object solves the problem:

  blob:
    type: object
    description: A Binary Large OBject

plenigo.com
Basically the same issue as above. The OAuthError definition on line 1426 doesn't satisfy the oneOf rule in the Swagger 2.0 schema. Adding type: object solves the problem:

  OAuthError:
    type: object

watchful.li
Basically the same as above. The Uptime and Version definitions on lines 2444 - 2445 are missing type: object.

  Uptime:
    type: object
  Version:
    type: object

motaword.com
The POST /projects endpoint has file parameters. According to the Swagger 2.0 spec, if a parameter's type is "file", the consumes MUST be either "multipart/form-data", "application/x-www-form-urlencoded", or both. This can be fixed by adding the following at line 126:

    post:
      description: Create a new project
      operationId: createProject
      consumes:
        - multipart/form-data

uploady.com
Basically the same as above. The POST /upload endpoint has a file parameter, so it needs to consume "multipart/form-data". This can be fixed by adding the following at line 367:

    /upload:
      consumes:
        - multipart/form-data

from swagger-parser.

IvanGoncharov avatar IvanGoncharov commented on May 23, 2024

@BigstickCarpet #28 Solves all issues except last two.
I will look into them tomorrow

from swagger-parser.

JamesMessinger avatar JamesMessinger commented on May 23, 2024

Ah shit. Didn't realize they had updated the schema. I really wish they would use semver, so npm would keep Swagger Parser up-to-date automatically. :(

Thanks for fixing that

from swagger-parser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.