Skip to content

Commit

Permalink
Generate a doc string comment for the record (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome authored Aug 12, 2024
1 parent 6c5079e commit 225a680
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/generator/scheme.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
)

const schemeTemplate = `@namespace("{{ .Namespace }}") protocol {{ .Protocol }} {
/** {{ .Record }} is the telemetry data for the product. */
@df_datatype("{{ .DataFabricDataType }}") record {{ .Record }} {
/** The field that identifies what type of data this is. */
string dataType;
Expand Down
1 change: 1 addition & 0 deletions cmd/generator/tests/data.avdl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@namespace("gateway.nginx.org") protocol NGFProductTelemetry {
/** Data is the telemetry data for the product. */
@df_datatype("ngf-product-telemetry") record Data {
/** The field that identifies what type of data this is. */
string dataType;
Expand Down

0 comments on commit 225a680

Please sign in to comment.