Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ricardo Zanini <[email protected]>
  • Loading branch information
patr1kt0th and ricardozanini authored Sep 4, 2023
1 parent ec07c66 commit bcda0fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ By default, the `PartFilename`'s value representing the filename is prefixed by
quarkus.openapi-generator.codegen.spec.my_multipart_requests_yml.use-field-name-in-part-filename=false
```

And in case the default `PartFilename` value is not suitable (e.g. a conversion service only allows/support specific extensions), the value can be set by using the `part-filename-value` property (gloablly or corresponding to your spec) in the `application.properties`, e.g.:
And in case the default `PartFilename` value is not suitable (e.g. a conversion service only allows/supports specific extensions), the value can be set by using the `part-filename-value` property (globally or corresponding to your spec) in the `application.properties`, e.g.:

```properties
quarkus.openapi-generator.codegen.spec.my_first_multipart_requests_yml.part-filename-value=".pdf"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public enum ConfigName {
ENABLE_SECURITY_GENERATION("enable-security-generation"),
GENERATE_PART_FILENAME("generate-part-filename"),
PART_FILENAME_VALUE("part-filename-value"),
USE_FILED_NAME_IN_PART_FILENAME("use-field-name-in-part-filename");
USE_FIELD_NAME_IN_PART_FILENAME("use-field-name-in-part-filename");

private final String name;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ protected void generate(final Config config, final Path openApiFilePath, final P
.ifPresent(generator::withPartFilenameValueConfig);

generator.withUseFieldNameInPartFilenameConfig(
getValues(config, openApiFilePath, CodegenConfig.ConfigName.USE_FILED_NAME_IN_PART_FILENAME,
getValues(config, openApiFilePath, CodegenConfig.ConfigName.USE_FIELD_NAME_IN_PART_FILENAME,
Boolean.class)
.orElse(true));

Expand Down

0 comments on commit bcda0fc

Please sign in to comment.