Skip to content

Commit a4b45fe

Browse files
committed
0.12
1 parent d1b0428 commit a4b45fe

51 files changed

Lines changed: 221 additions & 95 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# openapi-java-client
22

33
FileApi
4-
- API version: 0.11
5-
- Build date: 2025-11-09T20:35:58.158910555+01:00[Europe/Brussels]
4+
- API version: 0.12
5+
- Build date: 2025-11-10T17:45:30.149167520+01:00[Europe/Brussels]
66
- Generator version: 7.17.0
77

88
File Api V1
@@ -41,7 +41,7 @@ Add this dependency to your project's POM:
4141
<dependency>
4242
<groupId>org.openapitools</groupId>
4343
<artifactId>openapi-java-client</artifactId>
44-
<version>0.11</version>
44+
<version>0.12</version>
4545
<scope>compile</scope>
4646
</dependency>
4747
```
@@ -57,7 +57,7 @@ Add this dependency to your project's build file:
5757
}
5858
5959
dependencies {
60-
implementation "org.openapitools:openapi-java-client:0.11"
60+
implementation "org.openapitools:openapi-java-client:0.12"
6161
}
6262
```
6363

@@ -71,7 +71,7 @@ mvn clean package
7171

7272
Then manually install the following JARs:
7373

74-
* `target/openapi-java-client-0.11.jar`
74+
* `target/openapi-java-client-0.12.jar`
7575
* `target/lib/*.jar`
7676

7777
## Getting Started

api/openapi.yaml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ info:
44
license:
55
name: ""
66
title: FileApi
7-
version: "0.11"
7+
version: "0.12"
88
servers:
99
- url: /
1010
paths:
@@ -413,6 +413,30 @@ paths:
413413
post:
414414
operationId: upload_update
415415
parameters:
416+
- explode: true
417+
in: query
418+
name: correlation_id
419+
required: false
420+
schema:
421+
nullable: true
422+
type: string
423+
style: form
424+
- explode: true
425+
in: query
426+
name: is_public
427+
required: false
428+
schema:
429+
nullable: true
430+
type: boolean
431+
style: form
432+
- explode: true
433+
in: query
434+
name: without_thumbnail
435+
required: false
436+
schema:
437+
nullable: true
438+
type: boolean
439+
style: form
416440
- explode: false
417441
in: path
418442
name: id
@@ -432,7 +456,7 @@ paths:
432456
application/json:
433457
schema:
434458
$ref: "#/components/schemas/FileUploadV2"
435-
description: Upload a file
459+
description: Upload (and update) a file
436460
tags:
437461
- upload::routes
438462
x-content-type: multipart/form-data
@@ -542,6 +566,8 @@ components:
542566
file:
543567
format: binary
544568
type: string
569+
file_upload:
570+
$ref: "#/components/schemas/FileUploadV2"
545571
required:
546572
- file
547573
RenderRequest:
@@ -649,6 +675,8 @@ components:
649675
file:
650676
format: binary
651677
type: string
678+
file_upload:
679+
$ref: "#/components/schemas/FileUploadV2"
652680
required:
653681
- file
654682

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'java'
44
apply plugin: 'com.diffplug.spotless'
55

66
group = 'org.openapitools'
7-
version = '0.11'
7+
version = '0.12'
88

