Code Monkey home page Code Monkey logo

Comments (2)

mk-fg avatar mk-fg commented on May 27, 2024

I think the issue you're referring to is with the lines like this one:
$ref: "#/components/schemas/Error"

Where pyaml, trying to keep unnecessary quotes out of strings if possible, did not have detection for this "will end up being comment" case, hence the breakage.

Fixed it in f904b96 and 20.4.0 by checking for "#" anywhere within strings to use quoted style for those that have it.

Let me know if you might've meant some other issue there.
Though note that this module is not really intended for producing correct output (as should be also mentioned in the README), just something readable that looks like more-or-less correct YAML, so probably should not be used to serialize data for other scripts to parse, only for humans.

Thanks for reporting!

from pretty-yaml.

chbndrhnns avatar chbndrhnns commented on May 27, 2024

My intention was to use it as kind of a formatting tool that I can run on the files so that developers do not need to take care for formatting. Let's see how it goes!

from pretty-yaml.

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.