2019-01-22 19:41:12 +08:00
|
|
|
targets:
|
|
|
|
$default:
|
|
|
|
builders:
|
|
|
|
json_serializable:
|
|
|
|
options:
|
|
|
|
# Options configure how source code is generated for every
|
|
|
|
# `@JsonSerializable`-annotated class in the package.
|
|
|
|
#
|
|
|
|
# The default value for each is listed.
|
|
|
|
#
|
|
|
|
# For usage information, reference the corresponding field in
|
|
|
|
# `JsonSerializableGenerator`.
|
|
|
|
# any_map: false
|
|
|
|
# checked: false
|
|
|
|
# create_factory: true
|
|
|
|
# create_to_json: true
|
|
|
|
# disallow_unrecognized_keys: false
|
|
|
|
# explicit_to_json: false
|
2019-02-21 18:51:49 +08:00
|
|
|
# field_rename: snake
|
2019-01-22 19:41:12 +08:00
|
|
|
# generate_to_json_function: true
|
|
|
|
# include_if_null: true
|
|
|
|
# nullable: true
|
|
|
|
# use_wrappers: false
|
2019-11-06 21:27:37 +08:00
|
|
|
artemis:
|
|
|
|
options:
|
|
|
|
schema_mapping:
|
|
|
|
- schema: lib/github.schema.json
|
2019-12-07 15:28:43 +08:00
|
|
|
output: lib/graphql/github_user.dart
|
|
|
|
queries_glob: lib/graphql/github_user.graphql
|
2019-12-06 21:51:33 +08:00
|
|
|
resolve_type_field: __typename
|
2019-12-07 15:28:43 +08:00
|
|
|
add_query_prefix: true
|
2019-12-07 16:12:18 +08:00
|
|
|
- schema: lib/github.schema.json
|
|
|
|
output: lib/graphql/github_repository.dart
|
|
|
|
queries_glob: lib/graphql/github_repository.graphql
|
|
|
|
resolve_type_field: __typename
|
|
|
|
add_query_prefix: true
|
2019-12-07 16:39:56 +08:00
|
|
|
- schema: lib/github.schema.json
|
|
|
|
output: lib/graphql/github_object.dart
|
|
|
|
queries_glob: lib/graphql/github_object.graphql
|
|
|
|
resolve_type_field: __typename
|
|
|
|
add_query_prefix: true
|
2019-12-07 22:25:37 +08:00
|
|
|
- schema: lib/github.schema.json
|
|
|
|
output: lib/graphql/github_repositories.dart
|
|
|
|
queries_glob: lib/graphql/github_repositories.graphql
|
|
|
|
resolve_type_field: __typename
|
|
|
|
add_query_prefix: true
|
2019-12-07 23:10:30 +08:00
|
|
|
- schema: lib/github.schema.json
|
|
|
|
output: lib/graphql/github_users.dart
|
|
|
|
queries_glob: lib/graphql/github_users.graphql
|
|
|
|
resolve_type_field: __typename
|
|
|
|
add_query_prefix: true
|
2019-12-13 23:44:49 +08:00
|
|
|
- schema: lib/github.schema.json
|
|
|
|
output: lib/graphql/github_commits.dart
|
|
|
|
queries_glob: lib/graphql/github_commits.graphql
|
|
|
|
resolve_type_field: __typename
|
|
|
|
add_query_prefix: true
|
2019-12-17 13:34:53 +08:00
|
|
|
- schema: lib/github.schema.json
|
|
|
|
output: lib/graphql/github_me.dart
|
|
|
|
queries_glob: lib/graphql/github_me.graphql
|
|
|
|
resolve_type_field: __typename
|
|
|
|
add_query_prefix: true
|
2019-11-06 21:27:37 +08:00
|
|
|
scalar_mapping:
|
|
|
|
- graphql_type: URI
|
|
|
|
dart_type: String
|
2019-12-13 23:44:49 +08:00
|
|
|
- graphql_type: GitObjectID
|
|
|
|
dart_type: String
|