Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
330526f
PoC json_serializable in dart-dio-next
MichaelMarner Jul 20, 2021
eef247d
Move build.yaml template into json_serializable dir
MichaelMarner Jul 26, 2021
acddd80
Undo implicit-dynamic change
MichaelMarner Jul 26, 2021
cabdbda
Fix automatic formatting
MichaelMarner Jul 27, 2021
2c5ef70
Treat non-required fields as nullable
MichaelMarner Oct 26, 2021
693227c
Make class properties final
MichaelMarner Oct 26, 2021
e1c9571
Fix error introduced by merging in master
MichaelMarner Oct 26, 2021
b35785c
Fix map creation when deserializing
MichaelMarner Oct 27, 2021
36f47e7
Exclude built files from analysis
MichaelMarner Oct 27, 2021
0feda9b
Add new dio import props
MichaelMarner Oct 27, 2021
dc34a8a
Fix broken merge
MichaelMarner Oct 27, 2021
237bdc4
Fix configuration of nullable properties
MichaelMarner Oct 29, 2021
5d4fa0f
Only add api_util import if using built value
MichaelMarner Nov 4, 2021
f336c78
Add config param to set properties as final
MichaelMarner Dec 2, 2021
a3ab5d2
Fix syntax error due to merge
MichaelMarner Apr 12, 2022
4f3f64f
Update to simplified dio configuration
MichaelMarner Apr 12, 2022
3a2cb03
Merge branch 'master' into dart-dio-next-json-serializable
MichaelMarner Apr 12, 2022
019084a
Add missing api constructor template
MichaelMarner Apr 12, 2022
d6af303
Merge branch 'dart-dio-next-json-serializable' of github.com:MichaelM…
MichaelMarner Apr 12, 2022
f9c7e21
Fix import for multipart files
MichaelMarner Apr 12, 2022
826b465
Fix inclusion of library deserialize template
MichaelMarner Apr 12, 2022
6d185a1
Update docs
MichaelMarner Apr 12, 2022
a78f410
Remove trailing newline from class
MichaelMarner Apr 12, 2022
8e8cb4f
Fix whitespace in generated templates
MichaelMarner Apr 12, 2022
a820c44
FIx built value generation problem caused by merge conflicts
MichaelMarner Apr 12, 2022
6e2a3ae
Escape dollar signs in strings
MichaelMarner Apr 13, 2022
de62845
Handle enums
MichaelMarner Apr 13, 2022
3c56734
Config for json_serializable sample
MichaelMarner Apr 13, 2022
4203144
Generate sample for json_serializable
MichaelMarner Apr 13, 2022
87608f7
Revert "Escape dollar signs in strings"
MichaelMarner Apr 13, 2022
4c41ddb
Use raw strings when dealing with enum values
MichaelMarner Apr 13, 2022
78f075a
Add json_serializable Maven module ind fix number based enums
kuhnroyal Apr 13, 2022
25eb6bc
Merge pull request #3 from kuhnroyal/dart-dio-next-json-serializable
MichaelMarner Apr 14, 2022
5006f9e
Update docs and fix wrong maven module
kuhnroyal Apr 14, 2022
76f2d2c
Merge remote-tracking branch 'OpenAPITools/master' into dart-dio-next…
kuhnroyal Apr 14, 2022
4080525
Merge pull request #4 from kuhnroyal/dart-dio-next-json-serializable
MichaelMarner Apr 21, 2022
67ec4ed
Merge remote-tracking branch 'upstream/master' into dart-dio-next-jso…
MichaelMarner Apr 27, 2022
a016b88
Update minimum dart sdk with json serializable
MichaelMarner Apr 27, 2022
b894e14
Use dart 2.14 when testing Dart samples
MichaelMarner Apr 27, 2022
cf5ceef
Update codegen to remove analysis errors in output
MichaelMarner Apr 27, 2022
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
Generate sample for json_serializable
  • Loading branch information
MichaelMarner committed Apr 13, 2022
commit 4203144f22cb752c233485b7220d27805642f781
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# See https://dart.dev/guides/libraries/private-files

# Files and directories created by pub
.dart_tool/
.buildlog
.packages
.project
.pub/
build/
**/packages/

# Files created by dart2js
# (Most Dart developers will use pub build to compile Dart, use/modify these
# rules if you intend to use dart2js directly
# Convention is to use extension '.dart.js' for Dart compiled to Javascript to
# differentiate from explicit Javascript files)
*.dart.js
*.part.js
*.js.deps
*.js.map
*.info.json

# Directory created by dartdoc
doc/api/

# Don't commit pubspec lock file
# (Library packages only! Remove pattern if developing an application package)
pubspec.lock

# Don’t commit files and directories created by other development environments.
# For example, if your development environment creates any of the following files,
# consider putting them in a global ignore file:

# IntelliJ
*.iml
*.ipr
*.iws
.idea/

