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
fix: Remove deprecated skipIfSpecIsUnchanged and skipSpecDepMessage (#193)
- Removed skipSpecDepMessage constant completely
- Removed skipIfSpecIsUnchanged field from Openapi and GeneratorArguments classes
- Removed all conditional logic checking skipIfSpecIsUnchanged
- Cleaned up related test cases and example code
- Simplified cache handling logic in openapi_generator_runner
This completes the removal of the deprecated caching mechanism as announced
in the deprecation notice.
Copy file name to clipboardExpand all lines: openapi-generator-annotations/lib/src/openapi_generator_annotations_base.dart
-18Lines changed: 0 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,6 @@ import 'dart:io';
4
4
import'package:crypto/crypto.dart';
5
5
import'package:meta/meta.dart';
6
6
7
-
const skipSpecDepMessage =
8
-
'This will be removed in next major release. This generator will always run'
9
-
'if changes are detected on local spec file. see https://github.com/gibahjoe/openapi-generator-dart#deprecation--breaking-change-notice - Use `forceAlwaysRun` '
10
-
'to always run the generator regardless of spec changes.';
11
7
12
8
classOpenapi {
13
9
/// Additional properties to pass to the compiler (CSV)
@@ -149,22 +145,10 @@ class Openapi {
149
145
/// Note: Setting this to `true` can lead to merge conflicts in team environments,
150
146
/// as each developer may end up modifying the annotated file.
151
147
///
152
-
/// This setting is different from [skipIfSpecIsUnchanged], which only regenerates
153
-
/// the client SDK if it detects changes in the OpenAPI specification.
154
148
///
155
149
/// Defaults to [false].
156
150
finalbool forceAlwaysRun;
157
151
158
-
/// Skips execution if the OpenAPI specification file is different from a cached copy.
159
-
///
160
-
/// For remote specifications, the file will be downloaded and cached locally.
161
-
/// The cache is then compared to the remote file to detect any changes.
162
-
///
163
-
/// If set to false, a cached copy of the OpenAPI specification file is not kept.
0 commit comments