Giter VIP home page Giter VIP logo

Comments (2)

Exlll avatar Exlll commented on June 18, 2024

This will probably not be supported in the foreseeable future. Sadly, all YAML parsers (for Java) that I tested when I started writing this library had either too many bugs and problems or did not support comments. Maybe the situation has changed now but testing these libraries takes quite some time and the code in this library also needs to be updated.

The code I've written to support comments feels pretty hacky to me although it seems to work quite well since no major problems have been reported so far. However, when you start working on comment support for collections all kinds of edge cases start to pop up, especially when it comes to nested collections (e.g., List<Map<String, Set<...>>>). I'd rather wait for some library to properly support these cases than write more hacky code myself.

In any case, the usual workaround is to add the comment to the list itself and describe the structure of its elements there.

from configlib.

KweezyCode avatar KweezyCode commented on June 18, 2024

this library is actually more stable than the others in handling comments that I tried (java-serializer, AnnotationConfig, night-config). It's a shame that comment support is so limited in parsers. In any case, thanks for your work! Your library works fine (POJO + Annotated fields)

from configlib.

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.