diff --git a/src/libs/AutoSDK/Models/SchemaContext.cs b/src/libs/AutoSDK/Models/SchemaContext.cs index 12b4ad2d4c..7937de95b0 100644 --- a/src/libs/AutoSDK/Models/SchemaContext.cs +++ b/src/libs/AutoSDK/Models/SchemaContext.cs @@ -18,6 +18,8 @@ public class SchemaContext public bool IsReference => ReferenceId != null; public SchemaContext? ResolvedReference { get; set; } + public IList Links { get; set; } = []; + public Hint? Hint { get; init; } public int? Index { get; init; } /// diff --git a/src/libs/AutoSDK/Sources/Data.cs b/src/libs/AutoSDK/Sources/Data.cs index ea02bbb4a4..927f469c68 100644 --- a/src/libs/AutoSDK/Sources/Data.cs +++ b/src/libs/AutoSDK/Sources/Data.cs @@ -48,6 +48,8 @@ public static Models.Data Prepare( context.ResolvedReference = componentSchemas[context.ReferenceId!]; context.Id = context.ResolvedReference.Id; context.TypeData = context.ResolvedReference.TypeData; + + context.ResolvedReference.Links.Add(context); } resolveReferencesTime.Stop();