Skip to content

Commit a16f0cb

Browse files
committed
fix: #10618 put updated samples under sourcecontrol
1 parent 6d9f923 commit a16f0cb

43 files changed

Lines changed: 112 additions & 75 deletions

File tree

Some content is hidden

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

docs/generators/fsharp-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
3434
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false|
3535
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
3636
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|
37-
|sourceFolder|source folder for generated code| |OpenAPI/src|
37+
|sourceFolder|source folder for generated code| |OpenAPI\src|
3838

3939
## IMPORT MAPPING
4040

docs/generators/fsharp-giraffe-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
3030
|packageVersion|F# package version.| |1.0.0|
3131
|returnICollection|Return ICollection<T> instead of the concrete type.| |false|
3232
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|
33-
|sourceFolder|source folder for generated code| |OpenAPI/src|
33+
|sourceFolder|source folder for generated code| |OpenAPI\src|
3434
|useCollection|Deserialize array types to Collection<T> instead of List<T>.| |false|
3535
|useDateTimeOffset|Use DateTimeOffset to model date-time properties| |false|
3636
|useSwashbuckle|Uses the Swashbuckle.AspNetCore NuGet package for documentation.| |false|

docs/generators/java-inflector.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
6666
|snapshotVersion|Uses a SNAPSHOT version.|<dl><dt>**true**</dt><dd>Use a SnapShot Version</dd><dt>**false**</dt><dd>Use a Release Version</dd></dl>|null|
6767
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
6868
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|
69-
|sourceFolder|source folder for generated code| |src/gen/java|
69+
|sourceFolder|source folder for generated code| |src\gen\java|
7070
|testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi|
7171
|useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false|
7272
|useOneOfInterfaces|whether to use a java interface to describe a set of oneOf options, where each option is a class that implements the interface| |false|

docs/generators/jaxrs-cxf-client.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
6666
|snapshotVersion|Uses a SNAPSHOT version.|<dl><dt>**true**</dt><dd>Use a SnapShot Version</dd><dt>**false**</dt><dd>Use a Release Version</dd></dl>|null|
6767
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
6868
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|
69-
|sourceFolder|source folder for generated code| |src/gen/java|
69+
|sourceFolder|source folder for generated code| |src\gen\java|
7070
|testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi|
7171
|useAbstractionForFiles|Use alternative types instead of java.io.File to allow passing bytes without a file on disk.| |false|
7272
|useBeanValidation|Use BeanValidation API annotations| |false|

