Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed May 12, 2020
1 parent ccaea78 commit 19bdd84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The hierarchy traversed is the swagger2.0 file constructs in JSON
e.g. the end points, methods, query param and payload information is available in the jinja2 template.

The code that can be generated should take into account:
![DevelopmentProcess](https://openconnectivityfoundation.github.io/swagger2x/data/generic-stack.png)
![GenericStack](https://openconnectivityfoundation.github.io/swagger2x/data/generic-stack.png)

Therefore a template is an mix of the library calls, the supported operating system in the used language mixed with the jinja2 template language to generate the code.
jinja2 takes the JSON swagger information and make it iteratable by looping over the end points, methods etc. and uses then the info to fill in the library/os calls in the used language.
Expand Down
4 changes: 2 additions & 2 deletions data/structure.puml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ ditaa
|
|- templates
|
|- <template name>
|- (template name)
|
|--- <template file>.jinja2
|--- (template file).jinja2
|
|--- other files (will be copied to output)

Expand Down

0 comments on commit 19bdd84

Please sign in to comment.