-
So I have this struct that tells me the type of database object with an enum The YAML is generating using object references for the types: - objectSchema: dbo
objectName: GetEOCData
type: *o1
potentialReferences: [] That should ideally be: - objectSchema: dbo
objectName: GetEOCData
type:
type: IL
name: Inline function
potentialReferences: [] This should be everywhere since the YAML is meant for humans. Also, how do I tell the serializer not to output empty |
Beta Was this translation helpful? Give feedback.
Answered by
webJose
Dec 30, 2023
Replies: 1 comment
-
Ok, for anyone else looking for these: ISerializer serializer = new SerializerBuilder()
.ConfigureDefaultValuesHandling(DefaultValuesHandling.OmitEmptyCollections) // This eliminates empty collections.
.DisableAliases() // This eliminates the */&o references
.WithNamingConvention(CamelCaseNamingConvention.Instance)
.Build();
``` |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
webJose
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok, for anyone else looking for these: