Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Update snapshots
  • Loading branch information
SteveDunn committed Mar 10, 2026
commit 18923e2ff441dc7f6c95a19b2a2e6bb7d778adac

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,19 @@ public static partial class VogenOpenApiExtensions
if (context.JsonTypeInfo.Type == typeof(global::Whatever._casting_public_partial_classExplicitImplicitfloat))
{
schema.Type = "number";
schema.Format = "float";
}

if (context.JsonTypeInfo.Type.IsArray && context.JsonTypeInfo.Type.GetElementType() == typeof(global::Whatever._casting_public_partial_classExplicitImplicitfloat))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "number" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "number", Format = "float" };
}

if (context.JsonTypeInfo.Type.IsGenericType && context.JsonTypeInfo.Type.GetGenericArguments().Length == 1 && context.JsonTypeInfo.Type.GetGenericArguments()[0] == typeof(global::Whatever._casting_public_partial_classExplicitImplicitfloat))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "number" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "number", Format = "float" };
}

return global::System.Threading.Tasks.Task.CompletedTask;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,19 @@ public static partial class VogenOpenApiExtensions
if (context.JsonTypeInfo.Type == typeof(global::Whatever._casting_public_sealed_partial_record_classImplicitNoneshort))
{
schema.Type = "integer";
schema.Format = "int32";
}

if (context.JsonTypeInfo.Type.IsArray && context.JsonTypeInfo.Type.GetElementType() == typeof(global::Whatever._casting_public_sealed_partial_record_classImplicitNoneshort))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

if (context.JsonTypeInfo.Type.IsGenericType && context.JsonTypeInfo.Type.GetGenericArguments().Length == 1 && context.JsonTypeInfo.Type.GetGenericArguments()[0] == typeof(global::Whatever._casting_public_sealed_partial_record_classImplicitNoneshort))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

return global::System.Threading.Tasks.Task.CompletedTask;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,36 +38,38 @@ public static partial class VogenOpenApiExtensions
if (context.JsonTypeInfo.Type == typeof(global::Whatever._casting_public_partial_record_structExplicitExplicitshort))
{
schema.Type = "integer";
schema.Format = "int32";
}

if (context.JsonTypeInfo.Type.IsArray && context.JsonTypeInfo.Type.GetElementType() == typeof(global::Whatever._casting_public_partial_record_structExplicitExplicitshort))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

if (context.JsonTypeInfo.Type.IsGenericType && context.JsonTypeInfo.Type.GetGenericArguments().Length == 1 && context.JsonTypeInfo.Type.GetGenericArguments()[0] == typeof(global::Whatever._casting_public_partial_record_structExplicitExplicitshort))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

if (context.JsonTypeInfo.Type == typeof(global::System.Nullable<global::Whatever._casting_public_partial_record_structExplicitExplicitshort>))
{
schema.Type = "integer";
schema.Nullable = true;
schema.Format = "int32";
}

if (context.JsonTypeInfo.Type.IsArray && context.JsonTypeInfo.Type.GetElementType() == typeof(global::System.Nullable<global::Whatever._casting_public_partial_record_structExplicitExplicitshort>))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

if (context.JsonTypeInfo.Type.IsGenericType && context.JsonTypeInfo.Type.GetGenericArguments().Length == 1 && context.JsonTypeInfo.Type.GetGenericArguments()[0] == typeof(global::System.Nullable<global::Whatever._casting_public_partial_record_structExplicitExplicitshort>))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

return global::System.Threading.Tasks.Task.CompletedTask;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,36 +38,38 @@ public static partial class VogenOpenApiExtensions
if (context.JsonTypeInfo.Type == typeof(global::Whatever._casting_public_partial_record_structImplicitExplicitshort))
{
schema.Type = "integer";
schema.Format = "int32";
}

if (context.JsonTypeInfo.Type.IsArray && context.JsonTypeInfo.Type.GetElementType() == typeof(global::Whatever._casting_public_partial_record_structImplicitExplicitshort))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

if (context.JsonTypeInfo.Type.IsGenericType && context.JsonTypeInfo.Type.GetGenericArguments().Length == 1 && context.JsonTypeInfo.Type.GetGenericArguments()[0] == typeof(global::Whatever._casting_public_partial_record_structImplicitExplicitshort))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

if (context.JsonTypeInfo.Type == typeof(global::System.Nullable<global::Whatever._casting_public_partial_record_structImplicitExplicitshort>))
{
schema.Type = "integer";
schema.Nullable = true;
schema.Format = "int32";
}

if (context.JsonTypeInfo.Type.IsArray && context.JsonTypeInfo.Type.GetElementType() == typeof(global::System.Nullable<global::Whatever._casting_public_partial_record_structImplicitExplicitshort>))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

