We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
name
This affects properties/telemetry, components, and relationships, all of which have a name property.
e.g. Using the following code:
[TwinRelationship(Name = "rel_runs_lines", DisplayName = "Runs Production Lines")] public IList<ProductionLine> RunsLines { get; } = new List<ProductionLine>();
The serialization outputs with the name runsLines instead of rel_runs_lines as expected:
runsLines
rel_runs_lines
{ "target": "dtmi:factoryexample:models:productionline;1", "name": "runsLines", "@type": "Relationship", "displayName": "Runs Production Lines" }
The output should have "name": "rel_runs_lines"
"name": "rel_runs_lines"
The fix is:
e.g.
propertyAttribute!.Name ?? info.Name.ToCamelCase()
Also need to fix the Schema override so it works for Telemetry (not just Property).
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This affects properties/telemetry, components, and relationships, all of which have a name property.
e.g. Using the following code:
The serialization outputs with the name
runsLines
instead ofrel_runs_lines
as expected:The output should have
"name": "rel_runs_lines"
The fix is:
e.g.
Also need to fix the Schema override so it works for Telemetry (not just Property).
The text was updated successfully, but these errors were encountered: