Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ bool ValidateMinValue(int value)
/// Converts schedule definition into cron expression
/// </summary>
/// <param name="scheduleDefinition">Schedule definition</param>
/// <returns>The cron expression<returns>
/// <returns>The cron expression</returns>
public static string ScheduleDefinitionToCron(ScheduleDefinition scheduleDefinition)
{
var second = ConvertToCronString(scheduleDefinition.second);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2396,7 +2396,12 @@ private static UnrealType GetUnrealTypeForField(out UnrealType nonOverridenType,
: UNREAL_MAP + $"<{UNREAL_STRING}, {dataType}>");
}
case ("object", _, _, _) when schema.Reference == null && !schema.AdditionalPropertiesAllowed:
throw new Exception("Object fields must either reference some other schema or must be a map/dictionary!");
if (parentDoc.Components.Schemas.TryGetValue(schema.Title, out var innerSchema) || parentDoc.Components.Schemas.TryGetValue( Uri.EscapeDataString(schema.Title), out innerSchema))
{
return GetUnrealTypeForField(out nonOverridenType, context, parentDoc, innerSchema, fieldDeclarationHandle, flags);
}
throw new Exception(
"Object fields must either reference some other schema or must be a map/dictionary!");
case ("array", _, _, _):
{
var isReference = schema.Items.Reference != null;
Expand Down
Loading
Loading