Skip to content

Commit

Permalink
Generate a doc string comment for the record
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Aug 10, 2024
1 parent 785e3a3 commit 1254adc
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 1254adc

Please sign in to comment.