Skip to content

Commit

Permalink
Add SUPPORTING_FILES to generate for openapi client. (#1010)
Browse files Browse the repository at this point in the history
Fixed some typos
  • Loading branch information
altro3 authored Jul 16, 2024
1 parent d146a38 commit 5afa7bc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
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

0 comments on commit 5afa7bc

Please sign in to comment.