if (context.JsonTypeInfo.Type.IsGenericType && context.JsonTypeInfo.Type.GetGenericArguments().Length == 1 && context.JsonTypeInfo.Type.GetGenericArguments()[0] == typeof(global::System.Nullable<global::Whatever._casting_public_partial_record_structImplicitExplicitshort>))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

return global::System.Threading.Tasks.Task.CompletedTask;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,19 @@ public static partial class VogenOpenApiExtensions
if (context.JsonTypeInfo.Type == typeof(global::Whatever._casting_public_partial_classImplicitExplicitshort))
{
schema.Type = "integer";
schema.Format = "int32";
}

if (context.JsonTypeInfo.Type.IsArray && context.JsonTypeInfo.Type.GetElementType() == typeof(global::Whatever._casting_public_partial_classImplicitExplicitshort))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

if (context.JsonTypeInfo.Type.IsGenericType && context.JsonTypeInfo.Type.GetGenericArguments().Length == 1 && context.JsonTypeInfo.Type.GetGenericArguments()[0] == typeof(global::Whatever._casting_public_partial_classImplicitExplicitshort))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

return global::System.Threading.Tasks.Task.CompletedTask;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,36 +38,38 @@ public static partial class VogenOpenApiExtensions
if (context.JsonTypeInfo.Type == typeof(global::Whatever._casting_public_partial_structImplicitNoneshort))
{
schema.Type = "integer";
schema.Format = "int32";
}

if (context.JsonTypeInfo.Type.IsArray && context.JsonTypeInfo.Type.GetElementType() == typeof(global::Whatever._casting_public_partial_structImplicitNoneshort))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

if (context.JsonTypeInfo.Type.IsGenericType && context.JsonTypeInfo.Type.GetGenericArguments().Length == 1 && context.JsonTypeInfo.Type.GetGenericArguments()[0] == typeof(global::Whatever._casting_public_partial_structImplicitNoneshort))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

if (context.JsonTypeInfo.Type == typeof(global::System.Nullable<global::Whatever._casting_public_partial_structImplicitNoneshort>))
{
schema.Type = "integer";
schema.Nullable = true;
schema.Format = "int32";
}

if (context.JsonTypeInfo.Type.IsArray && context.JsonTypeInfo.Type.GetElementType() == typeof(global::System.Nullable<global::Whatever._casting_public_partial_structImplicitNoneshort>))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

if (context.JsonTypeInfo.Type.IsGenericType && context.JsonTypeInfo.Type.GetGenericArguments().Length == 1 && context.JsonTypeInfo.Type.GetGenericArguments()[0] == typeof(global::System.Nullable<global::Whatever._casting_public_partial_structImplicitNoneshort>))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

return global::System.Threading.Tasks.Task.CompletedTask;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,19 @@ public static partial class VogenOpenApiExtensions
if (context.JsonTypeInfo.Type == typeof(global::Whatever._casting_public_sealed_partial_recordImplicitExplicitfloat))
{
schema.Type = "number";
schema.Format = "float";
}

if (context.JsonTypeInfo.Type.IsArray && context.JsonTypeInfo.Type.GetElementType() == typeof(global::Whatever._casting_public_sealed_partial_recordImplicitExplicitfloat))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "number" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "number", Format = "float" };
}

if (context.JsonTypeInfo.Type.IsGenericType && context.JsonTypeInfo.Type.GetGenericArguments().Length == 1 && context.JsonTypeInfo.Type.GetGenericArguments()[0] == typeof(global::Whatever._casting_public_sealed_partial_recordImplicitExplicitfloat))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "number" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "number", Format = "float" };
}

return global::System.Threading.Tasks.Task.CompletedTask;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,36 +38,38 @@ public static partial class VogenOpenApiExtensions
if (context.JsonTypeInfo.Type == typeof(global::Whatever._casting_public_readonly_partial_record_structImplicitImplicitshort))
{
schema.Type = "integer";
schema.Format = "int32";
}

if (context.JsonTypeInfo.Type.IsArray && context.JsonTypeInfo.Type.GetElementType() == typeof(global::Whatever._casting_public_readonly_partial_record_structImplicitImplicitshort))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

if (context.JsonTypeInfo.Type.IsGenericType && context.JsonTypeInfo.Type.GetGenericArguments().Length == 1 && context.JsonTypeInfo.Type.GetGenericArguments()[0] == typeof(global::Whatever._casting_public_readonly_partial_record_structImplicitImplicitshort))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

if (context.JsonTypeInfo.Type == typeof(global::System.Nullable<global::Whatever._casting_public_readonly_partial_record_structImplicitImplicitshort>))
{
schema.Type = "integer";
schema.Nullable = true;
schema.Format = "int32";
}

if (context.JsonTypeInfo.Type.IsArray && context.JsonTypeInfo.Type.GetElementType() == typeof(global::System.Nullable<global::Whatever._casting_public_readonly_partial_record_structImplicitImplicitshort>))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

