observation tags proto messages

This commit is contained in:
Sepehr authored and Jim committed 2023-09-22 11:31:42 -04:00
1 parent b64eadedbf
commit 14af8e8cd7
51 files changed
+458 -454

No files matched your search

+4
View File
@@ -39,6 +39,10 @@ func run(swaggerPath string) error {
// - When gotags appears on its own.
// - When gotags appears at the end of another comment (preceded by \n\n).
for _, prefix := range []string{"\\n\\n", ""} {
// The two cases we're replacing gotags with empty message:
// - When class gotags is set with eventstream gotags.
// - When class gotags is set by itself.
swaggerBytes = bytes.ReplaceAll(swaggerBytes, []byte(fmt.Sprintf("%s@gotags: %sclass:\\\"%s\\\" eventstream:\\\"observation\\\"%s", prefix, wrapper, classification, wrapper)), nil)
swaggerBytes = bytes.ReplaceAll(swaggerBytes, []byte(fmt.Sprintf("%s@gotags: %sclass:\\\"%s\\\"%s", prefix, wrapper, classification, wrapper)), nil)
}
}