Skip to content

Commit

Permalink
fix: fixed spec not caching
Browse files Browse the repository at this point in the history
  • Loading branch information
gibahjoe committed Jan 19, 2024
1 parent 1232ea0 commit 9bd7a80
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions openapi-generator-annotations/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,5 @@ Network Trash Folder
Temporary Items
.apdisk
.idea/

**/*.mocks.dart
3 changes: 2 additions & 1 deletion openapi-generator/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,5 @@ example/.dart_tool

# Generated test output
test/specs/test-cached.json
test/specs/localstack/**
test/specs/localstack/**
**/*.mocks.dart
3 changes: 3 additions & 0 deletions openapi-generator/lib/src/gen_on_spec_changes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ Future<void> cacheSpec({
if (outputFile.existsSync()) {
log('Found cached asset updating');
} else {
if (!outputFile.parent.existsSync()) {
outputFile.parent.createSync(recursive: true);
}
log('No previous openapi-generated cache found. Creating cache');
}

Expand Down

0 comments on commit 9bd7a80

Please sign in to comment.