99
buildscript {
1010
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "org.openapitools",
44
name := "openapi-java-client",
5-
version := "0.11",
5+
version := "0.12",
66
scalaVersion := "2.11.12",
77
scalacOptions ++= Seq("-feature"),
88
compile / javacOptions ++= Seq("-Xlint:deprecation"),

docs/OpenApiDocUploadFormSimpleFile.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
| Name | Type | Description | Notes |
99
|------------ | ------------- | ------------- | -------------|
1010
|**_file** | **File** | | |
11+
|**fileUpload** | [**FileUploadV2**](FileUploadV2.md) | | [optional] |
1112

1213

1314

docs/UploadRoutesApi.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ No authorization required
497497

498498
<a id="uploadUpdate"></a>
499499
# **uploadUpdate**
500-
> FileUploadV2 uploadUpdate(id, _file)
500+
> FileUploadV2 uploadUpdate(id, _file, correlationId, isPublic, withoutThumbnail, fileUpload)
501501
502502

503503

@@ -518,8 +518,12 @@ public class Example {
518518
UploadRoutesApi apiInstance = new UploadRoutesApi(defaultClient);
519519
String id = "id_example"; // String |
520520
File _file = new File("/path/to/file"); // File |
521+
String correlationId = "correlationId_example"; // String |
522+
Boolean isPublic = true; // Boolean |
523+
Boolean withoutThumbnail = true; // Boolean |
524+
FileUploadV2 fileUpload = new FileUploadV2(); // FileUploadV2 |
521525
try {
522-
FileUploadV2 result = apiInstance.uploadUpdate(id, _file);
526+
FileUploadV2 result = apiInstance.uploadUpdate(id, _file, correlationId, isPublic, withoutThumbnail, fileUpload);
523527
System.out.println(result);
524528
} catch (ApiException e) {
525529
System.err.println("Exception when calling UploadRoutesApi#uploadUpdate");
@@ -538,6 +542,10 @@ public class Example {
538542
|------------- | ------------- | ------------- | -------------|
539543
| **id** | **String**| | |
540544
| **_file** | **File**| | |
545+
| **correlationId** | **String**| | [optional] |
546+
| **isPublic** | **Boolean**| | [optional] |
547+
| **withoutThumbnail** | **Boolean**| | [optional] |
548+
| **fileUpload** | [**FileUploadV2**](FileUploadV2.md)| | [optional] |
541549

542550
### Return type
543551

@@ -555,5 +563,5 @@ No authorization required
555563
### HTTP response details
556564
| Status code | Description | Response headers |
557565
|-------------|-------------|------------------|
558-
| **200** | Upload a file | - |
566+
| **200** | Upload (and update) a file | - |
559567

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>openapi-java-client</artifactId>
66
<packaging>jar</packaging>
77
<name>openapi-java-client</name>
8-
<version>0.11</version>
8+
<version>0.12</version>
99
<url>https://github.com/openapitools/openapi-generator</url>
1010
<description>OpenAPI Java</description>
1111
<scm>

src/main/java/org/openapitools/client/ApiCallback.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* FileApi
33
* File Api V1
44
*
5-
* The version of the OpenAPI document: 0.11
5+
* The version of the OpenAPI document: 0.12
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/org/openapitools/client/ApiClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* FileApi
33
* File Api V1
44
*
5-
* The version of the OpenAPI document: 0.11
5+
* The version of the OpenAPI document: 0.12
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -139,7 +139,7 @@ protected void init() {
139139
json = new JSON();
140140

141141
// Set default User-Agent.
142-
setUserAgent("OpenAPI-Generator/0.11/java");
142+
setUserAgent("OpenAPI-Generator/0.12/java");
143143

144144
authentications = new HashMap<String, Authentication>();
145145
}

src/main/java/org/openapitools/client/ApiException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* FileApi
33
* File Api V1
44
*
5-
* The version of the OpenAPI document: 0.11
5+
* The version of the OpenAPI document: 0.12
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,7 +22,7 @@
2222
* <p>ApiException class.</p>
2323
*/
2424
@SuppressWarnings("serial")
25-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-09T20:35:58.158910555+01:00[Europe/Brussels]", comments = "Generator version: 7.17.0")
25+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-10T17:45:30.149167520+01:00[Europe/Brussels]", comments = "Generator version: 7.17.0")
2626
public class ApiException extends Exception {
2727
private static final long serialVersionUID = 1L;
2828

0 commit comments

Comments
 (0)