You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.adoc
+134Lines changed: 134 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,8 @@ openApiGenerate {
96
96
97
97
Please refer to the article https://medium.com/@irinasouthwell_220/accelerate-flutter-development-with-openapi-and-dart-code-generation-1f16f8329a6a[on Medium].
98
98
99
+
Please not the versions of all the libraries have moved on since then.
100
+
99
101
==== Additional Properties
100
102
101
103
Additional properties allow you to customise how code is generated and we honour 2 of them above the normal ones.
@@ -108,6 +110,7 @@ of Dart to 2.12 and generate null safe code. Using the nullSafe-array-default, i
108
110
as being `required` in your OpenAPI "required" but making them always generate a default value of `[]`. This ends up
109
111
being considerably easier to use.
110
112
- `listAnyOf=false` - this will turn _off_ AnyOf support. This would be a bit weird, but you can do it if you want.
113
+
- `disableCopyWith` - if this is specified, then the copyWith functionality will be disabled. On complex OpenAPI definitions, the combinations of null safety and nested classes can cause incomplete or invalid code to be generated. We recommend disabling the generation of the copy-with code for that purpose. It is simply a convenience for coding and is not required as part of the API.
111
114
112
115
the normal ones include:
113
116
@@ -247,6 +250,126 @@ behind as you generate.
247
250
</plugin>
248
251
----
249
252
253
+
=== I need to do something special with the Dio layer!
254
+
255
+
The DioClientDelegate we provide can be fully overridden - in Dart all classes are also interfaces so if you wish
256
+
to do special things in the underlying "guts" of the Dio library you can easily do so. Caching is an example, one
257
+
of our users has an https://gist.github.com/Maczuga/255e822a09f8d3dd8284096e5cda3003[example]:
258
+
259
+
Ensure you include 304 as a valid return type for cached APIs.
0 commit comments