Code Monkey home page Code Monkey logo

Comments (4)

dtolnay avatar dtolnay commented on September 27, 2024

The page you linked is not part of the YAML spec.

from serde-yaml.

jonathan-s avatar jonathan-s commented on September 27, 2024

This link here > https://yaml.org/spec/1.1/#id864510 should be part of the spec as far as I understand.

In that paragraph it's written

YAML allows scalar content to be presented in several formats. For example, the boolean “true” might also be written as “yes”. Tags must specify a mechanism for converting any formatted scalar content to a canonical form for use in equality testing. Like node style, the format is a presentation detail and is not reflected in the serialization tree and representation graph.

Reflecting that yes is part of what should be represented as a boolean.

The section on tags. Also links to the link I mentioned first. It's the link for "bool"

The repository includes additional types such as “null”, “bool”, “set” and others.

from serde-yaml.

dtolnay avatar dtolnay commented on September 27, 2024

That new link is at least 14 years out of date.

As far as I am able to discern, here is the spec that defines what values to interpret implicitly as bool: https://yaml.org/spec/1.2.2/#1032-tag-resolution. This was linked in the summary of my PR that you linked to at the top.

from serde-yaml.

jonathan-s avatar jonathan-s commented on September 27, 2024

I stand corrected. Thank you for taking the time to reply.

from serde-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.