Giter Site home page Giter Site logo

Comments (4)

highlyunavailable avatar highlyunavailable commented on May 27, 2024

Tell me more! The reason I'm using json.net in package is I needed easy json serialization when I wrote it. If another method can also handle empty fields and custom type serialization and deserialization (e.g. golang durations) as well then it should be ok. It sounds like the PR would need to recreate some of that functionality since many of the Consul structs have a bunch of fields and behave slightly differently depending on which fields are there, e.g ttl vs script health checks.

from consuldotnet.

highlyunavailable avatar highlyunavailable commented on May 27, 2024

Good example: https://github.com/PlayFab/consuldotnet/blob/master/Consul/Agent.cs

All the ShouldSerialize* methods and the attributes control Json.net.

But yes, I would be open to a PR for this.

from consuldotnet.

highlyunavailable avatar highlyunavailable commented on May 27, 2024

@kharabasz I'm going to close this issue since your question has been answered - I look forward to your PR if you're still looking working on this, though. If you need any additional assistance around this, feel free to open another issue or email me at the email in my github profile.

from consuldotnet.

kharabasz avatar kharabasz commented on May 27, 2024

@highlyunavailable No problem, I haven't had time to work on this yet, but will try to get a pull request together soon. Thanks!

from consuldotnet.

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.