Skip to content

Commit 5f02901

Browse files
committed
Update dependencies and enhance API documentation
- Updated `go.mod` and `go.sum` to include new dependencies and versions for improved functionality. - Regenerated Swagger documentation to reflect recent changes in API endpoints and response structures, ensuring clarity and usability. - Enhanced error handling in various components to provide more informative feedback during operations, improving overall user experience. These changes improve the application's reliability and maintainability, providing better tools for managing dependencies and API interactions. Signed-off-by: dviejokfs <dviejo@kfs.es>
1 parent 72f0308 commit 5f02901

File tree

18 files changed

+204
-123
lines changed

18 files changed

+204
-123
lines changed

docs/docs.go

Lines changed: 27 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Package docs Code generated by swaggo/swag at 2025-08-05 12:39:35.825252 +0200 CEST m=+4.541097126. DO NOT EDIT
1+
// Package docs Code generated by swaggo/swag at 2025-08-06 09:23:14.506210668 +0200 CEST m=+4.793752287. DO NOT EDIT
22
package docs
33

44
import "github.com/swaggo/swag"
@@ -12817,12 +12817,14 @@ const docTemplate = `{
1281712817
"description": "Compiled contract bytecode",
1281812818
"type": "array",
1281912819
"items": {
12820-
"type": "integer"
12820+
"type": "integer",
12821+
"format": "int32"
1282112822
}
1282212823
},
1282312824
"chainID": {
1282412825
"description": "Chain ID for the target network",
12825-
"type": "integer"
12826+
"type": "integer",
12827+
"format": "int64"
1282612828
},
1282712829
"constructorArgs": {
1282812830
"description": "Constructor arguments for the contract",
@@ -12904,12 +12906,6 @@ const docTemplate = `{
1290412906
"endorsement_policy": {
1290512907
"type": "string"
1290612908
},
12907-
"environment_variables": {
12908-
"type": "object",
12909-
"additionalProperties": {
12910-
"type": "string"
12911-
}
12912-
},
1291312909
"id": {
1291412910
"type": "integer"
1291512911
},
@@ -12971,12 +12967,6 @@ const docTemplate = `{
1297112967
"endorsement_policy": {
1297212968
"type": "string"
1297312969
},
12974-
"environment_variables": {
12975-
"type": "object",
12976-
"additionalProperties": {
12977-
"type": "string"
12978-
}
12979-
},
1298012970
"id": {
1298112971
"type": "integer"
1298212972
},
@@ -13016,7 +13006,8 @@ const docTemplate = `{
1301613006
"additionalProperties": {
1301713007
"type": "array",
1301813008
"items": {
13019-
"type": "integer"
13009+
"type": "integer",
13010+
"format": "int32"
1302013011
}
1302113012
}
1302213013
}
@@ -13074,7 +13065,8 @@ const docTemplate = `{
1307413065
"additionalProperties": {
1307513066
"type": "array",
1307613067
"items": {
13077-
"type": "integer"
13068+
"type": "integer",
13069+
"format": "int32"
1307813070
}
1307913071
}
1308013072
}
@@ -13143,13 +13135,6 @@ const docTemplate = `{
1314313135
"description": "Endorsement policy",
1314413136
"type": "string"
1314513137
},
13146-
"environment_variables": {
13147-
"description": "Environment variables for the chaincode container",
13148-
"type": "object",
13149-
"additionalProperties": {
13150-
"type": "string"
13151-
}
13152-
},
1315313138
"sequence": {
1315413139
"description": "Sequence\nrequired: true",
1315513140
"type": "integer"
@@ -13277,7 +13262,8 @@ const docTemplate = `{
1327713262
"type": "string"
1327813263
},
1327913264
"sequence": {
13280-
"type": "integer"
13265+
"type": "integer",
13266+
"format": "int64"
1328113267
},
1328213268
"version": {
1328313269
"type": "string"
@@ -13308,7 +13294,8 @@ const docTemplate = `{
1330813294
"description": "Serialized CollectionConfigPackage",
1330913295
"type": "array",
1331013296
"items": {
13311-
"type": "integer"
13297+
"type": "integer",
13298+
"format": "int32"
1331213299
}
1331313300
},
1331413301
"endorsementPolicy": {
@@ -13327,7 +13314,8 @@ const docTemplate = `{
1332713314
"type": "string"
1332813315
},
1332913316
"sequence": {
13330-
"type": "integer"
13317+
"type": "integer",
13318+
"format": "int64"
1333113319
},
1333213320
"version": {
1333313321
"type": "string"
@@ -13344,7 +13332,8 @@ const docTemplate = `{
1334413332
"description": "Serialized CollectionConfigPackage",
1334513333
"type": "array",
1334613334
"items": {
13347-
"type": "integer"
13335+
"type": "integer",
13336+
"format": "int32"
1334813337
}
1334913338
},
1335013339
"endorsementPolicy": {
@@ -13360,7 +13349,8 @@ const docTemplate = `{
1336013349
"type": "string"
1336113350
},
1336213351
"sequence": {
13363-
"type": "integer"
13352+
"type": "integer",
13353+
"format": "int64"
1336413354
},
1336513355
"version": {
1336613356
"type": "string"
@@ -13392,7 +13382,8 @@ const docTemplate = `{
1339213382
"description": "Chaincode package bytes",
1339313383
"type": "array",
1339413384
"items": {
13395-
"type": "integer"
13385+
"type": "integer",
13386+
"format": "int32"
1339613387
}
1339713388
},
1339813389
"peer": {
@@ -13416,7 +13407,8 @@ const docTemplate = `{
1341613407
"type": "string"
1341713408
},
1341813409
"sequence": {
13419-
"type": "integer"
13410+
"type": "integer",
13411+
"format": "int64"
1342013412
},
1342113413
"version": {
1342213414
"type": "string"
@@ -13566,13 +13558,6 @@ const docTemplate = `{
1356613558
"description": "Endorsement policy",
1356713559
"type": "string"
1356813560
},
13569-
"environment_variables": {
13570-
"description": "Environment variables for the chaincode container",
13571-
"type": "object",
13572-
"additionalProperties": {
13573-
"type": "string"
13574-
}
13575-
},
1357613561
"sequence": {
1357713562
"description": "Sequence\nrequired: true",
1357813563
"type": "integer"
@@ -16341,7 +16326,8 @@ const docTemplate = `{
1634116326
"items": {
1634216327
"type": "array",
1634316328
"items": {
16344-
"type": "integer"
16329+
"type": "integer",
16330+
"format": "int32"
1634516331
}
1634616332
}
1634716333
},
@@ -16506,6 +16492,7 @@ const docTemplate = `{
1650616492
},
1650716493
"models.Duration": {
1650816494
"type": "integer",
16495+
"format": "int64",
1650916496
"enum": [
1651016497
-9223372036854775808,
1651116498
9223372036854775807,
@@ -17796,6 +17783,7 @@ const docTemplate = `{
1779617783
},
1779717784
"time.Duration": {
1779817785
"type": "integer",
17786+
"format": "int64",
1779917787
"enum": [
1780017788
-9223372036854775808,
1780117789
9223372036854775807,

docs/swagger.json

Lines changed: 26 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -12815,12 +12815,14 @@
1281512815
"description": "Compiled contract bytecode",
1281612816
"type": "array",
1281712817
"items": {
12818-
"type": "integer"
12818+
"type": "integer",
12819+
"format": "int32"
1281912820
}
1282012821
},
1282112822
"chainID": {
1282212823
"description": "Chain ID for the target network",
12823-
"type": "integer"
12824+
"type": "integer",
12825+
"format": "int64"
1282412826
},
1282512827
"constructorArgs": {
1282612828
"description": "Constructor arguments for the contract",
@@ -12902,12 +12904,6 @@
1290212904
"endorsement_policy": {
1290312905
"type": "string"
1290412906
},
12905-
"environment_variables": {
12906-
"type": "object",
12907-
"additionalProperties": {
12908-
"type": "string"
12909-
}
12910-
},
1291112907
"id": {
1291212908
"type": "integer"
1291312909
},
@@ -12969,12 +12965,6 @@
1296912965
"endorsement_policy": {
1297012966
"type": "string"
1297112967
},
12972-
"environment_variables": {
12973-
"type": "object",
12974-
"additionalProperties": {
12975-
"type": "string"
12976-
}
12977-
},
1297812968
"id": {
1297912969
"type": "integer"
1298012970
},
@@ -13014,7 +13004,8 @@
1301413004
"additionalProperties": {
1301513005
"type": "array",
1301613006
"items": {
13017-
"type": "integer"
13007+
"type": "integer",
13008+
"format": "int32"
1301813009
}
1301913010
}
1302013011
}
@@ -13072,7 +13063,8 @@
1307213063
"additionalProperties": {
1307313064
"type": "array",
1307413065
"items": {
13075-
"type": "integer"
13066+
"type": "integer",
13067+
"format": "int32"
1307613068
}
1307713069
}
1307813070
}
@@ -13141,13 +13133,6 @@
1314113133
"description": "Endorsement policy",
1314213134
"type": "string"
1314313135
},
13144-
"environment_variables": {
13145-
"description": "Environment variables for the chaincode container",
13146-
"type": "object",
13147-
"additionalProperties": {
13148-
"type": "string"
13149-
}
13150-
},
1315113136
"sequence": {
1315213137
"description": "Sequence\nrequired: true",
1315313138
"type": "integer"
@@ -13275,7 +13260,8 @@
1327513260
"type": "string"
1327613261
},
1327713262
"sequence": {
13278-
"type": "integer"
13263+
"type": "integer",
13264+
"format": "int64"
1327913265
},
1328013266
"version": {
1328113267
"type": "string"
@@ -13306,7 +13292,8 @@
1330613292
"description": "Serialized CollectionConfigPackage",
1330713293
"type": "array",
1330813294
"items": {
13309-
"type": "integer"
13295+
"type": "integer",
13296+
"format": "int32"
1331013297
}
1331113298
},
1331213299
"endorsementPolicy": {
@@ -13325,7 +13312,8 @@
1332513312
"type": "string"
1332613313
},
1332713314
"sequence": {
13328-
"type": "integer"
13315+
"type": "integer",
13316+
"format": "int64"
1332913317
},
1333013318
"version": {
1333113319
"type": "string"
@@ -13342,7 +13330,8 @@
1334213330
"description": "Serialized CollectionConfigPackage",
1334313331
"type": "array",
1334413332
"items": {
13345-
"type": "integer"
13333+
"type": "integer",
13334+
"format": "int32"
1334613335
}
1334713336
},
1334813337
"endorsementPolicy": {
@@ -13358,7 +13347,8 @@
1335813347
"type": "string"
1335913348
},
1336013349
"sequence": {
13361-
"type": "integer"
13350+
"type": "integer",
13351+
"format": "int64"
1336213352
},
1336313353
"version": {
1336413354
"type": "string"
@@ -13390,7 +13380,8 @@
1339013380
"description": "Chaincode package bytes",
1339113381
"type": "array",
1339213382
"items": {
13393-
"type": "integer"
13383+
"type": "integer",
13384+
"format": "int32"
1339413385
}
1339513386
},
1339613387
"peer": {
@@ -13414,7 +13405,8 @@
1341413405
"type": "string"
1341513406
},
1341613407
"sequence": {
13417-
"type": "integer"
13408+
"type": "integer",
13409+
"format": "int64"
1341813410
},
1341913411
"version": {
1342013412
"type": "string"
@@ -13564,13 +13556,6 @@
1356413556
"description": "Endorsement policy",
1356513557
"type": "string"
1356613558
},
13567-
"environment_variables": {
13568-
"description": "Environment variables for the chaincode container",
13569-
"type": "object",
13570-
"additionalProperties": {
13571-
"type": "string"
13572-
}
13573-
},
1357413559
"sequence": {
1357513560
"description": "Sequence\nrequired: true",
1357613561
"type": "integer"
@@ -16339,7 +16324,8 @@
1633916324
"items": {
1634016325
"type": "array",
1634116326
"items": {
16342-
"type": "integer"
16327+
"type": "integer",
16328+
"format": "int32"
1634316329
}
1634416330
}
1634516331
},
@@ -16504,6 +16490,7 @@
1650416490
},
1650516491
"models.Duration": {
1650616492
"type": "integer",
16493+
"format": "int64",
1650716494
"enum": [
1650816495
-9223372036854775808,
1650916496
9223372036854775807,
@@ -17794,6 +17781,7 @@
1779417781
},
1779517782
"time.Duration": {
1779617783
"type": "integer",
17784+
"format": "int64",
1779717785
"enum": [
1779817786
-9223372036854775808,
1779917787
9223372036854775807,

0 commit comments

Comments
 (0)