File tree Expand file tree Collapse file tree 5 files changed +11
-8
lines changed
ProjectPlugins/CodexPlugin Expand file tree Collapse file tree 5 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ namespace CodexPlugin
10
10
public class ApiChecker
11
11
{
12
12
// <INSERT-OPENAPI-YAML-HASH>
13
- private const string OpenApiYamlHash = "09-53-C3-A6-31-A5-0C-8B-53-1C-3D-C7-2B-1E- 85-C7-17-60-54-43- 01-C4-49-4E-D9-68-35-7D-F7-41-13-B5 " ;
13
+ private const string OpenApiYamlHash = "34-B5-DA-26-40-76-B8-D8-8E-7D-9C-17- 85-C6-B0-63-55-8D-C6- 01-0B-96-BB-7C-BD-53-E5-32-07-ED-29-92 " ;
14
14
private const string OpenApiFilePath = "/codex/openapi.yaml" ;
15
15
private const string DisableEnvironmentVariable = "CODEXPLUGIN_DISABLE_APICHECK" ;
16
16
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ namespace CodexPlugin
7
7
{
8
8
public class CodexContainerRecipe : ContainerRecipeFactory
9
9
{
10
- private const string DefaultDockerImage = "codexstorage/nim-codex:0.1.8 -dist-tests" ;
10
+ private const string DefaultDockerImage = "codexstorage/nim-codex:latest -dist-tests" ;
11
11
public const string ApiPortTag = "codex_api_port" ;
12
12
public const string ListenPortTag = "codex_listen_port" ;
13
13
public const string MetricsPortTag = "codex_metrics_port" ;
Original file line number Diff line number Diff line change @@ -182,8 +182,8 @@ private Manifest MapManifest(CodexOpenApi.ManifestItem manifest)
182
182
return new Manifest
183
183
{
184
184
BlockSize = new ByteSize ( Convert . ToInt64 ( manifest . BlockSize ) ) ,
185
- OriginalBytes = new ByteSize ( Convert . ToInt64 ( manifest . OriginalBytes ) ) ,
186
- RootHash = manifest . RootHash ,
185
+ OriginalBytes = new ByteSize ( Convert . ToInt64 ( manifest . DatasetSize ) ) ,
186
+ RootHash = manifest . TreeCid ,
187
187
Protected = manifest . Protected
188
188
} ;
189
189
}
Original file line number Diff line number Diff line change @@ -344,10 +344,10 @@ components:
344
344
ManifestItem :
345
345
type : object
346
346
properties :
347
- rootHash :
347
+ treeCid :
348
348
$ref : " #/components/schemas/Cid"
349
- description : " Root hash of the content "
350
- originalBytes :
349
+ description : " Unique data identifier "
350
+ datasetSize :
351
351
type : integer
352
352
format : int64
353
353
description : " Length of original content in bytes"
@@ -359,15 +359,18 @@ components:
359
359
description : " Indicates if content is protected by erasure-coding"
360
360
filename :
361
361
type : string
362
+ nullable : true
362
363
description : " The original name of the uploaded content (optional)"
363
364
example : codex.png
364
365
mimetype :
365
366
type : string
367
+ nullable : true
366
368
description : " The original mimetype of the uploaded content (optional)"
367
369
example : image/png
368
370
uploadedAt :
369
371
type : integer
370
372
format : int64
373
+ nullable : true
371
374
description : " The UTC upload timestamp in seconds"
372
375
example : 1729244192
373
376
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ private CheckResponse SuccessMessage(DataItem content)
66
66
success : true ,
67
67
title : $ "Success: '{ content . Cid } '",
68
68
error : "" ,
69
- $ "size: { content . Manifest . OriginalBytes } bytes",
69
+ $ "size: { content . Manifest . DatasetSize } bytes",
70
70
$ "blockSize: { content . Manifest . BlockSize } bytes",
71
71
$ "protected: { content . Manifest . Protected } "
72
72
) ;
You can’t perform that action at this time.
0 commit comments