GithubHelp home page GithubHelp logo

When certain types of error messages are converted to strings, certain schema properties are incorrectly converted about jsonschema HOT 3 CLOSED

MrSeccubus avatar MrSeccubus commented on September 27, 2024
When certain types of error messages are converted to strings, certain schema properties are incorrectly converted

from jsonschema.

Comments (3)

Julian avatar Julian commented on September 27, 2024

There's nothing converted there, in Python (like in C) "foo" "bar" is a single implicitly concatenated string.

The behavior comes from pprint which is what we use for formatting output, but making this nicer is #243 which you're of course welcome to chime in on.

from jsonschema.

MrSeccubus avatar MrSeccubus commented on September 27, 2024

It is not just about making it "nicer" the current output is ,because of this behaviour of pprint unusable.

from jsonschema.

MrSeccubus avatar MrSeccubus commented on September 27, 2024

The other thinng that you could consider to make the output of pprint usefull is to set width=sys.maxsize as per this stackoverflow article: https://stackoverflow.com/questions/31485402/can-i-make-pprint-in-python3-not-split-strings-like-in-python2

Again this is not just a cosmetic issue, this is also a usability issue.

from jsonschema.

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.