GithubHelp home page GithubHelp logo

Boolean serialisation about yaxlib HOT 5 CLOSED

yaxlib avatar yaxlib commented on July 20, 2024 1
Boolean serialisation

from yaxlib.

Comments (5)

danpowell88 avatar danpowell88 commented on July 20, 2024

Looks like XMLUtils.ToXmlValue could be modified with an addtional case

case "Boolean":
                return XmlConvert.ToString((bool) self);

This does break some of the existing tests that are using the uppercase booleans however

from yaxlib.

superoctave2 avatar superoctave2 commented on July 20, 2024

I've noticed this as well; it causes problems when the XML emitted by YAXLib has to go through a validator. Would you accept a patch for this issue if one was submitted or do you consider the existing behavior intended/desirable?

from yaxlib.

304NotModified avatar 304NotModified commented on July 20, 2024

@axunonb @NKnusperer I think this should be fixed for V3, do you agree?

Should we make it an option to fallback to the old (incorrect) Pascal cased boolean values (True, False)

from yaxlib.

axunonb avatar axunonb commented on July 20, 2024

Should we make it an option to fallback to the old (incorrect) Pascal cased boolean values (True, False)

Make deserializing Pascal cased booleans work, but for serializing follow the xml specs now?

from yaxlib.

NKnusperer avatar NKnusperer commented on July 20, 2024

Like @axunonb said we should preserve backwards compatibility by supporting deserializing pascal case and serialize correctly.

from yaxlib.

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.