Skip to content

Commit e57b2b1

Browse files
committed
barcode lib 2.5, fix swagger not showing type and data fields
1 parent bd9fd1f commit e57b2b1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ plugins {
1717
}
1818

1919
group = "com.pnuema.java.barcode"
20-
version "2.4"
20+
version "2.5"
2121

2222
dependencies {
2323
implementation(libs.barcode)

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[versions]
22
#libs
3-
barcode = "2.4"
3+
barcode = "2.5"
44
openapi-ui = "2.3.0"
55

66
#plugins

src/main/java/com/pnuema/java/barcode/barcodeapi/controllers/v1/BarcodeController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public class BarcodeController extends AbstractV1Resource {
2525
@GetMapping(value = "/barcode/{type}/data/{data}")
2626
@Cacheable("barcodes")
2727
public ResponseEntity<byte[]> getBarcodeImage(
28-
@PathVariable String type,
29-
@PathVariable String data,
28+
@PathVariable(name = "type") String type,
29+
@PathVariable(name = "data") String data,
3030
@RequestParam(name = "w") Optional<Integer> width,
3131
@RequestParam(name = "h") Optional<Integer> height,
3232
@RequestParam(name = "label") Optional<Boolean> includeLabel,

0 commit comments

Comments
 (0)