Skip to content

Commit d142160

Browse files
committed
Fixes to codegen config as Apex
1 parent efaf0a8 commit d142160

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/tutorial-basics/configure-codegen.mdx

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ An Apex configuration is YAML that defines which files are generated and by whic
1919
<TabItem value="apex">
2020

2121
```apexlang
22+
namespace "apexlang.config.v1"
23+
2224
"The top level elements of the configuration."
2325
type Configuration {
2426
"The path to the apex specification file."
@@ -36,7 +38,7 @@ type Target {
3638
"The name of the exported visitor class that generates the file contents."
3739
visitorClass: string,
3840
"When true, the file is only generated if it does not exist. This is useful for scafolded files."
39-
ifNotExists: boolean = false,
41+
ifNotExists: bool = false,
4042
"Target-level configuration (optional)."
4143
config: {string: any}?
4244
"Commands to execute that relate to this target (e.g., other code generation tools)."

docs/tutorial-basics/generate-api-boilerplate.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
1717
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
1818
```
1919

20-
## Adding Go API code generators
20+
## Add Go API code generators
2121

2222
Update `apex.yaml` with the contents below.
2323

0 commit comments

Comments
 (0)