-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rienafairefr
committed
Aug 22, 2018
1 parent
4e9024c
commit 0ee5694
Showing
4 changed files
with
20 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 9 additions & 3 deletions
12
...penapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatingGenerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
package org.openapitools.codegen.api; | ||
|
||
/* | ||
interface for getting the templates | ||
/** | ||
* interface to the full template content | ||
* implementers might take into account the -t cli option, | ||
* look in the resources for a language specific template, etc | ||
*/ | ||
public interface TemplatingGenerator { | ||
|
||
// returns the template content by name | ||
/** | ||
* returns the template content by name | ||
* @param name the template name (e.g. model.mustache) | ||
* @return the contents of that template | ||
*/ | ||
String getFullTemplateContents(String name); | ||
|
||
} |