# Mac
.DS_Store
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
.gitignore
.openapi-generator-ignore
README.md
analysis_options.yaml
build.yaml
doc/AdditionalPropertiesClass.md
doc/Animal.md
doc/AnotherFakeApi.md
doc/ApiResponse.md
doc/ArrayOfArrayOfNumberOnly.md
doc/ArrayOfNumberOnly.md
doc/ArrayTest.md
doc/Capitalization.md
doc/Cat.md
doc/CatAllOf.md
doc/Category.md
doc/ClassModel.md
doc/DefaultApi.md
doc/DeprecatedObject.md
doc/Dog.md
doc/DogAllOf.md
doc/EnumArrays.md
doc/EnumTest.md
doc/FakeApi.md
doc/FakeClassnameTags123Api.md
doc/FileSchemaTestClass.md
doc/Foo.md
doc/FormatTest.md
doc/HasOnlyReadOnly.md
doc/HealthCheckResult.md
doc/InlineResponseDefault.md
doc/MapTest.md
doc/MixedPropertiesAndAdditionalPropertiesClass.md
doc/Model200Response.md
doc/ModelClient.md
doc/ModelEnumClass.md
doc/ModelFile.md
doc/ModelList.md
doc/ModelReturn.md
doc/Name.md
doc/NullableClass.md
doc/NumberOnly.md
doc/ObjectWithDeprecatedFields.md
doc/Order.md
doc/OuterComposite.md
doc/OuterEnum.md
doc/OuterEnumDefaultValue.md
doc/OuterEnumInteger.md
doc/OuterEnumIntegerDefaultValue.md
doc/OuterObjectWithEnumProperty.md
doc/Pet.md
doc/PetApi.md
doc/ReadOnlyFirst.md
doc/SpecialModelName.md
doc/StoreApi.md
doc/Tag.md
doc/User.md
doc/UserApi.md
doc/UserType.md
lib/openapi.dart
lib/src/api.dart
lib/src/api/another_fake_api.dart
lib/src/api/default_api.dart
lib/src/api/fake_api.dart
lib/src/api/fake_classname_tags123_api.dart
lib/src/api/pet_api.dart
lib/src/api/store_api.dart
lib/src/api/user_api.dart
lib/src/auth/api_key_auth.dart
lib/src/auth/auth.dart
lib/src/auth/basic_auth.dart
lib/src/auth/bearer_auth.dart
lib/src/auth/oauth.dart
lib/src/deserialize.dart
lib/src/model/additional_properties_class.dart
lib/src/model/animal.dart
lib/src/model/api_response.dart
lib/src/model/array_of_array_of_number_only.dart
lib/src/model/array_of_number_only.dart
lib/src/model/array_test.dart
lib/src/model/capitalization.dart
lib/src/model/cat.dart
lib/src/model/cat_all_of.dart
lib/src/model/category.dart
lib/src/model/class_model.dart
lib/src/model/deprecated_object.dart
lib/src/model/dog.dart
lib/src/model/dog_all_of.dart
lib/src/model/enum_arrays.dart
lib/src/model/enum_test.dart
lib/src/model/file_schema_test_class.dart
lib/src/model/foo.dart
lib/src/model/format_test.dart
lib/src/model/has_only_read_only.dart
lib/src/model/health_check_result.dart
lib/src/model/inline_response_default.dart
lib/src/model/map_test.dart
lib/src/model/mixed_properties_and_additional_properties_class.dart
lib/src/model/model200_response.dart
lib/src/model/model_client.dart
lib/src/model/model_enum_class.dart
lib/src/model/model_file.dart
lib/src/model/model_list.dart
lib/src/model/model_return.dart
lib/src/model/name.dart
lib/src/model/nullable_class.dart
lib/src/model/number_only.dart
lib/src/model/object_with_deprecated_fields.dart
lib/src/model/order.dart
lib/src/model/outer_composite.dart
lib/src/model/outer_enum.dart
lib/src/model/outer_enum_default_value.dart
lib/src/model/outer_enum_integer.dart
lib/src/model/outer_enum_integer_default_value.dart
lib/src/model/outer_object_with_enum_property.dart
lib/src/model/pet.dart
lib/src/model/read_only_first.dart
lib/src/model/special_model_name.dart
lib/src/model/tag.dart
lib/src/model/user.dart
lib/src/model/user_type.dart
pubspec.yaml
test/additional_properties_class_test.dart
test/animal_test.dart
test/another_fake_api_test.dart
test/api_response_test.dart
test/array_of_array_of_number_only_test.dart
test/array_of_number_only_test.dart
test/array_test_test.dart
test/capitalization_test.dart
test/cat_all_of_test.dart
test/cat_test.dart
test/category_test.dart
test/class_model_test.dart
test/default_api_test.dart
test/deprecated_object_test.dart
test/dog_all_of_test.dart
test/dog_test.dart
test/enum_arrays_test.dart
test/enum_test_test.dart
test/fake_api_test.dart
test/fake_classname_tags123_api_test.dart
test/file_schema_test_class_test.dart
test/foo_test.dart
test/format_test_test.dart
test/has_only_read_only_test.dart
test/health_check_result_test.dart
test/inline_response_default_test.dart
test/map_test_test.dart
test/mixed_properties_and_additional_properties_class_test.dart
test/model200_response_test.dart
test/model_client_test.dart
test/model_enum_class_test.dart
test/model_file_test.dart
test/model_list_test.dart
test/model_return_test.dart
test/name_test.dart
test/nullable_class_test.dart
test/number_only_test.dart
test/object_with_deprecated_fields_test.dart
test/order_test.dart
test/outer_composite_test.dart
test/outer_enum_default_value_test.dart
test/outer_enum_integer_default_value_test.dart
test/outer_enum_integer_test.dart
test/outer_enum_test.dart
test/outer_object_with_enum_property_test.dart
test/pet_api_test.dart
test/pet_test.dart
test/read_only_first_test.dart
test/special_model_name_test.dart
test/store_api_test.dart
test/tag_test.dart
test/user_api_test.dart
test/user_test.dart
test/user_type_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.0.0-SNAPSHOT
Loading