Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SUPPORTING_FILES to generate for openapi client. #1010

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public void client(String name, Provider<RegularFile> definition, Action<? super
configureCommonProperties(name, task, clientSpec, definition);
task.setDescription("Generates OpenAPI client from an OpenAPI definition");
configureClientTask(clientSpec, task);
task.getOutputKinds().add(CodegenConstants.APIS);
task.getOutputKinds().addAll(CodegenConstants.APIS, CodegenConstants.SUPPORTING_FILES);
});
var models = project.getTasks().register(generateModelsTaskName(name), OpenApiClientGenerator.class, task -> {
configureCommonProperties(name, task, clientSpec, definition);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import java.io.Serializable;

/**
* A model that can be used to specify parameter mappings during the OpenAPI gneration
* A model that can be used to specify parameter mappings during the OpenAPI generation
*
* <p>An equivalent to Micronaut OpenAPI's ParameterMapping but
* without using classes from that dependency so that we can isolate
Expand Down Expand Up @@ -57,7 +57,7 @@ public final class ParameterMappingModel implements Serializable {
private final boolean isValidated;

/**
* Create a prameter mapping
* Create a parameter mapping
*
* @param name The name of the parameter as described by the name field in specification.
* @param location The location of parameter. Path parameters cannot be mapped, as this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

public abstract class OpenApiClientWorkAction extends AbstractOpenApiWorkAction<OpenApiClientWorkAction.ClientParameters> {

interface ClientParameters extends AbstractOpenApiWorkAction.OpenApiParameters {
protected interface ClientParameters extends AbstractOpenApiWorkAction.OpenApiParameters {

Property<String> getClientId();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

public abstract class OpenApiServerWorkAction extends AbstractOpenApiWorkAction<OpenApiServerWorkAction.ServerParameters> {

interface ServerParameters extends OpenApiParameters {
protected interface ServerParameters extends OpenApiParameters {

Property<String> getControllerPackage();

Expand Down
Loading