GithubHelp home page GithubHelp logo

Comments (9)

whitlockjc avatar whitlockjc commented on August 25, 2024

I fixed this a few hours ago in commit 692d058. I just tested it to verify things are working as expected.

from swagger-tools.

avishaan avatar avishaan commented on August 25, 2024

Oh lol, I just figured it out by logging the entire error to the console. For errors it might be better in the example to log the entire error. Especially for those of us just getting started on this.
screen region 2014-10-16 at 15 48 41

from swagger-tools.

whitlockjc avatar whitlockjc commented on August 25, 2024

What caused this is the upstream schema changed the type of swagger from Number to String. I could add a --verbose flag to the CLI to let you see all parts of the error. What do you think?

from swagger-tools.

theganyo avatar theganyo commented on August 25, 2024

I noticed this the other day w/ a127 verify. I think it probably always needs to include the path or the message isn't very useful.

from swagger-tools.

whitlockjc avatar whitlockjc commented on August 25, 2024

The path is there, as a JSON Pointer. That's what the #/swagger part of the output is.

from swagger-tools.

theganyo avatar theganyo commented on August 25, 2024

Ah. Gotcha. When it's for the "swagger" element and just says "swagger" it's not clear. :)

from swagger-tools.

whitlockjc avatar whitlockjc commented on August 25, 2024

I'm open to suggestions. The idea was to use some sort of standard for pointing to a particular place in a JSON document and that's why I chose the syntax I did. It's not set in stone by any means but it does seem like a pretty reasonable approach.

from swagger-tools.

theganyo avatar theganyo commented on August 25, 2024

No, it makes total sense! It's only a bit problematic when the path is "/swagger". Which, in general, should be close to never.

from swagger-tools.

whitlockjc avatar whitlockjc commented on August 25, 2024

Hahaha! Yeah, I agree. When it's short like that it's unintuitive. If you have any suggestions on how we might fix this, let me know.

from swagger-tools.

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.