Skip to content

Introduced ignore attribute to JsonKey. #114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 72 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
9f3a944
Support the latest pkg/build packages (#62)
kevmoo Nov 2, 2017
c181095
Fix ensure_build_test
kevmoo Nov 2, 2017
5ee8652
prepare json_annonation for release
kevmoo Nov 2, 2017
9e0f70c
json_serializable: prepare for release (#64)
kevmoo Nov 2, 2017
c820d01
Fix non-nullable generated library name, keep class name consistent
kevmoo Oct 31, 2017
7601847
fix test names
kevmoo Oct 29, 2017
ac8da41
cleanup to JsonSerializableGenerator
kevmoo Oct 29, 2017
73f7666
build_actions: be explicit about where the generator is run
kevmoo Oct 31, 2017
027f5c7
Fix reference to bathtub
kevmoo Oct 31, 2017
3129d78
Make non-nullable flavor of json test examples
kevmoo Nov 3, 2017
655130c
Consider both `nullable` and `includeIfNull` when writing serialization
kevmoo Nov 3, 2017
29437f0
Improve error message when a field cannot be (de)serialized
kevmoo Nov 1, 2017
328e6b3
test: Cleanup kitchen_sink Classes and generation
kevmoo Nov 3, 2017
a9cde3e
Missed a dartfmt (#69)
kevmoo Nov 3, 2017
a04afe5
Improve error message when a field cannot be (de)serialized
kevmoo Nov 1, 2017
ae1b066
Remove deprecated `annotations.dart` library
kevmoo Nov 3, 2017
9e968f5
Update to latest build_runner - with fix for checked mode
kevmoo Nov 3, 2017
59d12bf
Support generating a custom map and using non-copying wrappers for se…
kevmoo Nov 23, 2017
1cc06c8
Pass field metadata to type helpers (#76)
sasha-caleo Nov 25, 2017
a0be252
Follow-up cleanup (#77)
kevmoo Nov 27, 2017
3d7783b
allow optional parameters for types using fromJson() (#72)
johnpryan Nov 27, 2017
b42481b
fix dartfmt (#78)
kevmoo Nov 27, 2017
5b51d59
Remove accidental file
kevmoo Dec 13, 2017
769a54c
Creating a stand-alone example (#80)
kevmoo Dec 14, 2017
d1328fd
Fix up links between readmes/sub-packages
kevmoo Dec 15, 2017
a88f315
example: Comment pubspec.yaml – and add a constraint on pkg/build_runner
kevmoo Dec 15, 2017
2c40819
example: improve build_action docs and cleanup example_test.dart
kevmoo Dec 15, 2017
6697ef9
example: improve readme documentation...
kevmoo Dec 15, 2017
1bf4a3e
Example: remove dependency overrides in example/pubspec.yaml
kevmoo Dec 15, 2017
b54d0e6
Add new library: json_serializable.dart
kevmoo Dec 15, 2017
68fabf5
Prepare to release json_annotation (#86)
kevmoo Dec 15, 2017
039b8da
Prepare to release json_serializable 0.3.0 (#87)
kevmoo Dec 15, 2017
aa0d37c
example: update to json_serializable 0.3.0 (#88)
kevmoo Dec 15, 2017
7e3ed93
Upgrade to build_runner 0.7 (#90)
natebosch Jan 2, 2018
ca62b63
Add requireLibraryDirective parameter to jsonPartBuilder (#91)
kevmoo Jan 3, 2018
374a55d
Prepare to release v0.3.1 (#93)
kevmoo Jan 4, 2018
71b9f0c
example: update for shipped json_serializable (#94)
kevmoo Jan 4, 2018
a9fed27
support package:build version 0.12.0 (#96)
jakemac53 Jan 18, 2018
11c7ff5
Unpin dev SDK in travis (#97)
kevmoo Jan 19, 2018
7dba2c6
Don't run tests against json_serializable on stable
kevmoo Feb 3, 2018
066e957
Support the latest version of pkg/analyzer
kevmoo Feb 3, 2018
423377d
use latest mono_repo (#99)
kevmoo Feb 7, 2018
023d15d
example: cleanup
kevmoo Feb 10, 2018
1517c9e
Ignore deprecated usage of requireLibraryDirective - for now
kevmoo Feb 10, 2018
a6cc5b4
one-off dartfmt
kevmoo Feb 10, 2018
65b7bcd
Change require library directive default (#102)
kevmoo Feb 12, 2018
f1695ea
Update example to use latest (#103)
kevmoo Feb 12, 2018
1bc90a0
Enable unnecessary_brace_in_string_interps lint
kevmoo Feb 15, 2018
35ce0e9
Add Map<String, Enum> to test cases
kevmoo Feb 15, 2018
3c81c1f
Avoid unnecessary braces in string escapes
kevmoo Feb 15, 2018
b6ffbce
Use single quotes when generating code.
kevmoo Feb 15, 2018
86dc274
Add missing copyright headers
kevmoo Feb 15, 2018
ba55f93
Move test Dart code for json_serializable_test to a dart file (#106)
kevmoo Feb 21, 2018
eced4db
Support inherited fields (#107)
kevmoo Feb 23, 2018
e42346c
Prepare to release 0.4.0 (#108)
kevmoo Feb 23, 2018
31cf5ae
Update example to latest pkg:json_serializable (#109)
kevmoo Feb 28, 2018
eed6d38
Introduced ignore attribute to JsonKey. When set to true the generato…
AlexanderJohr Mar 8, 2018
469a8ed
Add repository LICENSE file
kevmoo Mar 12, 2018
5fce9ac
Move from JSON -> json
kevmoo Mar 12, 2018
d754ef8
Fix test expectations for recent pkg:build versions
kevmoo Mar 12, 2018
495c5a6
Merge branch 'master' into ignore-private-and-ignore-annotated-fields
AlexanderJohr Mar 12, 2018
8b42ec5
Added dependency_overrides for json_annotation to get the latest anno…
AlexanderJohr Mar 13, 2018
b6b70da
Merge branch 'ignore-private-and-ignore-annotated-fields' of https://…
AlexanderJohr Mar 13, 2018
d402b40
Changed return type of _writeFactory to void
AlexanderJohr Mar 13, 2018
a8bbb86
Latest pkg:build_runner
kevmoo Mar 16, 2018
33707a5
Serial/Deserial context metadata - readonly
kevmoo Mar 16, 2018
4925722
Enable and fix many more lints
kevmoo Mar 16, 2018
9240774
Refactored _writeFactory to return the fields that were used to set, …
AlexanderJohr Mar 17, 2018
739ac61
added test "works to ignore a field"
AlexanderJohr Mar 17, 2018
bb77bd2
Added test 'includes final field in toJson when set in ctor' which en…
AlexanderJohr Mar 17, 2018
88b14ed
Ran dart formatter on json_serializable_test_input.dart
AlexanderJohr Mar 20, 2018
75f85f2
Merge branch 'master' into ignore-private-and-ignore-annotated-fields
AlexanderJohr Mar 21, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Don't run tests against json_serializable on stable
  • Loading branch information
kevmoo committed Feb 3, 2018
commit 7dba2c6e1522ecbcdd91b426d7d975294218703b
16 changes: 11 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,33 @@ language: dart

dart:
- dev
- stable

env:
- PKG=example TASK=dartanalyzer
- PKG=example TASK=dartanalyzer_1
- PKG=example TASK=dartfmt
- PKG=example TASK=test
- PKG=json_annotation TASK=dartanalyzer
- PKG=json_annotation TASK=dartanalyzer_1
- PKG=json_annotation TASK=dartfmt
- PKG=json_serializable TASK=dartanalyzer
- PKG=json_serializable TASK=dartanalyzer_0
- PKG=json_serializable TASK=dartanalyzer_1
- PKG=json_serializable TASK=dartfmt
- PKG=json_serializable TASK=test

matrix:
exclude:
- dart: stable
env: PKG=example TASK=dartanalyzer
env: PKG=example TASK=dartanalyzer_1
- dart: stable
env: PKG=example TASK=dartfmt
- dart: stable
env: PKG=json_serializable TASK=dartanalyzer
env: PKG=json_serializable TASK=dartanalyzer_0
- dart: stable
env: PKG=json_serializable TASK=dartanalyzer_1
- dart: stable
env: PKG=json_serializable TASK=dartfmt
- dart: stable
env: PKG=json_serializable TASK=test

script: ./tool/travis.sh

Expand Down
1 change: 1 addition & 0 deletions json_annotation/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: dart

dart:
- dev
- stable
Expand Down
3 changes: 2 additions & 1 deletion json_serializable/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ language: dart

dart:
- dev
- stable

dart_task:
# Run the tests -- include the default-skipped presubmit tests
- test: --run-skipped
- dartfmt
- dartanalyzer: --fatal-infos --fatal-warnings .

matrix:
include:
Expand Down
22 changes: 15 additions & 7 deletions tool/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,38 @@
set -e

if [ -z "$PKG" ]; then
echo -e "PKG environment variable must be set!"
echo -e '\033[31mPKG environment variable must be set!\033[0m'
exit 1
elif [ -z "$TASK" ]; then
echo -e "TASK environment variable must be set!"
echo -e '\033[31mTASK environment variable must be set!\033[0m'
exit 1
fi

pushd $PKG
pub upgrade

case $TASK in
dartanalyzer) echo
echo -e "TASK: dartanalyzer"
dartanalyzer_0) echo
echo -e '\033[1mTASK: dartanalyzer_0\033[22m'
echo -e 'dartanalyzer --fatal-infos --fatal-warnings .'
dartanalyzer --fatal-infos --fatal-warnings .
;;
dartanalyzer_1) echo
echo -e '\033[1mTASK: dartanalyzer_1\033[22m'
echo -e 'dartanalyzer .'
dartanalyzer .
;;
dartfmt) echo
echo -e "TASK: dartfmt"
echo -e '\033[1mTASK: dartfmt\033[22m'
echo -e 'dartfmt -n --set-exit-if-changed .'
dartfmt -n --set-exit-if-changed .
;;
test) echo
echo -e "TASK: test"
echo -e '\033[1mTASK: test\033[22m'
echo -e 'pub run test --run-skipped'
pub run test --run-skipped
;;
*) echo -e "Not expecting TASK '${TASK}'. Error!"
*) echo -e "\033[31mNot expecting TASK '${TASK}'. Error!\033[0m"
exit 1
;;
esac