Implements using debug-info contracts version in codex-contracts plugin

This commit is contained in:
ThatBen 2025-04-22 19:49:03 +02:00
parent 6e45c638e7
commit 9da87709c5
No known key found for this signature in database
GPG Key ID: 62C543548433D43E
3 changed files with 5 additions and 4 deletions

View File

@ -165,13 +165,11 @@ namespace CodexClient
private DebugInfoVersion Map(CodexOpenApi.CodexVersion obj)
{
throw new Exception("waiting for new codex image with contracts revision");
return new DebugInfoVersion
{
Version = obj.Version,
Revision = obj.Revision,
Contracts = "aaa"
Contracts = obj.Contracts
};
}

View File

@ -124,6 +124,9 @@ components:
revision:
type: string
example: 0c647d8
contracts:
type: string
example: 0b537c7
PeersTable:
type: object

View File

@ -10,7 +10,7 @@ namespace CodexPlugin
public class ApiChecker
{
// <INSERT-OPENAPI-YAML-HASH>
private const string OpenApiYamlHash = "1A-F7-DF-C3-E1-C6-98-FF-32-20-21-9B-26-40-B0-51-08-35-C2-E7-DB-41-49-93-60-A9-CE-47-B5-AD-3D-A3";
private const string OpenApiYamlHash = "06-B9-41-E8-C8-6C-DE-01-86-83-F3-9A-E4-AC-E7-30-D9-E6-64-60-E0-21-81-9E-4E-C5-93-77-2C-71-79-14";
private const string OpenApiFilePath = "/codex/openapi.yaml";
private const string DisableEnvironmentVariable = "CODEXPLUGIN_DISABLE_APICHECK";