if (context.JsonTypeInfo.Type.IsGenericType && context.JsonTypeInfo.Type.GetGenericArguments().Length == 1 && context.JsonTypeInfo.Type.GetGenericArguments()[0] == typeof(global::System.Nullable<global::Whatever._casting_public_readonly_partial_record_structImplicitImplicitshort>))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

return global::System.Threading.Tasks.Task.CompletedTask;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,19 @@ public static partial class VogenOpenApiExtensions
if (context.JsonTypeInfo.Type == typeof(global::Whatever._casting_public_sealed_partial_recordNoneExplicitfloat))
{
schema.Type = "number";
schema.Format = "float";
}

if (context.JsonTypeInfo.Type.IsArray && context.JsonTypeInfo.Type.GetElementType() == typeof(global::Whatever._casting_public_sealed_partial_recordNoneExplicitfloat))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "number" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "number", Format = "float" };
}

if (context.JsonTypeInfo.Type.IsGenericType && context.JsonTypeInfo.Type.GetGenericArguments().Length == 1 && context.JsonTypeInfo.Type.GetGenericArguments()[0] == typeof(global::Whatever._casting_public_sealed_partial_recordNoneExplicitfloat))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "number" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "number", Format = "float" };
}

return global::System.Threading.Tasks.Task.CompletedTask;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,19 @@ public static partial class VogenOpenApiExtensions
if (context.JsonTypeInfo.Type == typeof(global::Whatever._casting_public_sealed_partial_record_classExplicitNoneshort))
{
schema.Type = "integer";
schema.Format = "int32";
}

if (context.JsonTypeInfo.Type.IsArray && context.JsonTypeInfo.Type.GetElementType() == typeof(global::Whatever._casting_public_sealed_partial_record_classExplicitNoneshort))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

if (context.JsonTypeInfo.Type.IsGenericType && context.JsonTypeInfo.Type.GetGenericArguments().Length == 1 && context.JsonTypeInfo.Type.GetGenericArguments()[0] == typeof(global::Whatever._casting_public_sealed_partial_record_classExplicitNoneshort))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

return global::System.Threading.Tasks.Task.CompletedTask;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,19 @@ public static partial class VogenOpenApiExtensions
if (context.JsonTypeInfo.Type == typeof(global::Whatever._casting_public_partial_classExplicitNoneshort))
{
schema.Type = "integer";
schema.Format = "int32";
}

if (context.JsonTypeInfo.Type.IsArray && context.JsonTypeInfo.Type.GetElementType() == typeof(global::Whatever._casting_public_partial_classExplicitNoneshort))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

if (context.JsonTypeInfo.Type.IsGenericType && context.JsonTypeInfo.Type.GetGenericArguments().Length == 1 && context.JsonTypeInfo.Type.GetGenericArguments()[0] == typeof(global::Whatever._casting_public_partial_classExplicitNoneshort))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

return global::System.Threading.Tasks.Task.CompletedTask;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,36 +38,38 @@ public static partial class VogenOpenApiExtensions
if (context.JsonTypeInfo.Type == typeof(global::Whatever._casting_public_partial_record_structExplicitImplicitshort))
{
schema.Type = "integer";
schema.Format = "int32";
}

if (context.JsonTypeInfo.Type.IsArray && context.JsonTypeInfo.Type.GetElementType() == typeof(global::Whatever._casting_public_partial_record_structExplicitImplicitshort))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

if (context.JsonTypeInfo.Type.IsGenericType && context.JsonTypeInfo.Type.GetGenericArguments().Length == 1 && context.JsonTypeInfo.Type.GetGenericArguments()[0] == typeof(global::Whatever._casting_public_partial_record_structExplicitImplicitshort))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

if (context.JsonTypeInfo.Type == typeof(global::System.Nullable<global::Whatever._casting_public_partial_record_structExplicitImplicitshort>))
{
schema.Type = "integer";
schema.Nullable = true;
schema.Format = "int32";
}

if (context.JsonTypeInfo.Type.IsArray && context.JsonTypeInfo.Type.GetElementType() == typeof(global::System.Nullable<global::Whatever._casting_public_partial_record_structExplicitImplicitshort>))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

if (context.JsonTypeInfo.Type.IsGenericType && context.JsonTypeInfo.Type.GetGenericArguments().Length == 1 && context.JsonTypeInfo.Type.GetGenericArguments()[0] == typeof(global::System.Nullable<global::Whatever._casting_public_partial_record_structExplicitImplicitshort>))
{
schema.Type = "array";
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer" };
schema.Items = new Microsoft.OpenApi.Models.OpenApiSchema { Type = "integer", Format = "int32" };
}

return global::System.Threading.Tasks.Task.CompletedTask;
Expand Down
Loading
Loading