GithubHelp home page GithubHelp logo

Comments (10)

NKnusperer avatar NKnusperer commented on August 20, 2024 2

Sure, will take a look at it next week.

from yaxlib.

axunonb avatar axunonb commented on August 20, 2024 1

@NKnusperer Do you think you take over this issue on the way to v3?

from yaxlib.

sinairv avatar sinairv commented on August 20, 2024

I suggest creating a KnownType for an exception e.g., ExceptionKnownType in which we can selectively decide what to serialize (Message, StackTrace, InnerExceptions, etc), and ignore the rest (that have cyclic or deep hierarchical references).

from yaxlib.

304NotModified avatar 304NotModified commented on August 20, 2024

sounds good to me :)

from yaxlib.

304NotModified avatar 304NotModified commented on August 20, 2024

Could I also make a knowntype with a blacklist instead of whitelist? And does the knowntype work for sub classes? (e.g. knowntype on Exception, should work ook ArgumentException)

from yaxlib.

sinairv avatar sinairv commented on August 20, 2024

I don't quite get what you mean by a blacklist known-type.
A child of known-type is not a known-type: https://github.com/sinairv/YAXLib/blob/master/YAXLib/KnownTypes.cs#L60

So it seems my suggested work-around for treating exceptions as known-types wouldn't work :(

from yaxlib.

304NotModified avatar 304NotModified commented on August 20, 2024

Result with max recursion 10:

(8 mb)

exception-max-recurssion10.xml.txt

from yaxlib.

axunonb avatar axunonb commented on August 20, 2024

@NKnusperer Did you find the time to have a closer look at this issue?

from yaxlib.

axunonb avatar axunonb commented on August 20, 2024

Closed with #152

from yaxlib.

304NotModified avatar 304NotModified commented on August 20, 2024

Great work @axunonb !

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.