In Locode the system seems to register numeric ID’s to be displayed as an arbitrary other field, which isn’t helpful (or meaningful) if it’s something like a description field.
Is there a default to tell it not to do this, or do I have to code in the identity of all the Id fields into TypeFilter to prevent this?
It looks like this sort of thing works, but it’s pretty messy. Is there a better way?:
TypeFilter = (type, request) =>
{
type.Properties?
.Where(p =>
p.Items != null
&& p.Items.TryGetValue("ColumnSchema", out var schema)
&& (schema as ColumnSchema)!.IsKey)
.Each(p2 => p2
.AddAttribute(new RefAttribute())
);