-
Notifications
You must be signed in to change notification settings - Fork 0
/
codema.yaml
40 lines (37 loc) · 960 Bytes
/
codema.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
moduleDir: ./out
templateDir: ./codema-templates
apis:
- package: booking
label: booking
microservices:
- label: booking
- label: bookingOracle
- label: bookingAttribute
- label: eagerBooking
targets:
- label: relay
templateDir: /relay-fn
each: true
defaultVersion: v0.1.0
apis:
- label: booking
outPath: /{{.Label}}/{{.Microservice.Label}}_relay_fn_generated.go
- label: grpc
templatePath: /grpc.template
apis:
- label: booking
outPath: /{{.Label}}/grpc_generated.go
- label: repo
templatePath: /repo.template
each: true
apis:
- label: booking
outPath: /{{.Api.LabelKebab}}/{{.Microservice.Label}}_repo.codema.go
skipLabels:
- booking
- bookingOracle
- eagerBooking
args:
bookingAttribute:
UpdateableFieldsBsonToGoFieldMap:
participant_owner_uids: ParticipantOwnerUIDs