Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing attribute sent along with the data #40

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

pleshakov
Copy link
Contributor

Proposed changes

Problem:

F5 telemetry service requires the dataType attribute present, which must be equal to the @df_datatype annotation in the scheme.

Solution:

Add dataType attribute to the generated Attributes() method.

Note: the attribute only required for the struct for which we generate the scheme. In the Attribute() method of any embedded structs, dataType attribute must not be set.

CLOSES #39

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING
    guide
  • I have proven my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have ensured the README is up to date
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch on my own fork

Problem:

F5 telemetry service requires the dataType attribute present, which
must be equal to the `@df_datatype` annotation in the scheme.

Solution:

Add dataType attribute to the generated Attributes() method.

Note: the attribute only required for the struct for which we generate
the scheme. In the Attribute() method of any embedded structs,
dataType attribute must not be set.

CLOSES #39
@pleshakov pleshakov added the bug An issue reporting a potential bug label Mar 6, 2024
@pleshakov pleshakov requested a review from a team as a code owner March 6, 2024 22:22
cmd/generator/code.go Outdated Show resolved Hide resolved
@pleshakov pleshakov merged commit a5ecce5 into main Mar 7, 2024
11 checks passed
@pleshakov pleshakov deleted the fix/add-missing-attribute branch March 7, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue reporting a potential bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix missing attribute sent along with the data
4 participants