Skip to content

Commit 1b27115

Browse files
authored
Removing unnecessary Optional in SpecItemConfig for type and import mappings (#165)
1 parent 01b18dc commit 1b27115

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deployment/src/main/java/io/quarkiverse/openapi/generator/deployment/SpecItemConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ public class SpecItemConfig {
3232
* given OAS datatype (the keys of this map)
3333
*/
3434
@ConfigItem(name = "type-mappings")
35-
public Optional<Map<String, String>> typeMappings;
35+
public Map<String, String> typeMappings;
3636

3737
/**
3838
* Import Mapping is an OpenAPI Generator configuration specifying which Java types (the values) should be
3939
* imported when a given OAS datatype (the keys of this map) is used
4040
*/
4141
@ConfigItem(name = "import-mappings")
42-
public Optional<Map<String, String>> importMappings;
42+
public Map<String, String> importMappings;
4343

4444
/**
4545
* The specified annotations will be added to the generated model files

0 commit comments

Comments
 (0)