forked from loafle/openapi-generator-original
[codegen] change x-oneOf-name to x-one-of-name. Consistency with naming conventions and x-all-of-name (#5820)
* change x-oneOf-name to x-one-of-name. * Add code comments * Add code comments
This commit is contained in:
parent
8e8471c1fd
commit
58908e6494
@ -1857,7 +1857,13 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the name of the oneOf schema
|
* Return the name of the oneOf schema.
|
||||||
|
*
|
||||||
|
* This name is used to set the value of CodegenProperty.openApiType.
|
||||||
|
*
|
||||||
|
* If the 'x-one-of-name' extension is specified in the OAS document, return that value.
|
||||||
|
* Otherwise, a name is constructed by creating a comma-separated list of all the names
|
||||||
|
* of the oneOf schemas.
|
||||||
*
|
*
|
||||||
* @param names List of names
|
* @param names List of names
|
||||||
* @param composedSchema composed schema
|
* @param composedSchema composed schema
|
||||||
|
Loading…
x
Reference in New Issue
Block a user