Skip to content

Commit fc7455f

Browse files
committed
v2.1.1 updates
1 parent 69d4659 commit fc7455f

File tree

6 files changed

+418
-218
lines changed

6 files changed

+418
-218
lines changed

RELEASENOTES.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# MATLAB Generator *for OpenAPI*
22

3-
## Version 2.1.0 (February 25th 2024)
3+
## Version 2.1.1 (March 11th 2025)
4+
5+
* Improved semantic version handling
6+
* Bug fix to setup download jar step
7+
8+
## Version 2.1.0 (February 25th 2025)
49

510
* Added support for generation based on a directory of several specs
611
* Added optional GitLab integration

Software/MATLAB/app/system/+openapi/+internal/@Jars/downloadGeneratorJar.m

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
% Example:
88
% jarPath = openapi.internal.Jars.downloadGeneratorJar("6.6.0")
99

10-
% (c) 2024 MathWorks, Inc.
10+
% (c) 2024-2025 MathWorks, Inc.
1111

1212
arguments
1313
version string {mustBeTextScalar, mustBeNonzeroLengthText}
@@ -37,6 +37,14 @@
3737
if options.verbose
3838
fprintf("Downloading: %s\n", jarURL)
3939
end
40+
if ~isfolder(options.destinationDir)
41+
[status, msg] = mkdir(options.destinationDir);
42+
if status ~= 1
43+
error("Directory creation failed for: %s\nMessage: %s", options.destinationDir, msg);
44+
else
45+
fprintf("Created directory: %s\n", options.destinationDir);
46+
end
47+
end
4048
websave(jarPath, jarURL, options.weboptions);
4149
end
4250
end

0 commit comments

Comments
 (0)