docs/generators/swift5.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ These options may be applied as additional-properties (cli) or configOptions (pl
4949
|responseAs|Optionally use libraries to manage response. Currently PromiseKit, RxSwift, Result, Combine, AsyncAwait are available.| |null|
5050
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
5151
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|
52-
|swiftPackagePath|Set a custom source path instead of OpenAPIClient/Classes/OpenAPIs.| |null|
52+
|swiftPackagePath|Set a custom source path instead of OpenAPIClient\Classes\OpenAPIs.| |null|
5353
|swiftUseApiNamespace|Flag to make all the API classes inner-class of {{projectName}}API| |null|
5454
|useBacktickEscapes|Escape reserved words using backticks (default: false)| |false|
5555
|useClasses|Use final classes for models instead of structs (default: false)| |false|
5656
|useCustomDateWithoutTime|Uses a custom type to decode and encode dates without time information to support OpenAPIs date format (default: false)| |false|
5757
|useJsonEncodable|Make models conform to JSONEncodable protocol (default: true)| |true|
58-
|useSPMFileStructure|Use SPM file structure and set the source path to Sources/{{projectName}} (default: false).| |null|
58+
|useSPMFileStructure|Use SPM file structure and set the source path to Sources\{{projectName}} (default: false).| |null|
5959
|validatable|Make validation rules and validator for model properties (default: true)| |true|
6060

6161
## IMPORT MAPPING

docs/generators/swift6.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ These options may be applied as additional-properties (cli) or configOptions (pl
5151
|responseAs|Optionally use libraries to manage response. Currently AsyncAwait, Combine, Result, RxSwift, ObjcBlock, PromiseKit are available.| |null|
5252
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
5353
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true|
54-
|swiftPackagePath|Set a custom source path instead of Sources/{{projectName}}.| |null|
54+
|swiftPackagePath|Set a custom source path instead of Sources\{{projectName}}.| |null|
5555
|swiftUseApiNamespace|Flag to make all the API classes inner-class of {{projectName}}API| |null|
5656
|useBacktickEscapes|Escape reserved words using backticks (default: false)| |false|
5757
|useClasses|Use final classes for models instead of structs (default: false)| |false|
5858
|useCustomDateWithoutTime|Uses a custom type to decode and encode dates without time information to support OpenAPIs date format (default: false)| |false|
5959
|useJsonEncodable|Make models conform to JSONEncodable protocol (default: true)| |true|
60-
|useSPMFileStructure|Use SPM file structure and set the source path to Sources/{{projectName}} (default: true).| |null|
60+
|useSPMFileStructure|Use SPM file structure and set the source path to Sources\{{projectName}} (default: true).| |null|
6161
|validatable|Make validation rules and validator for model properties (default: true)| |true|
6262

6363
## IMPORT MAPPING

samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/api/PetApi.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@
2424
import jakarta.ws.rs.*;
2525
import jakarta.ws.rs.core.Response;
2626
import jakarta.ws.rs.core.MediaType;
27-
import org.apache.cxf.jaxrs.ext.multipart.*;
27+
// import org.apache.cxf.jaxrs.ext.multipart.*;
2828

2929

3030
import org.eclipse.microprofile.rest.client.annotation.RegisterProvider;
3131
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
3232

33+
3334
/**
3435
* OpenAPI Petstore
3536
*
@@ -120,7 +121,7 @@ public interface PetApi {
120121
@POST
121122
@Path("/{petId}")
122123
@Consumes({ "application/x-www-form-urlencoded" })
123-
void updatePetWithForm(@PathParam("petId") Long petId, @Multipart(value = "name", required = false) String name, @Multipart(value = "status", required = false) String status) throws ApiException, ProcessingException;
124+
void updatePetWithForm(@PathParam("petId") Long petId, @FormParam("name") String name, @FormParam("status") String status) throws ApiException, ProcessingException;
124125

125126
/**
126127
* uploads an image
@@ -132,5 +133,5 @@ public interface PetApi {
132133
@Path("/{petId}/uploadImage")
133134
@Consumes({ "multipart/form-data" })
134135
@Produces({ "application/json" })
135-
ModelApiResponse uploadFile(@PathParam("petId") Long petId, @Multipart(value = "additionalMetadata", required = false) String additionalMetadata, @Multipart(value = "file" , required = false) Attachment _fileDetail) throws ApiException, ProcessingException;
136+
ModelApiResponse uploadFile(@PathParam("petId") Long petId, @FormParam("additionalMetadata") String additionalMetadata, @FormParam("file") Attachment _fileDetail) throws ApiException, ProcessingException;
136137
}

samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/api/StoreApi.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@
2222
import jakarta.ws.rs.*;
2323
import jakarta.ws.rs.core.Response;
2424
import jakarta.ws.rs.core.MediaType;
25-
import org.apache.cxf.jaxrs.ext.multipart.*;
25+
// import org.apache.cxf.jaxrs.ext.multipart.*;
2626

2727

2828
import org.eclipse.microprofile.rest.client.annotation.RegisterProvider;
2929
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
3030

31+
3132
/**
3233
* OpenAPI Petstore
3334
*

samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml/src/main/java/org/openapitools/client/api/UserApi.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@
2323
import jakarta.ws.rs.*;
2424
import jakarta.ws.rs.core.Response;
2525
import jakarta.ws.rs.core.MediaType;
26-
import org.apache.cxf.jaxrs.ext.multipart.*;
26+
// import org.apache.cxf.jaxrs.ext.multipart.*;
2727

2828

2929
import org.eclipse.microprofile.rest.client.annotation.RegisterProvider;
3030
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
3131

32+
3233
/**
3334
* OpenAPI Petstore
3435
*

samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/api/AnotherFakeApi.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@
2222
import jakarta.ws.rs.*;
2323
import jakarta.ws.rs.core.Response;
2424
import jakarta.ws.rs.core.MediaType;
25-
import org.apache.cxf.jaxrs.ext.multipart.*;
25+
// import org.apache.cxf.jaxrs.ext.multipart.*;
2626

2727

2828
import org.eclipse.microprofile.rest.client.annotation.RegisterProvider;
2929
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
3030

31+
3132
/**
3233
* OpenAPI Petstore
3334
*

0 commit comments

Comments
 (0)