night-config
night-config copied to clipboard
Powerful java configuration library for toml, yaml, hocon, json and in-memory configurations. Serialization/deserialization framework.
Hi, I am trying to read my (TOML-)ConfigFile into an POJO using the ObjectConverter. I have several Durations, for example, and other custom objects. Using the `@Conversion`-Annotation, I'm able to...
Sometimes which exact keys will exist in a config file are up to the user. I am not sure whether I am doing something wrong, or whether this is not...
**Implementary notes** Should be available on builder classes, etc, as configuration options for loading configurations. **Expected behaviour** When a qualifier in the configuration, e.g. `server.port` is set as an environment...
hi again, is there any (simple) way to create a deep copy of a configuration? Then one could compare the original and copied version, if one was changed later on?...
Sorry for flooding - I'm just discovering lots of cool features... ;-) I have tried this example, which works perfectly fine - until I make it write to TOML, which...
Hi, not a breaking bug, but using [`configSpec.defineInRange(path, defaultValue, min, max);`](https://github.com/TheElectronWill/night-config/blob/master/core/src/main/java/com/electronwill/nightconfig/core/ConfigSpec.java#L309) causes `java.lang.ClassCastException: class java.lang.Long cannot be cast to class java.lang.Integer` during configSpec.correct(...) which yields ConfigSpec.CorrectAction.REPLACE to correction listener ```...
I'm modeling a nested configuration structure, which will contain defaults for some values. In the example below, I have a simple string foo, for which this works perfectly, if I...
I have a section of a TOML file like this: ```toml [dependencies] required = ["examplemod:1.0.0"] optional = ["anothermod:1.0.0"] ``` which I wish to parse with an ObjectConverter. I've attempted the...
following a json file (parsed using `JsonFormat.fancyInstance().createParser()`), ```json { "chicken": true, "cgow": false, "color": { "saturation": 1.0, "brightness": 1.0, "alpha": 1.0, "hue": 0.9346405, "class": "org.polyfrost.polyui.color.PolyColor" }, "cow5": false, "added": false,...