google / google/json_serializable.dart

Warn on ignored annotations...

Open
#223 0 comments 1 reaction 0 assignees View on GitHub
Type: enhancement
Dominant language
Dart
Stars
1.6k
Forks
461
Avg merge
45m
Merged PRs (30d)
1

Description

Depending on JsonSerializable createToJson and createFactory - some annotations may be just ignored.

Might be nice to warn about them

Fields that only apply if generating toJson
- JsonSerializable
- includeIfNull
- JsonKey
- toJson
- includeIfNull

Fields that only apply if generating fromJson
- JsonSerializable
- disallowUnrecognizedKeys
- JsonKey
- fromJson
- defaultValue
- disallowNullvalue
- required

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.