Contributing
Bug reports, feature requests, and pull requests are all welcome on GitHub.
Reporting a bug
Include the pdata version, a minimal config snippet (and which format it’s in) that reproduces the issue, and what you expected vs. what you got.
Working on the code
git clone https://github.com/psdkjoon/pdata.git
cd pdata
dart pub get
dart test
The package is six small files under lib/src/: pdata.dart (the top-level read/write/decode/encode functions), json_codec.dart, yaml_codec.dart, and toml_codec.dart (one per format), extensions.dart (the typed accessors), and exception.dart.
Style
- Every public member gets a
///doc comment — this site’s API Reference is generated from them. - Format-specific parsing/writing belongs entirely in that format’s
_codec.dartfile — keeppdataDecode/pdataEncodeas thin dispatchers so all three formats stay symmetric. - New examples go in
example/, following the existing files’ plain, comment-driven style.
Before opening a PR
dart format --set-exit-if-changed .
dart analyze
dart test