diff --git a/build/Version.props b/build/Version.props index 9ab8d752d4..a5d010ffb8 100644 --- a/build/Version.props +++ b/build/Version.props @@ -3,8 +3,8 @@ 4.3.0 - 6.4.1 - 7.0.2 + 6.5.0 + 7.1.0 5.2.1 0.4.0 1.1.0 diff --git a/src/Tgstation.Server.Api/Models/RevisionInformation.cs b/src/Tgstation.Server.Api/Models/RevisionInformation.cs index 1d05a22755..8e115fb922 100644 --- a/src/Tgstation.Server.Api/Models/RevisionInformation.cs +++ b/src/Tgstation.Server.Api/Models/RevisionInformation.cs @@ -18,6 +18,6 @@ namespace Tgstation.Server.Api.Models /// /// The s made from the /// - public ICollection? CompileJobs { get; set; } + public ICollection? CompileJobs { get; set; } } } diff --git a/src/Tgstation.Server.Api/Models/User.cs b/src/Tgstation.Server.Api/Models/User.cs index e6f50acb27..60ecb7225d 100644 --- a/src/Tgstation.Server.Api/Models/User.cs +++ b/src/Tgstation.Server.Api/Models/User.cs @@ -16,6 +16,6 @@ /// /// The who created this /// - public User? CreatedBy { get; set; } + public Internal.User? CreatedBy { get; set; } } } \ No newline at end of file diff --git a/src/Tgstation.Server.Host/Core/SwaggerConfiguration.cs b/src/Tgstation.Server.Host/Core/SwaggerConfiguration.cs index cadd4c3e5f..fa4c191023 100644 --- a/src/Tgstation.Server.Host/Core/SwaggerConfiguration.cs +++ b/src/Tgstation.Server.Host/Core/SwaggerConfiguration.cs @@ -133,6 +133,14 @@ namespace Tgstation.Server.Host.Core swaggerGenOptions.DocumentFilter(); swaggerGenOptions.SchemaFilter(); + swaggerGenOptions.CustomSchemaIds(type => + { + if (type == typeof(Api.Models.Internal.User)) + return "ShallowUser"; + + return type.Name; + }); + swaggerGenOptions.AddSecurityDefinition(PasswordSecuritySchemeId, new OpenApiSecurityScheme { In = ParameterLocation.Header, diff --git a/src/Tgstation.Server.Host/Models/RevisionInformation.cs b/src/Tgstation.Server.Host/Models/RevisionInformation.cs index 17c676990b..02dd5edef3 100644 --- a/src/Tgstation.Server.Host/Models/RevisionInformation.cs +++ b/src/Tgstation.Server.Host/Models/RevisionInformation.cs @@ -48,9 +48,9 @@ namespace Tgstation.Server.Host.Models OriginCommitSha = OriginCommitSha, PrimaryTestMerge = PrimaryTestMerge?.ToApi(), ActiveTestMerges = ActiveTestMerges.Select(x => x.TestMerge.ToApi()).ToList(), - CompileJobs = CompileJobs.Select(x => new Api.Models.CompileJob + CompileJobs = CompileJobs.Select(x => new Api.Models.EntityId { - Id = x.Id // anti recursion measure + Id = x.Id }).ToList() }; }