-
Notifications
You must be signed in to change notification settings - Fork 124
/
build.yaml
77 lines (77 loc) · 2.77 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
targets:
$default:
sources:
- lib/**
- swaggers/**
- swaggers2/**
- input_folder/**
- swagger_examples/**
- $package$
builders:
chopper_generator:
options:
header: "//Generated code"
swagger_dart_code_generator:
options:
input_folder: "input_folder/"
output_folder: "lib/swagger_generated_code/"
input_urls:
- url: "https://raw.githubusercontent.com/epam-cross-platform-lab/swagger-dart-code-generator/master/example/input_folder/pet_service_json.json"
file_name: "some_file_name.json"
- url: "https://raw.githubusercontent.com/epam-cross-platform-lab/swagger-dart-code-generator/master/example/input_folder/pet_service_yaml.yaml"
with_base_url: true
with_converter: true
use_path_for_request_names: true
use_default_null_for_lists: false
override_equals_and_hashcode: true
build_only_models: false
additional_headers:
- "Cache-Control"
overriden_models:
- file_name: "pet_service_json"
import_url: "../overriden_models.dart"
overriden_models:
- "Pet"
- "Order"
separate_models: false
enums_case_sensitive: false
cut_from_model_names: "ModelRenameV3"
nullable_models:
- "Pet"
- "Dog"
ignore_headers: false
use_required_attribute_for_headers: false
include_if_null: false
classes_with_nullabe_lists:
- "Pet"
- "Dog"
- "Cat"
exclude_paths:
- "/items/{id}"
response_override_value_map:
- url: "/v2/commons/availableColours"
method: get
overridden_value: "List<Map>"
- url: "/v2/commons/availableGenres"
method: get
overridden_value: "List<GenreV2Result>"
- url: "/v2/channels"
method: get
overridden_value: "List<Channel>"
- url: "/{country}/{lang}/events/segments/{segmentName}"
method: get
overridden_value: "Map"
- url: "/v1/titlePreferredInstance/{titleCrid}"
method: get
overridden_value: TitlePreferredInstance
- url: "/v2/detailscreen/{crid}"
method: get
overridden_value: "Map<String, dynamic>"
default_header_values_map:
- header_name: "X-Entitlements-Token"
default_value: "X-Entitlements-Token"
- header_name: "X-Cus"
default_value: "X-Cus"
default_values_map:
- type_name: String
default_value: ""