Skip to content

Commit

Permalink
Added definitions in config
Browse files Browse the repository at this point in the history
  • Loading branch information
juanvillacortac committed Mar 10, 2022
1 parent 6d2c196 commit 7b913fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/angular/generate.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
go run ../.. -c source.json
go run ../.. -c source.yml
12 changes: 1 addition & 11 deletions examples/angular/source.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
schema: schema.yml

definitions:
ts:
types:
Expand All @@ -21,12 +19,4 @@ generators:
- name: TS Service
template: templates/service.ts.go.tpl
output: generated/services/[model-].service.ts
types:
int32: number
int64: number
double: number
boolean: boolean
string: string
date: Date
helpers:
'"now()"': new Date()
from: ts

0 comments on commit 7b913fe

Please sign in to comment.