Skip to content

Commit

Permalink
[codegen] change x-oneOf-name to x-one-of-name. Consistency with nami…
Browse files Browse the repository at this point in the history
…ng conventions and x-all-of-name (OpenAPITools#5820)

* change x-oneOf-name to x-one-of-name.

* Add code comments

* Add code comments
  • Loading branch information
sebastien-rosset authored and MikailBag committed May 31, 2020
1 parent fcca482 commit a9f99a1
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1857,7 +1857,13 @@ public String toAnyOfName(List<String> names, ComposedSchema composedSchema) {
}

/**
* 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 composedSchema composed schema
Expand Down

0 comments on commit a9f99a1

Please sign in to comment.