Package org.openapitools.codegen.config
Enum MergedSpecBuilder.MergeMode
- java.lang.Object
-
- java.lang.Enum<MergedSpecBuilder.MergeMode>
-
- org.openapitools.codegen.config.MergedSpecBuilder.MergeMode
-
- All Implemented Interfaces:
Serializable,Comparable<MergedSpecBuilder.MergeMode>
- Enclosing class:
- MergedSpecBuilder
public static enum MergedSpecBuilder.MergeMode extends Enum<MergedSpecBuilder.MergeMode>
Controls how multiple spec files are merged together.REF(default) — original behaviour: generates a lightweight "index" spec where each path is a$refpointing back to the originating spec file. Components stay in their original files and are resolved at generation time. This preserves backward compatibility.DEEP— opt-in: fully parses and inlines all paths and components into a single self-contained spec. Detects and handles component/path+method conflicts according toMergedSpecBuilder.MergeConflictStrategy.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MergedSpecBuilder.MergeModevalueOf(String name)Returns the enum constant of this type with the specified name.static MergedSpecBuilder.MergeMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REF
public static final MergedSpecBuilder.MergeMode REF
Original $ref-based shallow merge (default, backward-compatible).
-
DEEP
public static final MergedSpecBuilder.MergeMode DEEP
Full deep merge: inlines all components and paths into one spec.
-
-
Method Detail
-
values
public static MergedSpecBuilder.MergeMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MergedSpecBuilder.MergeMode c : MergedSpecBuilder.MergeMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MergedSpecBuilder.MergeMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-