safe_config icon indicating copy to clipboard operation
safe_config copied to clipboard

A safe and convenient way to read YAML configuration files.

Results 8 safe_config issues
Sort by recently updated
recently updated
newest added

This still needs some review on a pull request dependency. It appears that I haven't made sufficient changes here https://github.com/stablekernel/dart-isolate-executor/pull/10, since the last set of tests don't start.

When using `decode()` to decode custom types, the class can't be instantiated. Example: ```dart import 'dart:io'; class Foo { static final Foo one = Foo._('one'); static final Foo two =...

update for Dart null safety

On attempting to run, the following error is thrown: ``` ../../../.pub-cache/hosted/pub.dartlang.org/safe_config-2.0.2/lib/src/configuration.dart:86:42: Error: The argument type 'Type' can't be assigned to the parameter type 'String'. - 'Type' is from 'dart:core'. throw...

When an error occurs in a nested Configuration, there is no context of where it came from. For example, consider the following program: ```dart import 'dart:io'; import 'package:safe_config/safe_config.dart'; class AppConfig...

I am trying to execute below code: ``` import 'dart:io'; import 'package:safe_config/safe_config.dart'; class ApplicationConfiguration extends Configuration { ApplicationConfiguration(String fileName) : super.fromFile(File(fileName)); String password; } void main() { var config =...

I have a config file like that: file "config.yaml": ``` password: $ya123m ``` when it is read from code below: ``` import 'dart:io'; import 'package:safe_config/safe_config.dart'; class AppConfig extends Configuration {...

I am looking for a way of how to deserialize a yaml file like these one (a map): ``` key0: type: Foo connection: type: 1 key1: type: Bar connection: type:...