Skip to content

Commit

Permalink
Model templates refactoring for readability -- NO CHANGE IN FUNCTIONA…
Browse files Browse the repository at this point in the history
…LITY

* reshuffled serializers templates in a separate directory, split the templates by schema type
* reindented model templates, using {{- }}, fixed some issues with template blank gobbling
* revamped docstring (fixed unattended line feed, removed unused hardcoded reference)
* regenerated examples

* contributes to forthcoming fix for go-swagger#2189

Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
  • Loading branch information
fredbi committed Jan 29, 2020
1 parent 01680fe commit 1eca1ef
Show file tree
Hide file tree
Showing 72 changed files with 1,361 additions and 1,248 deletions.
3 changes: 2 additions & 1 deletion examples/authentication/models/customer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion examples/authentication/models/error.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion examples/authentication/models/principal.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion examples/authentication/models/social_id.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 12 additions & 17 deletions examples/authentication/restapi/operations/auth_sample_api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion examples/composed-auth/models/error.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion examples/composed-auth/models/item.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion examples/composed-auth/models/order.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion examples/composed-auth/models/principal.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1eca1ef

Please sign in to comment.