diff --git a/.github/workflows/on-dms-pullrequest.yml b/.github/workflows/on-dms-pullrequest.yml index a57c307c62..a9f540b470 100644 --- a/.github/workflows/on-dms-pullrequest.yml +++ b/.github/workflows/on-dms-pullrequest.yml @@ -178,6 +178,31 @@ jobs: path-replace-backslashes: 'true' reporter: dotnet-trx + - name: Download OpenAPI specs + run: | + mkdir specs + Invoke-WebRequest -Uri "http://localhost:8080/metadata/specifications/resources-spec.json" -OutFile "specs/resources-spec.json" + Invoke-WebRequest -Uri "http://localhost:8080/metadata/specifications/descriptors-spec.json" -OutFile "specs/descriptors-spec.json" + Invoke-WebRequest -Uri "http://localhost:8080/metadata/specifications/discovery-spec.json" -OutFile "specs/discovery-spec.json" + + - name: Validate Resources Spec + uses: swaggerexpert/swagger-editor-validate@54b85e2f5c1fcdee85308dd57cad8c8ec19d3970 + with: + definition-file: specs/resources-spec.json + continue-on-error: true + + - name: Validate Descriptors Spec + uses: swaggerexpert/swagger-editor-validate@54b85e2f5c1fcdee85308dd57cad8c8ec19d3970 + with: + definition-file: specs/descriptors-spec.json + continue-on-error: true + + - name: Validate Discovery Spec + uses: swaggerexpert/swagger-editor-validate@54b85e2f5c1fcdee85308dd57cad8c8ec19d3970 + with: + definition-file: specs/discovery-spec.json + continue-on-error: true + event_file: name: Upload Event File runs-on: ubuntu-latest diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 0ebd50f13b..44f4e4a6f7 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -9,10 +9,10 @@ - - - - + + + + diff --git a/src/dms/Dockerfile b/src/dms/Dockerfile index 4098d58c8c..20769bc507 100644 --- a/src/dms/Dockerfile +++ b/src/dms/Dockerfile @@ -53,13 +53,13 @@ FROM runtimebase AS setup ENV ASPNETCORE_HTTP_PORTS=8080 ENV CORE_PACKAGE=EdFi.DataStandard52.ApiSchema -ENV CORE_PACKAGE_VERSION=1.0.211 +ENV CORE_PACKAGE_VERSION=1.0.202 ENV TPDM_PACKAGE=EdFi.TPDM.ApiSchema -ENV TPDM_PACKAGE_VERSION=1.0.211 +ENV TPDM_PACKAGE_VERSION=1.0.202 ENV SAMPLE_PACKAGE=EdFi.Sample.ApiSchema -ENV SAMPLE_PACKAGE_VERSION=1.0.211 +ENV SAMPLE_PACKAGE_VERSION=1.0.202 ENV HOMOGRAPH_PACKAGE=EdFi.Homograph.ApiSchema -ENV HOMOGRAPH_PACKAGE_VERSION=1.0.211 +ENV HOMOGRAPH_PACKAGE_VERSION=1.0.202 ENV START_YEAR=1991 ENV END_YEAR=2037 ENV CURRENT_SCHOOL_YEAR=2025 diff --git a/src/dms/core/EdFi.DataManagementService.Core/UtilityService.cs b/src/dms/core/EdFi.DataManagementService.Core/UtilityService.cs index 5406b7cc31..a298bce6e6 100644 --- a/src/dms/core/EdFi.DataManagementService.Core/UtilityService.cs +++ b/src/dms/core/EdFi.DataManagementService.Core/UtilityService.cs @@ -27,7 +27,8 @@ public static partial class UtilityService public static partial Regex MinifyRegex(); //Use to avoid HTML escaping in output message that we construct - public static readonly JsonSerializerOptions SerializerOptions = - new() { Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping }; + public static readonly JsonSerializerOptions SerializerOptions = new() + { + Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping, + }; } - diff --git a/src/dms/frontend/EdFi.DataManagementService.Frontend.AspNetCore/Program.cs b/src/dms/frontend/EdFi.DataManagementService.Frontend.AspNetCore/Program.cs index 2f667fdc47..d3ffdfd020 100644 --- a/src/dms/frontend/EdFi.DataManagementService.Frontend.AspNetCore/Program.cs +++ b/src/dms/frontend/EdFi.DataManagementService.Frontend.AspNetCore/Program.cs @@ -107,11 +107,7 @@ async Task RetrieveAndCacheClaimSets(WebApplication app) } catch (Exception ex) { - // Aim to cache the claim set list during the application's startup - // process. However, if caching fails for any reason, we do not prevent - // DMS from loading. This approach is intended to optimize the process - // of loading claims set list from Configuration service without - // impacting the application's availability. + app.Logger.LogCritical(ex, "Retrieving and caching required claim sets failure"); } }