Compare commits

...

7 Commits
master ... uint

Author SHA1 Message Date
0324a57e5c
kinda done 2025-04-09 15:36:45 -07:00
ca750669db
t 2025-04-09 15:23:27 -07:00
ccf1ff6866
wip 2025-04-09 15:23:27 -07:00
1f1deacc2d
submissions: filter AddInt method for type safety 2025-04-09 15:23:27 -07:00
d8095cee83
openapi: generate 2025-04-09 15:23:07 -07:00
28985bed55
openapi: date remains int64 2025-04-09 15:23:03 -07:00
a03e812e46
openapi: use unsigned integers 2025-04-09 14:51:29 -07:00
23 changed files with 1376 additions and 1361 deletions

@ -47,14 +47,14 @@ paths:
required: true required: true
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
- name: ValidatedModelVersion - name: ValidatedModelVersion
in: query in: query
required: true required: true
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
responses: responses:
"204": "204":
@ -202,14 +202,14 @@ paths:
required: true required: true
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
- name: ValidatedModelVersion - name: ValidatedModelVersion
in: query in: query
required: true required: true
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
responses: responses:
"204": "204":
@ -291,7 +291,7 @@ paths:
required: true required: true
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
responses: responses:
"204": "204":
@ -321,13 +321,13 @@ paths:
in: query in: query
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
- name: Policy - name: Policy
in: query in: query
schema: schema:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
responses: responses:
"200": "200":
@ -397,13 +397,13 @@ paths:
in: query in: query
schema: schema:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
- name: ResourceID - name: ResourceID
in: query in: query
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
responses: responses:
"200": "200":
@ -474,7 +474,7 @@ components:
description: The unique identifier for a submission. description: The unique identifier for a submission.
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
OperationID: OperationID:
name: OperationID name: OperationID
@ -483,7 +483,7 @@ components:
description: The unique identifier for a long-running operation. description: The unique identifier for a long-running operation.
schema: schema:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
SubmissionID: SubmissionID:
name: SubmissionID name: SubmissionID
@ -492,7 +492,7 @@ components:
description: The unique identifier for a submission. description: The unique identifier for a submission.
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
ScriptID: ScriptID:
name: ScriptID name: ScriptID
@ -501,7 +501,7 @@ components:
description: The unique identifier for a script. description: The unique identifier for a script.
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
Page: Page:
name: Page name: Page
@ -509,7 +509,7 @@ components:
required: true required: true
schema: schema:
type: integer type: integer
format: int32 format: uint32
minimum: 1 minimum: 1
Limit: Limit:
name: Limit name: Limit
@ -517,7 +517,7 @@ components:
required: true required: true
schema: schema:
type: integer type: integer
format: int32 format: uint32
minimum: 1 minimum: 1
maximum: 100 maximum: 100
schemas: schemas:
@ -528,7 +528,7 @@ components:
properties: properties:
MapfixID: MapfixID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
SubmissionID: SubmissionID:
required: required:
@ -537,7 +537,7 @@ components:
properties: properties:
SubmissionID: SubmissionID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
ScriptID: ScriptID:
required: required:
@ -546,7 +546,7 @@ components:
properties: properties:
ScriptID: ScriptID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
ScriptPolicyID: ScriptPolicyID:
required: required:
@ -555,7 +555,7 @@ components:
properties: properties:
ScriptPolicyID: ScriptPolicyID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
MapfixCreate: MapfixCreate:
required: required:
@ -571,11 +571,11 @@ components:
properties: properties:
OperationID: OperationID:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
AssetOwner: AssetOwner:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
DisplayName: DisplayName:
type: string type: string
@ -585,19 +585,19 @@ components:
maxLength: 128 maxLength: 128
GameID: GameID:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
AssetID: AssetID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
AssetVersion: AssetVersion:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
TargetAssetID: TargetAssetID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
SubmissionCreate: SubmissionCreate:
required: required:
@ -612,11 +612,11 @@ components:
properties: properties:
OperationID: OperationID:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
AssetOwner: AssetOwner:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
DisplayName: DisplayName:
type: string type: string
@ -626,15 +626,15 @@ components:
maxLength: 128 maxLength: 128
GameID: GameID:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
AssetID: AssetID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
AssetVersion: AssetVersion:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
Script: Script:
required: required:
@ -648,7 +648,7 @@ components:
properties: properties:
ID: ID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
Name: Name:
type: string type: string
@ -662,11 +662,11 @@ components:
maxLength: 1048576 maxLength: 1048576
ResourceType: ResourceType:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
ResourceID: ResourceID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
ScriptCreate: ScriptCreate:
required: required:
@ -684,11 +684,11 @@ components:
maxLength: 1048576 maxLength: 1048576
ResourceType: ResourceType:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
ResourceID: ResourceID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
ScriptPolicy: ScriptPolicy:
required: required:
@ -700,7 +700,7 @@ components:
properties: properties:
ID: ID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
FromScriptHash: FromScriptHash:
type: string type: string
@ -708,11 +708,11 @@ components:
maxLength: 16 maxLength: 16
ToScriptID: ToScriptID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
Policy: Policy:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
ScriptPolicyCreate: ScriptPolicyCreate:
required: required:
@ -723,15 +723,15 @@ components:
properties: properties:
FromScriptID: FromScriptID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
ToScriptID: ToScriptID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
Policy: Policy:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
Error: Error:
description: Represents error object description: Represents error object
@ -739,7 +739,7 @@ components:
properties: properties:
code: code:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
message: message:
type: string type: string

@ -104,14 +104,14 @@ paths:
in: query in: query
schema: schema:
type: integer type: integer
format: int32 format: uint32
minimum: 1 minimum: 1
maximum: 5 maximum: 5
- name: Sort - name: Sort
in: query in: query
schema: schema:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
maximum: 4 maximum: 4
responses: responses:
@ -175,39 +175,39 @@ paths:
in: query in: query
schema: schema:
type: integer type: integer
format: int32 format: uint32
minimum: 1 minimum: 1
maximum: 5 maximum: 5
- name: Sort - name: Sort
in: query in: query
schema: schema:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
maximum: 4 maximum: 4
- name: Submitter - name: Submitter
in: query in: query
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
- name: AssetID - name: AssetID
in: query in: query
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
- name: TargetAssetID - name: TargetAssetID
in: query in: query
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
- name: StatusID - name: StatusID
in: query in: query
schema: schema:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
maximum: 9 maximum: 9
responses: responses:
@ -332,14 +332,14 @@ paths:
required: true required: true
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
- name: ModelVersion - name: ModelVersion
in: query in: query
required: true required: true
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
responses: responses:
"204": "204":
@ -582,39 +582,39 @@ paths:
in: query in: query
schema: schema:
type: integer type: integer
format: int32 format: uint32
minimum: 1 minimum: 1
maximum: 5 maximum: 5
- name: Sort - name: Sort
in: query in: query
schema: schema:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
maximum: 4 maximum: 4
- name: Submitter - name: Submitter
in: query in: query
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
- name: AssetID - name: AssetID
in: query in: query
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
- name: UploadedAssetID - name: UploadedAssetID
in: query in: query
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
- name: StatusID - name: StatusID
in: query in: query
schema: schema:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
maximum: 10 maximum: 10
responses: responses:
@ -739,14 +739,14 @@ paths:
required: true required: true
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
- name: ModelVersion - name: ModelVersion
in: query in: query
required: true required: true
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
responses: responses:
"204": "204":
@ -989,13 +989,13 @@ paths:
in: query in: query
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
- name: Policy - name: Policy
in: query in: query
schema: schema:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
responses: responses:
"200": "200":
@ -1126,13 +1126,13 @@ paths:
in: query in: query
schema: schema:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
- name: ResourceID - name: ResourceID
in: query in: query
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
responses: responses:
"200": "200":
@ -1247,7 +1247,7 @@ components:
description: The unique identifier for a map. description: The unique identifier for a map.
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
MapfixID: MapfixID:
name: MapfixID name: MapfixID
@ -1256,7 +1256,7 @@ components:
description: The unique identifier for a mapfix. description: The unique identifier for a mapfix.
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
OperationID: OperationID:
name: OperationID name: OperationID
@ -1265,7 +1265,7 @@ components:
description: The unique identifier for a long-running operation. description: The unique identifier for a long-running operation.
schema: schema:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
SubmissionID: SubmissionID:
name: SubmissionID name: SubmissionID
@ -1274,7 +1274,7 @@ components:
description: The unique identifier for a submission. description: The unique identifier for a submission.
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
ScriptID: ScriptID:
name: ScriptID name: ScriptID
@ -1283,7 +1283,7 @@ components:
description: The unique identifier for a script. description: The unique identifier for a script.
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
ScriptPolicyID: ScriptPolicyID:
name: ScriptPolicyID name: ScriptPolicyID
@ -1292,7 +1292,7 @@ components:
description: The unique identifier for a script policy. description: The unique identifier for a script policy.
schema: schema:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
Page: Page:
name: Page name: Page
@ -1300,7 +1300,7 @@ components:
required: true required: true
schema: schema:
type: integer type: integer
format: int32 format: uint32
minimum: 1 minimum: 1
Limit: Limit:
name: Limit name: Limit
@ -1308,7 +1308,7 @@ components:
required: true required: true
schema: schema:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
maximum: 100 maximum: 100
schemas: schemas:
@ -1325,23 +1325,23 @@ components:
properties: properties:
ID: ID:
type: integer type: integer
format: int64 format: uint64
Date: Date:
type: integer type: integer
format: int64 format: int64
User: User:
type: integer type: integer
format: int64 format: uint64
ResourceType: ResourceType:
type: integer type: integer
format: int32 format: uint32
description: Is this a submission or is it a mapfix description: Is this a submission or is it a mapfix
ResourceID: ResourceID:
type: integer type: integer
format: int64 format: uint64
EventType: EventType:
type: integer type: integer
format: int32 format: uint32
EventData: EventData:
type: object type: object
description: Arbitrary event data description: Arbitrary event data
@ -1353,7 +1353,7 @@ components:
properties: properties:
OperationID: OperationID:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
ScriptID: ScriptID:
required: required:
@ -1362,7 +1362,7 @@ components:
properties: properties:
ScriptID: ScriptID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
ScriptPolicyID: ScriptPolicyID:
required: required:
@ -1371,7 +1371,7 @@ components:
properties: properties:
ScriptPolicyID: ScriptPolicyID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
Roles: Roles:
required: required:
@ -1380,7 +1380,7 @@ components:
properties: properties:
Roles: Roles:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
User: User:
required: required:
@ -1391,7 +1391,7 @@ components:
properties: properties:
UserID: UserID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
Username: Username:
type: string type: string
@ -1410,7 +1410,7 @@ components:
properties: properties:
ID: ID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
DisplayName: DisplayName:
type: string type: string
@ -1420,7 +1420,7 @@ components:
maxLength: 128 maxLength: 128
GameID: GameID:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
Date: Date:
type: integer type: integer
@ -1445,7 +1445,7 @@ components:
properties: properties:
ID: ID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
DisplayName: DisplayName:
type: string type: string
@ -1455,7 +1455,7 @@ components:
maxLength: 128 maxLength: 128
GameID: GameID:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
CreatedAt: CreatedAt:
type: integer type: integer
@ -1467,25 +1467,25 @@ components:
minimum: 0 minimum: 0
Submitter: Submitter:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
AssetID: AssetID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
AssetVersion: AssetVersion:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
Completed: Completed:
type: boolean type: boolean
TargetAssetID: TargetAssetID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
StatusID: StatusID:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
StatusMessage: StatusMessage:
type: string type: string
@ -1498,7 +1498,7 @@ components:
properties: properties:
Total: Total:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
Mapfixes: Mapfixes:
type: array type: array
@ -1512,11 +1512,11 @@ components:
properties: properties:
AssetID: AssetID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
TargetAssetID: TargetAssetID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
Operation: Operation:
required: required:
@ -1530,7 +1530,7 @@ components:
properties: properties:
OperationID: OperationID:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
Date: Date:
type: integer type: integer
@ -1538,11 +1538,11 @@ components:
minimum: 0 minimum: 0
Owner: Owner:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
Status: Status:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
StatusMessage: StatusMessage:
type: string type: string
@ -1571,7 +1571,7 @@ components:
properties: properties:
ID: ID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
DisplayName: DisplayName:
type: string type: string
@ -1581,45 +1581,45 @@ components:
maxLength: 128 maxLength: 128
GameID: GameID:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
CreatedAt: CreatedAt:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
UpdatedAt: UpdatedAt:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
Submitter: Submitter:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
AssetID: AssetID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
AssetVersion: AssetVersion:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
ValidatedAssetID: ValidatedAssetID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
ValidatedAssetVersion: ValidatedAssetVersion:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
Completed: Completed:
type: boolean type: boolean
UploadedAssetID: UploadedAssetID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
StatusID: StatusID:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
StatusMessage: StatusMessage:
type: string type: string
@ -1632,7 +1632,7 @@ components:
properties: properties:
Total: Total:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
Submissions: Submissions:
type: array type: array
@ -1645,7 +1645,7 @@ components:
properties: properties:
AssetID: AssetID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
ReleaseInfo: ReleaseInfo:
required: required:
@ -1655,7 +1655,7 @@ components:
properties: properties:
SubmissionID: SubmissionID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
Date: Date:
type: string type: string
@ -1672,7 +1672,7 @@ components:
properties: properties:
ID: ID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
Name: Name:
type: string type: string
@ -1686,11 +1686,11 @@ components:
maxLength: 1048576 maxLength: 1048576
ResourceType: ResourceType:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
ResourceID: ResourceID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
ScriptCreate: ScriptCreate:
required: required:
@ -1708,11 +1708,11 @@ components:
maxLength: 1048576 maxLength: 1048576
ResourceType: ResourceType:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
ResourceID: ResourceID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
ScriptUpdate: ScriptUpdate:
required: required:
@ -1721,7 +1721,7 @@ components:
properties: properties:
ID: ID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
Name: Name:
type: string type: string
@ -1731,11 +1731,11 @@ components:
maxLength: 1048576 maxLength: 1048576
ResourceType: ResourceType:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
ResourceID: ResourceID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
ScriptPolicy: ScriptPolicy:
required: required:
@ -1747,7 +1747,7 @@ components:
properties: properties:
ID: ID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
FromScriptHash: FromScriptHash:
type: string type: string
@ -1755,11 +1755,11 @@ components:
maxLength: 16 maxLength: 16
ToScriptID: ToScriptID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
Policy: Policy:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
ScriptPolicyCreate: ScriptPolicyCreate:
required: required:
@ -1770,15 +1770,15 @@ components:
properties: properties:
FromScriptID: FromScriptID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
ToScriptID: ToScriptID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
Policy: Policy:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
ScriptPolicyUpdate: ScriptPolicyUpdate:
required: required:
@ -1787,19 +1787,19 @@ components:
properties: properties:
ID: ID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
FromScriptID: FromScriptID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
ToScriptID: ToScriptID:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
Policy: Policy:
type: integer type: integer
format: int32 format: uint32
minimum: 0 minimum: 0
Error: Error:
description: Represents error object description: Represents error object
@ -1807,7 +1807,7 @@ components:
properties: properties:
code: code:
type: integer type: integer
format: int64 format: uint64
minimum: 0 minimum: 0
message: message:
type: string type: string

@ -444,7 +444,7 @@ func (c *Client) sendActionMapfixAccepted(ctx context.Context, params ActionMapf
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.MapfixID)) return e.EncodeValue(conv.Uint64ToString(params.MapfixID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -568,7 +568,7 @@ func (c *Client) sendActionMapfixReject(ctx context.Context, params ActionMapfix
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.MapfixID)) return e.EncodeValue(conv.Uint64ToString(params.MapfixID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -692,7 +692,7 @@ func (c *Client) sendActionMapfixRequestChanges(ctx context.Context, params Acti
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.MapfixID)) return e.EncodeValue(conv.Uint64ToString(params.MapfixID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -817,7 +817,7 @@ func (c *Client) sendActionMapfixResetSubmitting(ctx context.Context, params Act
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.MapfixID)) return e.EncodeValue(conv.Uint64ToString(params.MapfixID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -941,7 +941,7 @@ func (c *Client) sendActionMapfixRetryValidate(ctx context.Context, params Actio
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.MapfixID)) return e.EncodeValue(conv.Uint64ToString(params.MapfixID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -1065,7 +1065,7 @@ func (c *Client) sendActionMapfixRevoke(ctx context.Context, params ActionMapfix
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.MapfixID)) return e.EncodeValue(conv.Uint64ToString(params.MapfixID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -1189,7 +1189,7 @@ func (c *Client) sendActionMapfixTriggerSubmit(ctx context.Context, params Actio
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.MapfixID)) return e.EncodeValue(conv.Uint64ToString(params.MapfixID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -1313,7 +1313,7 @@ func (c *Client) sendActionMapfixTriggerUpload(ctx context.Context, params Actio
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.MapfixID)) return e.EncodeValue(conv.Uint64ToString(params.MapfixID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -1437,7 +1437,7 @@ func (c *Client) sendActionMapfixTriggerValidate(ctx context.Context, params Act
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.MapfixID)) return e.EncodeValue(conv.Uint64ToString(params.MapfixID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -1561,7 +1561,7 @@ func (c *Client) sendActionMapfixValidated(ctx context.Context, params ActionMap
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.MapfixID)) return e.EncodeValue(conv.Uint64ToString(params.MapfixID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -1685,7 +1685,7 @@ func (c *Client) sendActionSubmissionAccepted(ctx context.Context, params Action
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) return e.EncodeValue(conv.Uint64ToString(params.SubmissionID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -1809,7 +1809,7 @@ func (c *Client) sendActionSubmissionReject(ctx context.Context, params ActionSu
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) return e.EncodeValue(conv.Uint64ToString(params.SubmissionID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -1933,7 +1933,7 @@ func (c *Client) sendActionSubmissionRequestChanges(ctx context.Context, params
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) return e.EncodeValue(conv.Uint64ToString(params.SubmissionID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -2058,7 +2058,7 @@ func (c *Client) sendActionSubmissionResetSubmitting(ctx context.Context, params
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) return e.EncodeValue(conv.Uint64ToString(params.SubmissionID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -2182,7 +2182,7 @@ func (c *Client) sendActionSubmissionRetryValidate(ctx context.Context, params A
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) return e.EncodeValue(conv.Uint64ToString(params.SubmissionID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -2306,7 +2306,7 @@ func (c *Client) sendActionSubmissionRevoke(ctx context.Context, params ActionSu
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) return e.EncodeValue(conv.Uint64ToString(params.SubmissionID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -2430,7 +2430,7 @@ func (c *Client) sendActionSubmissionTriggerSubmit(ctx context.Context, params A
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) return e.EncodeValue(conv.Uint64ToString(params.SubmissionID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -2554,7 +2554,7 @@ func (c *Client) sendActionSubmissionTriggerUpload(ctx context.Context, params A
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) return e.EncodeValue(conv.Uint64ToString(params.SubmissionID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -2678,7 +2678,7 @@ func (c *Client) sendActionSubmissionTriggerValidate(ctx context.Context, params
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) return e.EncodeValue(conv.Uint64ToString(params.SubmissionID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -2802,7 +2802,7 @@ func (c *Client) sendActionSubmissionValidated(ctx context.Context, params Actio
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) return e.EncodeValue(conv.Uint64ToString(params.SubmissionID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -3034,7 +3034,7 @@ func (c *Client) sendCreateMapfixAuditComment(ctx context.Context, request Creat
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.MapfixID)) return e.EncodeValue(conv.Uint64ToString(params.MapfixID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -3485,7 +3485,7 @@ func (c *Client) sendCreateSubmissionAuditComment(ctx context.Context, request C
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) return e.EncodeValue(conv.Uint64ToString(params.SubmissionID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -3612,7 +3612,7 @@ func (c *Client) sendDeleteScript(ctx context.Context, params DeleteScriptParams
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.ScriptID)) return e.EncodeValue(conv.Uint64ToString(params.ScriptID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -3735,7 +3735,7 @@ func (c *Client) sendDeleteScriptPolicy(ctx context.Context, params DeleteScript
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.ScriptPolicyID)) return e.EncodeValue(conv.Uint64ToString(params.ScriptPolicyID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -3858,7 +3858,7 @@ func (c *Client) sendGetMap(ctx context.Context, params GetMapParams) (res *Map,
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.MapID)) return e.EncodeValue(conv.Uint64ToString(params.MapID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -3948,7 +3948,7 @@ func (c *Client) sendGetMapfix(ctx context.Context, params GetMapfixParams) (res
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.MapfixID)) return e.EncodeValue(conv.Uint64ToString(params.MapfixID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -4038,7 +4038,7 @@ func (c *Client) sendGetOperation(ctx context.Context, params GetOperationParams
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int32ToString(params.OperationID)) return e.EncodeValue(conv.Uint32ToString(params.OperationID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -4161,7 +4161,7 @@ func (c *Client) sendGetScript(ctx context.Context, params GetScriptParams) (res
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.ScriptID)) return e.EncodeValue(conv.Uint64ToString(params.ScriptID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -4251,7 +4251,7 @@ func (c *Client) sendGetScriptPolicy(ctx context.Context, params GetScriptPolicy
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.ScriptPolicyID)) return e.EncodeValue(conv.Uint64ToString(params.ScriptPolicyID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -4341,7 +4341,7 @@ func (c *Client) sendGetSubmission(ctx context.Context, params GetSubmissionPara
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) return e.EncodeValue(conv.Uint64ToString(params.SubmissionID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -4431,7 +4431,7 @@ func (c *Client) sendListMapfixAuditEvents(ctx context.Context, params ListMapfi
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.MapfixID)) return e.EncodeValue(conv.Uint64ToString(params.MapfixID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -4455,7 +4455,7 @@ func (c *Client) sendListMapfixAuditEvents(ctx context.Context, params ListMapfi
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int32ToString(params.Page)) return e.EncodeValue(conv.Uint32ToString(params.Page))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -4469,7 +4469,7 @@ func (c *Client) sendListMapfixAuditEvents(ctx context.Context, params ListMapfi
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int32ToString(params.Limit)) return e.EncodeValue(conv.Uint32ToString(params.Limit))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -4559,7 +4559,7 @@ func (c *Client) sendListMapfixes(ctx context.Context, params ListMapfixesParams
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int32ToString(params.Page)) return e.EncodeValue(conv.Uint32ToString(params.Page))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -4573,7 +4573,7 @@ func (c *Client) sendListMapfixes(ctx context.Context, params ListMapfixesParams
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int32ToString(params.Limit)) return e.EncodeValue(conv.Uint32ToString(params.Limit))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -4622,7 +4622,7 @@ func (c *Client) sendListMapfixes(ctx context.Context, params ListMapfixesParams
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
if val, ok := params.GameID.Get(); ok { if val, ok := params.GameID.Get(); ok {
return e.EncodeValue(conv.Int32ToString(val)) return e.EncodeValue(conv.Uint32ToString(val))
} }
return nil return nil
}); err != nil { }); err != nil {
@ -4639,7 +4639,7 @@ func (c *Client) sendListMapfixes(ctx context.Context, params ListMapfixesParams
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
if val, ok := params.Sort.Get(); ok { if val, ok := params.Sort.Get(); ok {
return e.EncodeValue(conv.Int32ToString(val)) return e.EncodeValue(conv.Uint32ToString(val))
} }
return nil return nil
}); err != nil { }); err != nil {
@ -4656,7 +4656,7 @@ func (c *Client) sendListMapfixes(ctx context.Context, params ListMapfixesParams
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
if val, ok := params.Submitter.Get(); ok { if val, ok := params.Submitter.Get(); ok {
return e.EncodeValue(conv.Int64ToString(val)) return e.EncodeValue(conv.Uint64ToString(val))
} }
return nil return nil
}); err != nil { }); err != nil {
@ -4673,7 +4673,7 @@ func (c *Client) sendListMapfixes(ctx context.Context, params ListMapfixesParams
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
if val, ok := params.AssetID.Get(); ok { if val, ok := params.AssetID.Get(); ok {
return e.EncodeValue(conv.Int64ToString(val)) return e.EncodeValue(conv.Uint64ToString(val))
} }
return nil return nil
}); err != nil { }); err != nil {
@ -4690,7 +4690,7 @@ func (c *Client) sendListMapfixes(ctx context.Context, params ListMapfixesParams
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
if val, ok := params.TargetAssetID.Get(); ok { if val, ok := params.TargetAssetID.Get(); ok {
return e.EncodeValue(conv.Int64ToString(val)) return e.EncodeValue(conv.Uint64ToString(val))
} }
return nil return nil
}); err != nil { }); err != nil {
@ -4707,7 +4707,7 @@ func (c *Client) sendListMapfixes(ctx context.Context, params ListMapfixesParams
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
if val, ok := params.StatusID.Get(); ok { if val, ok := params.StatusID.Get(); ok {
return e.EncodeValue(conv.Int32ToString(val)) return e.EncodeValue(conv.Uint32ToString(val))
} }
return nil return nil
}); err != nil { }); err != nil {
@ -4799,7 +4799,7 @@ func (c *Client) sendListMaps(ctx context.Context, params ListMapsParams) (res [
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int32ToString(params.Page)) return e.EncodeValue(conv.Uint32ToString(params.Page))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -4813,7 +4813,7 @@ func (c *Client) sendListMaps(ctx context.Context, params ListMapsParams) (res [
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int32ToString(params.Limit)) return e.EncodeValue(conv.Uint32ToString(params.Limit))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -4862,7 +4862,7 @@ func (c *Client) sendListMaps(ctx context.Context, params ListMapsParams) (res [
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
if val, ok := params.GameID.Get(); ok { if val, ok := params.GameID.Get(); ok {
return e.EncodeValue(conv.Int32ToString(val)) return e.EncodeValue(conv.Uint32ToString(val))
} }
return nil return nil
}); err != nil { }); err != nil {
@ -4879,7 +4879,7 @@ func (c *Client) sendListMaps(ctx context.Context, params ListMapsParams) (res [
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
if val, ok := params.Sort.Get(); ok { if val, ok := params.Sort.Get(); ok {
return e.EncodeValue(conv.Int32ToString(val)) return e.EncodeValue(conv.Uint32ToString(val))
} }
return nil return nil
}); err != nil { }); err != nil {
@ -4971,7 +4971,7 @@ func (c *Client) sendListScriptPolicy(ctx context.Context, params ListScriptPoli
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int32ToString(params.Page)) return e.EncodeValue(conv.Uint32ToString(params.Page))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -4985,7 +4985,7 @@ func (c *Client) sendListScriptPolicy(ctx context.Context, params ListScriptPoli
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int32ToString(params.Limit)) return e.EncodeValue(conv.Uint32ToString(params.Limit))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -5017,7 +5017,7 @@ func (c *Client) sendListScriptPolicy(ctx context.Context, params ListScriptPoli
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
if val, ok := params.ToScriptID.Get(); ok { if val, ok := params.ToScriptID.Get(); ok {
return e.EncodeValue(conv.Int64ToString(val)) return e.EncodeValue(conv.Uint64ToString(val))
} }
return nil return nil
}); err != nil { }); err != nil {
@ -5034,7 +5034,7 @@ func (c *Client) sendListScriptPolicy(ctx context.Context, params ListScriptPoli
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
if val, ok := params.Policy.Get(); ok { if val, ok := params.Policy.Get(); ok {
return e.EncodeValue(conv.Int32ToString(val)) return e.EncodeValue(conv.Uint32ToString(val))
} }
return nil return nil
}); err != nil { }); err != nil {
@ -5126,7 +5126,7 @@ func (c *Client) sendListScripts(ctx context.Context, params ListScriptsParams)
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int32ToString(params.Page)) return e.EncodeValue(conv.Uint32ToString(params.Page))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -5140,7 +5140,7 @@ func (c *Client) sendListScripts(ctx context.Context, params ListScriptsParams)
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int32ToString(params.Limit)) return e.EncodeValue(conv.Uint32ToString(params.Limit))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -5206,7 +5206,7 @@ func (c *Client) sendListScripts(ctx context.Context, params ListScriptsParams)
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
if val, ok := params.ResourceType.Get(); ok { if val, ok := params.ResourceType.Get(); ok {
return e.EncodeValue(conv.Int32ToString(val)) return e.EncodeValue(conv.Uint32ToString(val))
} }
return nil return nil
}); err != nil { }); err != nil {
@ -5223,7 +5223,7 @@ func (c *Client) sendListScripts(ctx context.Context, params ListScriptsParams)
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
if val, ok := params.ResourceID.Get(); ok { if val, ok := params.ResourceID.Get(); ok {
return e.EncodeValue(conv.Int64ToString(val)) return e.EncodeValue(conv.Uint64ToString(val))
} }
return nil return nil
}); err != nil { }); err != nil {
@ -5310,7 +5310,7 @@ func (c *Client) sendListSubmissionAuditEvents(ctx context.Context, params ListS
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) return e.EncodeValue(conv.Uint64ToString(params.SubmissionID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -5334,7 +5334,7 @@ func (c *Client) sendListSubmissionAuditEvents(ctx context.Context, params ListS
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int32ToString(params.Page)) return e.EncodeValue(conv.Uint32ToString(params.Page))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -5348,7 +5348,7 @@ func (c *Client) sendListSubmissionAuditEvents(ctx context.Context, params ListS
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int32ToString(params.Limit)) return e.EncodeValue(conv.Uint32ToString(params.Limit))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -5438,7 +5438,7 @@ func (c *Client) sendListSubmissions(ctx context.Context, params ListSubmissions
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int32ToString(params.Page)) return e.EncodeValue(conv.Uint32ToString(params.Page))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -5452,7 +5452,7 @@ func (c *Client) sendListSubmissions(ctx context.Context, params ListSubmissions
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int32ToString(params.Limit)) return e.EncodeValue(conv.Uint32ToString(params.Limit))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -5501,7 +5501,7 @@ func (c *Client) sendListSubmissions(ctx context.Context, params ListSubmissions
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
if val, ok := params.GameID.Get(); ok { if val, ok := params.GameID.Get(); ok {
return e.EncodeValue(conv.Int32ToString(val)) return e.EncodeValue(conv.Uint32ToString(val))
} }
return nil return nil
}); err != nil { }); err != nil {
@ -5518,7 +5518,7 @@ func (c *Client) sendListSubmissions(ctx context.Context, params ListSubmissions
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
if val, ok := params.Sort.Get(); ok { if val, ok := params.Sort.Get(); ok {
return e.EncodeValue(conv.Int32ToString(val)) return e.EncodeValue(conv.Uint32ToString(val))
} }
return nil return nil
}); err != nil { }); err != nil {
@ -5535,7 +5535,7 @@ func (c *Client) sendListSubmissions(ctx context.Context, params ListSubmissions
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
if val, ok := params.Submitter.Get(); ok { if val, ok := params.Submitter.Get(); ok {
return e.EncodeValue(conv.Int64ToString(val)) return e.EncodeValue(conv.Uint64ToString(val))
} }
return nil return nil
}); err != nil { }); err != nil {
@ -5552,7 +5552,7 @@ func (c *Client) sendListSubmissions(ctx context.Context, params ListSubmissions
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
if val, ok := params.AssetID.Get(); ok { if val, ok := params.AssetID.Get(); ok {
return e.EncodeValue(conv.Int64ToString(val)) return e.EncodeValue(conv.Uint64ToString(val))
} }
return nil return nil
}); err != nil { }); err != nil {
@ -5569,7 +5569,7 @@ func (c *Client) sendListSubmissions(ctx context.Context, params ListSubmissions
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
if val, ok := params.UploadedAssetID.Get(); ok { if val, ok := params.UploadedAssetID.Get(); ok {
return e.EncodeValue(conv.Int64ToString(val)) return e.EncodeValue(conv.Uint64ToString(val))
} }
return nil return nil
}); err != nil { }); err != nil {
@ -5586,7 +5586,7 @@ func (c *Client) sendListSubmissions(ctx context.Context, params ListSubmissions
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
if val, ok := params.StatusID.Get(); ok { if val, ok := params.StatusID.Get(); ok {
return e.EncodeValue(conv.Int32ToString(val)) return e.EncodeValue(conv.Uint32ToString(val))
} }
return nil return nil
}); err != nil { }); err != nil {
@ -6096,7 +6096,7 @@ func (c *Client) sendSetMapfixCompleted(ctx context.Context, params SetMapfixCom
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.MapfixID)) return e.EncodeValue(conv.Uint64ToString(params.MapfixID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -6220,7 +6220,7 @@ func (c *Client) sendSetSubmissionCompleted(ctx context.Context, params SetSubmi
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) return e.EncodeValue(conv.Uint64ToString(params.SubmissionID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -6344,7 +6344,7 @@ func (c *Client) sendUpdateMapfixModel(ctx context.Context, params UpdateMapfixM
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.MapfixID)) return e.EncodeValue(conv.Uint64ToString(params.MapfixID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -6368,7 +6368,7 @@ func (c *Client) sendUpdateMapfixModel(ctx context.Context, params UpdateMapfixM
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int64ToString(params.ModelID)) return e.EncodeValue(conv.Uint64ToString(params.ModelID))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -6382,7 +6382,7 @@ func (c *Client) sendUpdateMapfixModel(ctx context.Context, params UpdateMapfixM
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int64ToString(params.ModelVersion)) return e.EncodeValue(conv.Uint64ToString(params.ModelVersion))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -6500,7 +6500,7 @@ func (c *Client) sendUpdateScript(ctx context.Context, request *ScriptUpdate, pa
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.ScriptID)) return e.EncodeValue(conv.Uint64ToString(params.ScriptID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -6626,7 +6626,7 @@ func (c *Client) sendUpdateScriptPolicy(ctx context.Context, request *ScriptPoli
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.ScriptPolicyID)) return e.EncodeValue(conv.Uint64ToString(params.ScriptPolicyID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -6752,7 +6752,7 @@ func (c *Client) sendUpdateSubmissionModel(ctx context.Context, params UpdateSub
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) return e.EncodeValue(conv.Uint64ToString(params.SubmissionID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -6776,7 +6776,7 @@ func (c *Client) sendUpdateSubmissionModel(ctx context.Context, params UpdateSub
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int64ToString(params.ModelID)) return e.EncodeValue(conv.Uint64ToString(params.ModelID))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -6790,7 +6790,7 @@ func (c *Client) sendUpdateSubmissionModel(ctx context.Context, params UpdateSub
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int64ToString(params.ModelVersion)) return e.EncodeValue(conv.Uint64ToString(params.ModelVersion))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }

@ -24,7 +24,7 @@ func (s *AuditEvent) Encode(e *jx.Encoder) {
func (s *AuditEvent) encodeFields(e *jx.Encoder) { func (s *AuditEvent) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("ID") e.FieldStart("ID")
e.Int64(s.ID) e.UInt64(s.ID)
} }
{ {
e.FieldStart("Date") e.FieldStart("Date")
@ -32,19 +32,19 @@ func (s *AuditEvent) encodeFields(e *jx.Encoder) {
} }
{ {
e.FieldStart("User") e.FieldStart("User")
e.Int64(s.User) e.UInt64(s.User)
} }
{ {
e.FieldStart("ResourceType") e.FieldStart("ResourceType")
e.Int32(s.ResourceType) e.UInt32(s.ResourceType)
} }
{ {
e.FieldStart("ResourceID") e.FieldStart("ResourceID")
e.Int64(s.ResourceID) e.UInt64(s.ResourceID)
} }
{ {
e.FieldStart("EventType") e.FieldStart("EventType")
e.Int32(s.EventType) e.UInt32(s.EventType)
} }
{ {
e.FieldStart("EventData") e.FieldStart("EventData")
@ -74,8 +74,8 @@ func (s *AuditEvent) Decode(d *jx.Decoder) error {
case "ID": case "ID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.ID = int64(v) s.ID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -98,8 +98,8 @@ func (s *AuditEvent) Decode(d *jx.Decoder) error {
case "User": case "User":
requiredBitSet[0] |= 1 << 2 requiredBitSet[0] |= 1 << 2
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.User = int64(v) s.User = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -110,8 +110,8 @@ func (s *AuditEvent) Decode(d *jx.Decoder) error {
case "ResourceType": case "ResourceType":
requiredBitSet[0] |= 1 << 3 requiredBitSet[0] |= 1 << 3
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.ResourceType = int32(v) s.ResourceType = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -122,8 +122,8 @@ func (s *AuditEvent) Decode(d *jx.Decoder) error {
case "ResourceID": case "ResourceID":
requiredBitSet[0] |= 1 << 4 requiredBitSet[0] |= 1 << 4
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.ResourceID = int64(v) s.ResourceID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -134,8 +134,8 @@ func (s *AuditEvent) Decode(d *jx.Decoder) error {
case "EventType": case "EventType":
requiredBitSet[0] |= 1 << 5 requiredBitSet[0] |= 1 << 5
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.EventType = int32(v) s.EventType = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -278,7 +278,7 @@ func (s *Error) Encode(e *jx.Encoder) {
func (s *Error) encodeFields(e *jx.Encoder) { func (s *Error) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("code") e.FieldStart("code")
e.Int64(s.Code) e.UInt64(s.Code)
} }
{ {
e.FieldStart("message") e.FieldStart("message")
@ -303,8 +303,8 @@ func (s *Error) Decode(d *jx.Decoder) error {
case "code": case "code":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.Code = int64(v) s.Code = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -391,7 +391,7 @@ func (s *Map) Encode(e *jx.Encoder) {
func (s *Map) encodeFields(e *jx.Encoder) { func (s *Map) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("ID") e.FieldStart("ID")
e.Int64(s.ID) e.UInt64(s.ID)
} }
{ {
e.FieldStart("DisplayName") e.FieldStart("DisplayName")
@ -403,7 +403,7 @@ func (s *Map) encodeFields(e *jx.Encoder) {
} }
{ {
e.FieldStart("GameID") e.FieldStart("GameID")
e.Int32(s.GameID) e.UInt32(s.GameID)
} }
{ {
e.FieldStart("Date") e.FieldStart("Date")
@ -431,8 +431,8 @@ func (s *Map) Decode(d *jx.Decoder) error {
case "ID": case "ID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.ID = int64(v) s.ID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -467,8 +467,8 @@ func (s *Map) Decode(d *jx.Decoder) error {
case "GameID": case "GameID":
requiredBitSet[0] |= 1 << 3 requiredBitSet[0] |= 1 << 3
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.GameID = int32(v) s.GameID = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -555,7 +555,7 @@ func (s *Mapfix) Encode(e *jx.Encoder) {
func (s *Mapfix) encodeFields(e *jx.Encoder) { func (s *Mapfix) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("ID") e.FieldStart("ID")
e.Int64(s.ID) e.UInt64(s.ID)
} }
{ {
e.FieldStart("DisplayName") e.FieldStart("DisplayName")
@ -567,7 +567,7 @@ func (s *Mapfix) encodeFields(e *jx.Encoder) {
} }
{ {
e.FieldStart("GameID") e.FieldStart("GameID")
e.Int32(s.GameID) e.UInt32(s.GameID)
} }
{ {
e.FieldStart("CreatedAt") e.FieldStart("CreatedAt")
@ -579,15 +579,15 @@ func (s *Mapfix) encodeFields(e *jx.Encoder) {
} }
{ {
e.FieldStart("Submitter") e.FieldStart("Submitter")
e.Int64(s.Submitter) e.UInt64(s.Submitter)
} }
{ {
e.FieldStart("AssetID") e.FieldStart("AssetID")
e.Int64(s.AssetID) e.UInt64(s.AssetID)
} }
{ {
e.FieldStart("AssetVersion") e.FieldStart("AssetVersion")
e.Int64(s.AssetVersion) e.UInt64(s.AssetVersion)
} }
{ {
e.FieldStart("Completed") e.FieldStart("Completed")
@ -595,11 +595,11 @@ func (s *Mapfix) encodeFields(e *jx.Encoder) {
} }
{ {
e.FieldStart("TargetAssetID") e.FieldStart("TargetAssetID")
e.Int64(s.TargetAssetID) e.UInt64(s.TargetAssetID)
} }
{ {
e.FieldStart("StatusID") e.FieldStart("StatusID")
e.Int32(s.StatusID) e.UInt32(s.StatusID)
} }
{ {
e.FieldStart("StatusMessage") e.FieldStart("StatusMessage")
@ -635,8 +635,8 @@ func (s *Mapfix) Decode(d *jx.Decoder) error {
case "ID": case "ID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.ID = int64(v) s.ID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -671,8 +671,8 @@ func (s *Mapfix) Decode(d *jx.Decoder) error {
case "GameID": case "GameID":
requiredBitSet[0] |= 1 << 3 requiredBitSet[0] |= 1 << 3
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.GameID = int32(v) s.GameID = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -707,8 +707,8 @@ func (s *Mapfix) Decode(d *jx.Decoder) error {
case "Submitter": case "Submitter":
requiredBitSet[0] |= 1 << 6 requiredBitSet[0] |= 1 << 6
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.Submitter = int64(v) s.Submitter = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -719,8 +719,8 @@ func (s *Mapfix) Decode(d *jx.Decoder) error {
case "AssetID": case "AssetID":
requiredBitSet[0] |= 1 << 7 requiredBitSet[0] |= 1 << 7
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.AssetID = int64(v) s.AssetID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -731,8 +731,8 @@ func (s *Mapfix) Decode(d *jx.Decoder) error {
case "AssetVersion": case "AssetVersion":
requiredBitSet[1] |= 1 << 0 requiredBitSet[1] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.AssetVersion = int64(v) s.AssetVersion = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -755,8 +755,8 @@ func (s *Mapfix) Decode(d *jx.Decoder) error {
case "TargetAssetID": case "TargetAssetID":
requiredBitSet[1] |= 1 << 2 requiredBitSet[1] |= 1 << 2
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.TargetAssetID = int64(v) s.TargetAssetID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -767,8 +767,8 @@ func (s *Mapfix) Decode(d *jx.Decoder) error {
case "StatusID": case "StatusID":
requiredBitSet[1] |= 1 << 3 requiredBitSet[1] |= 1 << 3
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.StatusID = int32(v) s.StatusID = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -856,11 +856,11 @@ func (s *MapfixTriggerCreate) Encode(e *jx.Encoder) {
func (s *MapfixTriggerCreate) encodeFields(e *jx.Encoder) { func (s *MapfixTriggerCreate) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("AssetID") e.FieldStart("AssetID")
e.Int64(s.AssetID) e.UInt64(s.AssetID)
} }
{ {
e.FieldStart("TargetAssetID") e.FieldStart("TargetAssetID")
e.Int64(s.TargetAssetID) e.UInt64(s.TargetAssetID)
} }
} }
@ -881,8 +881,8 @@ func (s *MapfixTriggerCreate) Decode(d *jx.Decoder) error {
case "AssetID": case "AssetID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.AssetID = int64(v) s.AssetID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -893,8 +893,8 @@ func (s *MapfixTriggerCreate) Decode(d *jx.Decoder) error {
case "TargetAssetID": case "TargetAssetID":
requiredBitSet[0] |= 1 << 1 requiredBitSet[0] |= 1 << 1
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.TargetAssetID = int64(v) s.TargetAssetID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -969,7 +969,7 @@ func (s *Mapfixes) Encode(e *jx.Encoder) {
func (s *Mapfixes) encodeFields(e *jx.Encoder) { func (s *Mapfixes) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("Total") e.FieldStart("Total")
e.Int64(s.Total) e.UInt64(s.Total)
} }
{ {
e.FieldStart("Mapfixes") e.FieldStart("Mapfixes")
@ -998,8 +998,8 @@ func (s *Mapfixes) Decode(d *jx.Decoder) error {
case "Total": case "Total":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.Total = int64(v) s.Total = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -1092,7 +1092,7 @@ func (s *Operation) Encode(e *jx.Encoder) {
func (s *Operation) encodeFields(e *jx.Encoder) { func (s *Operation) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("OperationID") e.FieldStart("OperationID")
e.Int32(s.OperationID) e.UInt32(s.OperationID)
} }
{ {
e.FieldStart("Date") e.FieldStart("Date")
@ -1100,11 +1100,11 @@ func (s *Operation) encodeFields(e *jx.Encoder) {
} }
{ {
e.FieldStart("Owner") e.FieldStart("Owner")
e.Int64(s.Owner) e.UInt64(s.Owner)
} }
{ {
e.FieldStart("Status") e.FieldStart("Status")
e.Int32(s.Status) e.UInt32(s.Status)
} }
{ {
e.FieldStart("StatusMessage") e.FieldStart("StatusMessage")
@ -1137,8 +1137,8 @@ func (s *Operation) Decode(d *jx.Decoder) error {
case "OperationID": case "OperationID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.OperationID = int32(v) s.OperationID = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -1161,8 +1161,8 @@ func (s *Operation) Decode(d *jx.Decoder) error {
case "Owner": case "Owner":
requiredBitSet[0] |= 1 << 2 requiredBitSet[0] |= 1 << 2
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.Owner = int64(v) s.Owner = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -1173,8 +1173,8 @@ func (s *Operation) Decode(d *jx.Decoder) error {
case "Status": case "Status":
requiredBitSet[0] |= 1 << 3 requiredBitSet[0] |= 1 << 3
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.Status = int32(v) s.Status = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -1273,7 +1273,7 @@ func (s *OperationID) Encode(e *jx.Encoder) {
func (s *OperationID) encodeFields(e *jx.Encoder) { func (s *OperationID) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("OperationID") e.FieldStart("OperationID")
e.Int32(s.OperationID) e.UInt32(s.OperationID)
} }
} }
@ -1293,8 +1293,8 @@ func (s *OperationID) Decode(d *jx.Decoder) error {
case "OperationID": case "OperationID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.OperationID = int32(v) s.OperationID = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -1358,76 +1358,6 @@ func (s *OperationID) UnmarshalJSON(data []byte) error {
return s.Decode(d) return s.Decode(d)
} }
// Encode encodes int32 as json.
func (o OptInt32) Encode(e *jx.Encoder) {
if !o.Set {
return
}
e.Int32(int32(o.Value))
}
// Decode decodes int32 from json.
func (o *OptInt32) Decode(d *jx.Decoder) error {
if o == nil {
return errors.New("invalid: unable to decode OptInt32 to nil")
}
o.Set = true
v, err := d.Int32()
if err != nil {
return err
}
o.Value = int32(v)
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s OptInt32) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *OptInt32) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode encodes int64 as json.
func (o OptInt64) Encode(e *jx.Encoder) {
if !o.Set {
return
}
e.Int64(int64(o.Value))
}
// Decode decodes int64 from json.
func (o *OptInt64) Decode(d *jx.Decoder) error {
if o == nil {
return errors.New("invalid: unable to decode OptInt64 to nil")
}
o.Set = true
v, err := d.Int64()
if err != nil {
return err
}
o.Value = int64(v)
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s OptInt64) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *OptInt64) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode encodes string as json. // Encode encodes string as json.
func (o OptString) Encode(e *jx.Encoder) { func (o OptString) Encode(e *jx.Encoder) {
if !o.Set { if !o.Set {
@ -1463,6 +1393,76 @@ func (s *OptString) UnmarshalJSON(data []byte) error {
return s.Decode(d) return s.Decode(d)
} }
// Encode encodes uint32 as json.
func (o OptUint32) Encode(e *jx.Encoder) {
if !o.Set {
return
}
e.UInt32(uint32(o.Value))
}
// Decode decodes uint32 from json.
func (o *OptUint32) Decode(d *jx.Decoder) error {
if o == nil {
return errors.New("invalid: unable to decode OptUint32 to nil")
}
o.Set = true
v, err := d.UInt32()
if err != nil {
return err
}
o.Value = uint32(v)
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s OptUint32) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *OptUint32) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode encodes uint64 as json.
func (o OptUint64) Encode(e *jx.Encoder) {
if !o.Set {
return
}
e.UInt64(uint64(o.Value))
}
// Decode decodes uint64 from json.
func (o *OptUint64) Decode(d *jx.Decoder) error {
if o == nil {
return errors.New("invalid: unable to decode OptUint64 to nil")
}
o.Set = true
v, err := d.UInt64()
if err != nil {
return err
}
o.Value = uint64(v)
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s OptUint64) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *OptUint64) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler. // Encode implements json.Marshaler.
func (s *ReleaseInfo) Encode(e *jx.Encoder) { func (s *ReleaseInfo) Encode(e *jx.Encoder) {
e.ObjStart() e.ObjStart()
@ -1474,7 +1474,7 @@ func (s *ReleaseInfo) Encode(e *jx.Encoder) {
func (s *ReleaseInfo) encodeFields(e *jx.Encoder) { func (s *ReleaseInfo) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("SubmissionID") e.FieldStart("SubmissionID")
e.Int64(s.SubmissionID) e.UInt64(s.SubmissionID)
} }
{ {
e.FieldStart("Date") e.FieldStart("Date")
@ -1499,8 +1499,8 @@ func (s *ReleaseInfo) Decode(d *jx.Decoder) error {
case "SubmissionID": case "SubmissionID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.SubmissionID = int64(v) s.SubmissionID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -1587,7 +1587,7 @@ func (s *Roles) Encode(e *jx.Encoder) {
func (s *Roles) encodeFields(e *jx.Encoder) { func (s *Roles) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("Roles") e.FieldStart("Roles")
e.Int32(s.Roles) e.UInt32(s.Roles)
} }
} }
@ -1607,8 +1607,8 @@ func (s *Roles) Decode(d *jx.Decoder) error {
case "Roles": case "Roles":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.Roles = int32(v) s.Roles = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -1683,7 +1683,7 @@ func (s *Script) Encode(e *jx.Encoder) {
func (s *Script) encodeFields(e *jx.Encoder) { func (s *Script) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("ID") e.FieldStart("ID")
e.Int64(s.ID) e.UInt64(s.ID)
} }
{ {
e.FieldStart("Name") e.FieldStart("Name")
@ -1699,11 +1699,11 @@ func (s *Script) encodeFields(e *jx.Encoder) {
} }
{ {
e.FieldStart("ResourceType") e.FieldStart("ResourceType")
e.Int32(s.ResourceType) e.UInt32(s.ResourceType)
} }
{ {
e.FieldStart("ResourceID") e.FieldStart("ResourceID")
e.Int64(s.ResourceID) e.UInt64(s.ResourceID)
} }
} }
@ -1728,8 +1728,8 @@ func (s *Script) Decode(d *jx.Decoder) error {
case "ID": case "ID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.ID = int64(v) s.ID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -1776,8 +1776,8 @@ func (s *Script) Decode(d *jx.Decoder) error {
case "ResourceType": case "ResourceType":
requiredBitSet[0] |= 1 << 4 requiredBitSet[0] |= 1 << 4
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.ResourceType = int32(v) s.ResourceType = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -1788,8 +1788,8 @@ func (s *Script) Decode(d *jx.Decoder) error {
case "ResourceID": case "ResourceID":
requiredBitSet[0] |= 1 << 5 requiredBitSet[0] |= 1 << 5
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.ResourceID = int64(v) s.ResourceID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -1872,7 +1872,7 @@ func (s *ScriptCreate) encodeFields(e *jx.Encoder) {
} }
{ {
e.FieldStart("ResourceType") e.FieldStart("ResourceType")
e.Int32(s.ResourceType) e.UInt32(s.ResourceType)
} }
{ {
if s.ResourceID.Set { if s.ResourceID.Set {
@ -1925,8 +1925,8 @@ func (s *ScriptCreate) Decode(d *jx.Decoder) error {
case "ResourceType": case "ResourceType":
requiredBitSet[0] |= 1 << 2 requiredBitSet[0] |= 1 << 2
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.ResourceType = int32(v) s.ResourceType = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -2011,7 +2011,7 @@ func (s *ScriptID) Encode(e *jx.Encoder) {
func (s *ScriptID) encodeFields(e *jx.Encoder) { func (s *ScriptID) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("ScriptID") e.FieldStart("ScriptID")
e.Int64(s.ScriptID) e.UInt64(s.ScriptID)
} }
} }
@ -2031,8 +2031,8 @@ func (s *ScriptID) Decode(d *jx.Decoder) error {
case "ScriptID": case "ScriptID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.ScriptID = int64(v) s.ScriptID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -2107,7 +2107,7 @@ func (s *ScriptPolicy) Encode(e *jx.Encoder) {
func (s *ScriptPolicy) encodeFields(e *jx.Encoder) { func (s *ScriptPolicy) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("ID") e.FieldStart("ID")
e.Int64(s.ID) e.UInt64(s.ID)
} }
{ {
e.FieldStart("FromScriptHash") e.FieldStart("FromScriptHash")
@ -2115,11 +2115,11 @@ func (s *ScriptPolicy) encodeFields(e *jx.Encoder) {
} }
{ {
e.FieldStart("ToScriptID") e.FieldStart("ToScriptID")
e.Int64(s.ToScriptID) e.UInt64(s.ToScriptID)
} }
{ {
e.FieldStart("Policy") e.FieldStart("Policy")
e.Int32(s.Policy) e.UInt32(s.Policy)
} }
} }
@ -2142,8 +2142,8 @@ func (s *ScriptPolicy) Decode(d *jx.Decoder) error {
case "ID": case "ID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.ID = int64(v) s.ID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -2166,8 +2166,8 @@ func (s *ScriptPolicy) Decode(d *jx.Decoder) error {
case "ToScriptID": case "ToScriptID":
requiredBitSet[0] |= 1 << 2 requiredBitSet[0] |= 1 << 2
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.ToScriptID = int64(v) s.ToScriptID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -2178,8 +2178,8 @@ func (s *ScriptPolicy) Decode(d *jx.Decoder) error {
case "Policy": case "Policy":
requiredBitSet[0] |= 1 << 3 requiredBitSet[0] |= 1 << 3
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.Policy = int32(v) s.Policy = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -2254,15 +2254,15 @@ func (s *ScriptPolicyCreate) Encode(e *jx.Encoder) {
func (s *ScriptPolicyCreate) encodeFields(e *jx.Encoder) { func (s *ScriptPolicyCreate) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("FromScriptID") e.FieldStart("FromScriptID")
e.Int64(s.FromScriptID) e.UInt64(s.FromScriptID)
} }
{ {
e.FieldStart("ToScriptID") e.FieldStart("ToScriptID")
e.Int64(s.ToScriptID) e.UInt64(s.ToScriptID)
} }
{ {
e.FieldStart("Policy") e.FieldStart("Policy")
e.Int32(s.Policy) e.UInt32(s.Policy)
} }
} }
@ -2284,8 +2284,8 @@ func (s *ScriptPolicyCreate) Decode(d *jx.Decoder) error {
case "FromScriptID": case "FromScriptID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.FromScriptID = int64(v) s.FromScriptID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -2296,8 +2296,8 @@ func (s *ScriptPolicyCreate) Decode(d *jx.Decoder) error {
case "ToScriptID": case "ToScriptID":
requiredBitSet[0] |= 1 << 1 requiredBitSet[0] |= 1 << 1
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.ToScriptID = int64(v) s.ToScriptID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -2308,8 +2308,8 @@ func (s *ScriptPolicyCreate) Decode(d *jx.Decoder) error {
case "Policy": case "Policy":
requiredBitSet[0] |= 1 << 2 requiredBitSet[0] |= 1 << 2
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.Policy = int32(v) s.Policy = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -2384,7 +2384,7 @@ func (s *ScriptPolicyID) Encode(e *jx.Encoder) {
func (s *ScriptPolicyID) encodeFields(e *jx.Encoder) { func (s *ScriptPolicyID) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("ScriptPolicyID") e.FieldStart("ScriptPolicyID")
e.Int64(s.ScriptPolicyID) e.UInt64(s.ScriptPolicyID)
} }
} }
@ -2404,8 +2404,8 @@ func (s *ScriptPolicyID) Decode(d *jx.Decoder) error {
case "ScriptPolicyID": case "ScriptPolicyID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.ScriptPolicyID = int64(v) s.ScriptPolicyID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -2480,7 +2480,7 @@ func (s *ScriptPolicyUpdate) Encode(e *jx.Encoder) {
func (s *ScriptPolicyUpdate) encodeFields(e *jx.Encoder) { func (s *ScriptPolicyUpdate) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("ID") e.FieldStart("ID")
e.Int64(s.ID) e.UInt64(s.ID)
} }
{ {
if s.FromScriptID.Set { if s.FromScriptID.Set {
@ -2521,8 +2521,8 @@ func (s *ScriptPolicyUpdate) Decode(d *jx.Decoder) error {
case "ID": case "ID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.ID = int64(v) s.ID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -2627,7 +2627,7 @@ func (s *ScriptUpdate) Encode(e *jx.Encoder) {
func (s *ScriptUpdate) encodeFields(e *jx.Encoder) { func (s *ScriptUpdate) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("ID") e.FieldStart("ID")
e.Int64(s.ID) e.UInt64(s.ID)
} }
{ {
if s.Name.Set { if s.Name.Set {
@ -2675,8 +2675,8 @@ func (s *ScriptUpdate) Decode(d *jx.Decoder) error {
case "ID": case "ID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.ID = int64(v) s.ID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -2791,7 +2791,7 @@ func (s *Submission) Encode(e *jx.Encoder) {
func (s *Submission) encodeFields(e *jx.Encoder) { func (s *Submission) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("ID") e.FieldStart("ID")
e.Int64(s.ID) e.UInt64(s.ID)
} }
{ {
e.FieldStart("DisplayName") e.FieldStart("DisplayName")
@ -2803,27 +2803,27 @@ func (s *Submission) encodeFields(e *jx.Encoder) {
} }
{ {
e.FieldStart("GameID") e.FieldStart("GameID")
e.Int32(s.GameID) e.UInt32(s.GameID)
} }
{ {
e.FieldStart("CreatedAt") e.FieldStart("CreatedAt")
e.Int64(s.CreatedAt) e.UInt64(s.CreatedAt)
} }
{ {
e.FieldStart("UpdatedAt") e.FieldStart("UpdatedAt")
e.Int64(s.UpdatedAt) e.UInt64(s.UpdatedAt)
} }
{ {
e.FieldStart("Submitter") e.FieldStart("Submitter")
e.Int64(s.Submitter) e.UInt64(s.Submitter)
} }
{ {
e.FieldStart("AssetID") e.FieldStart("AssetID")
e.Int64(s.AssetID) e.UInt64(s.AssetID)
} }
{ {
e.FieldStart("AssetVersion") e.FieldStart("AssetVersion")
e.Int64(s.AssetVersion) e.UInt64(s.AssetVersion)
} }
{ {
if s.ValidatedAssetID.Set { if s.ValidatedAssetID.Set {
@ -2849,7 +2849,7 @@ func (s *Submission) encodeFields(e *jx.Encoder) {
} }
{ {
e.FieldStart("StatusID") e.FieldStart("StatusID")
e.Int32(s.StatusID) e.UInt32(s.StatusID)
} }
{ {
e.FieldStart("StatusMessage") e.FieldStart("StatusMessage")
@ -2887,8 +2887,8 @@ func (s *Submission) Decode(d *jx.Decoder) error {
case "ID": case "ID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.ID = int64(v) s.ID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -2923,8 +2923,8 @@ func (s *Submission) Decode(d *jx.Decoder) error {
case "GameID": case "GameID":
requiredBitSet[0] |= 1 << 3 requiredBitSet[0] |= 1 << 3
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.GameID = int32(v) s.GameID = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -2935,8 +2935,8 @@ func (s *Submission) Decode(d *jx.Decoder) error {
case "CreatedAt": case "CreatedAt":
requiredBitSet[0] |= 1 << 4 requiredBitSet[0] |= 1 << 4
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.CreatedAt = int64(v) s.CreatedAt = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -2947,8 +2947,8 @@ func (s *Submission) Decode(d *jx.Decoder) error {
case "UpdatedAt": case "UpdatedAt":
requiredBitSet[0] |= 1 << 5 requiredBitSet[0] |= 1 << 5
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.UpdatedAt = int64(v) s.UpdatedAt = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -2959,8 +2959,8 @@ func (s *Submission) Decode(d *jx.Decoder) error {
case "Submitter": case "Submitter":
requiredBitSet[0] |= 1 << 6 requiredBitSet[0] |= 1 << 6
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.Submitter = int64(v) s.Submitter = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -2971,8 +2971,8 @@ func (s *Submission) Decode(d *jx.Decoder) error {
case "AssetID": case "AssetID":
requiredBitSet[0] |= 1 << 7 requiredBitSet[0] |= 1 << 7
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.AssetID = int64(v) s.AssetID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -2983,8 +2983,8 @@ func (s *Submission) Decode(d *jx.Decoder) error {
case "AssetVersion": case "AssetVersion":
requiredBitSet[1] |= 1 << 0 requiredBitSet[1] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.AssetVersion = int64(v) s.AssetVersion = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -3037,8 +3037,8 @@ func (s *Submission) Decode(d *jx.Decoder) error {
case "StatusID": case "StatusID":
requiredBitSet[1] |= 1 << 5 requiredBitSet[1] |= 1 << 5
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.StatusID = int32(v) s.StatusID = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -3126,7 +3126,7 @@ func (s *SubmissionTriggerCreate) Encode(e *jx.Encoder) {
func (s *SubmissionTriggerCreate) encodeFields(e *jx.Encoder) { func (s *SubmissionTriggerCreate) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("AssetID") e.FieldStart("AssetID")
e.Int64(s.AssetID) e.UInt64(s.AssetID)
} }
} }
@ -3146,8 +3146,8 @@ func (s *SubmissionTriggerCreate) Decode(d *jx.Decoder) error {
case "AssetID": case "AssetID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.AssetID = int64(v) s.AssetID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -3222,7 +3222,7 @@ func (s *Submissions) Encode(e *jx.Encoder) {
func (s *Submissions) encodeFields(e *jx.Encoder) { func (s *Submissions) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("Total") e.FieldStart("Total")
e.Int64(s.Total) e.UInt64(s.Total)
} }
{ {
e.FieldStart("Submissions") e.FieldStart("Submissions")
@ -3251,8 +3251,8 @@ func (s *Submissions) Decode(d *jx.Decoder) error {
case "Total": case "Total":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.Total = int64(v) s.Total = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -3345,7 +3345,7 @@ func (s *User) Encode(e *jx.Encoder) {
func (s *User) encodeFields(e *jx.Encoder) { func (s *User) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("UserID") e.FieldStart("UserID")
e.Int64(s.UserID) e.UInt64(s.UserID)
} }
{ {
e.FieldStart("Username") e.FieldStart("Username")
@ -3375,8 +3375,8 @@ func (s *User) Decode(d *jx.Decoder) error {
case "UserID": case "UserID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.UserID = int64(v) s.UserID = uint64(v)
if err != nil { if err != nil {
return err return err
} }

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -49,7 +49,7 @@ type Mapfixes interface {
IfStatusThenUpdateAndGet(ctx context.Context, id int64, statuses []model.MapfixStatus, values OptionalMap) (model.Mapfix, error) IfStatusThenUpdateAndGet(ctx context.Context, id int64, statuses []model.MapfixStatus, values OptionalMap) (model.Mapfix, error)
Delete(ctx context.Context, id int64) error Delete(ctx context.Context, id int64) error
List(ctx context.Context, filters OptionalMap, page model.Page, sort ListSort) ([]model.Mapfix, error) List(ctx context.Context, filters OptionalMap, page model.Page, sort ListSort) ([]model.Mapfix, error)
ListWithTotal(ctx context.Context, filters OptionalMap, page model.Page, sort ListSort) (int64, []model.Mapfix, error) ListWithTotal(ctx context.Context, filters OptionalMap, page model.Page, sort ListSort) (uint64, []model.Mapfix, error)
} }
type Operations interface { type Operations interface {

@ -10,7 +10,17 @@ func Optional() OptionalMap {
return OptionalMap{filter: map[string]interface{}{}} return OptionalMap{filter: map[string]interface{}{}}
} }
func (q OptionalMap) Add(column string, value interface{}) OptionalMap { func (q OptionalMap) Add2(column string, value interface{}) OptionalMap {
q.filter[column] = value
return q
}
func (q OptionalMap) AddPostgresInt32(column string, value uint32) OptionalMap {
q.filter[column] = value
return q
}
func (q OptionalMap) AddPostgresInt64(column string, value uint64) OptionalMap {
q.filter[column] = value q.filter[column] = value
return q return q
} }

@ -131,7 +131,7 @@ func (env *Mapfixes) List(ctx context.Context, filters datastore.OptionalMap, pa
return maps, nil return maps, nil
} }
func (env *Mapfixes) ListWithTotal(ctx context.Context, filters datastore.OptionalMap, page model.Page, sort datastore.ListSort) (int64, []model.Mapfix, error) { func (env *Mapfixes) ListWithTotal(ctx context.Context, filters datastore.OptionalMap, page model.Page, sort datastore.ListSort) (uint64, []model.Mapfix, error) {
// grab page items // grab page items
maps, err := env.List(ctx, filters, page, sort) maps, err := env.List(ctx, filters, page, sort)
if err != nil{ if err != nil{
@ -144,5 +144,5 @@ func (env *Mapfixes) ListWithTotal(ctx context.Context, filters datastore.Option
return 0, nil, err return 0, nil, err
} }
return total, maps, nil return uint64(total), maps, nil
} }

@ -241,7 +241,7 @@ func (c *Client) sendActionMapfixAccepted(ctx context.Context, params ActionMapf
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.MapfixID)) return e.EncodeValue(conv.Uint64ToString(params.MapfixID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -350,7 +350,7 @@ func (c *Client) sendActionMapfixSubmitted(ctx context.Context, params ActionMap
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.MapfixID)) return e.EncodeValue(conv.Uint64ToString(params.MapfixID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -441,7 +441,7 @@ func (c *Client) sendActionMapfixUploaded(ctx context.Context, params ActionMapf
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.MapfixID)) return e.EncodeValue(conv.Uint64ToString(params.MapfixID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -532,7 +532,7 @@ func (c *Client) sendActionMapfixValidated(ctx context.Context, params ActionMap
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.MapfixID)) return e.EncodeValue(conv.Uint64ToString(params.MapfixID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -623,7 +623,7 @@ func (c *Client) sendActionOperationFailed(ctx context.Context, params ActionOpe
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int32ToString(params.OperationID)) return e.EncodeValue(conv.Uint32ToString(params.OperationID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -732,7 +732,7 @@ func (c *Client) sendActionSubmissionAccepted(ctx context.Context, params Action
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) return e.EncodeValue(conv.Uint64ToString(params.SubmissionID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -841,7 +841,7 @@ func (c *Client) sendActionSubmissionSubmitted(ctx context.Context, params Actio
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) return e.EncodeValue(conv.Uint64ToString(params.SubmissionID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -932,7 +932,7 @@ func (c *Client) sendActionSubmissionUploaded(ctx context.Context, params Action
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) return e.EncodeValue(conv.Uint64ToString(params.SubmissionID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -956,7 +956,7 @@ func (c *Client) sendActionSubmissionUploaded(ctx context.Context, params Action
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int64ToString(params.UploadedAssetID)) return e.EncodeValue(conv.Uint64ToString(params.UploadedAssetID))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -1041,7 +1041,7 @@ func (c *Client) sendActionSubmissionValidated(ctx context.Context, params Actio
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) return e.EncodeValue(conv.Uint64ToString(params.SubmissionID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -1432,7 +1432,7 @@ func (c *Client) sendGetScript(ctx context.Context, params GetScriptParams) (res
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.ScriptID)) return e.EncodeValue(conv.Uint64ToString(params.ScriptID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -1527,7 +1527,7 @@ func (c *Client) sendListScriptPolicy(ctx context.Context, params ListScriptPoli
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int32ToString(params.Page)) return e.EncodeValue(conv.Uint32ToString(params.Page))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -1541,7 +1541,7 @@ func (c *Client) sendListScriptPolicy(ctx context.Context, params ListScriptPoli
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int32ToString(params.Limit)) return e.EncodeValue(conv.Uint32ToString(params.Limit))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -1573,7 +1573,7 @@ func (c *Client) sendListScriptPolicy(ctx context.Context, params ListScriptPoli
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
if val, ok := params.ToScriptID.Get(); ok { if val, ok := params.ToScriptID.Get(); ok {
return e.EncodeValue(conv.Int64ToString(val)) return e.EncodeValue(conv.Uint64ToString(val))
} }
return nil return nil
}); err != nil { }); err != nil {
@ -1590,7 +1590,7 @@ func (c *Client) sendListScriptPolicy(ctx context.Context, params ListScriptPoli
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
if val, ok := params.Policy.Get(); ok { if val, ok := params.Policy.Get(); ok {
return e.EncodeValue(conv.Int32ToString(val)) return e.EncodeValue(conv.Uint32ToString(val))
} }
return nil return nil
}); err != nil { }); err != nil {
@ -1682,7 +1682,7 @@ func (c *Client) sendListScripts(ctx context.Context, params ListScriptsParams)
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int32ToString(params.Page)) return e.EncodeValue(conv.Uint32ToString(params.Page))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -1696,7 +1696,7 @@ func (c *Client) sendListScripts(ctx context.Context, params ListScriptsParams)
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int32ToString(params.Limit)) return e.EncodeValue(conv.Uint32ToString(params.Limit))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -1762,7 +1762,7 @@ func (c *Client) sendListScripts(ctx context.Context, params ListScriptsParams)
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
if val, ok := params.ResourceType.Get(); ok { if val, ok := params.ResourceType.Get(); ok {
return e.EncodeValue(conv.Int32ToString(val)) return e.EncodeValue(conv.Uint32ToString(val))
} }
return nil return nil
}); err != nil { }); err != nil {
@ -1779,7 +1779,7 @@ func (c *Client) sendListScripts(ctx context.Context, params ListScriptsParams)
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
if val, ok := params.ResourceID.Get(); ok { if val, ok := params.ResourceID.Get(); ok {
return e.EncodeValue(conv.Int64ToString(val)) return e.EncodeValue(conv.Uint64ToString(val))
} }
return nil return nil
}); err != nil { }); err != nil {
@ -1866,7 +1866,7 @@ func (c *Client) sendUpdateMapfixValidatedModel(ctx context.Context, params Upda
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.MapfixID)) return e.EncodeValue(conv.Uint64ToString(params.MapfixID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -1890,7 +1890,7 @@ func (c *Client) sendUpdateMapfixValidatedModel(ctx context.Context, params Upda
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int64ToString(params.ValidatedModelID)) return e.EncodeValue(conv.Uint64ToString(params.ValidatedModelID))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -1904,7 +1904,7 @@ func (c *Client) sendUpdateMapfixValidatedModel(ctx context.Context, params Upda
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int64ToString(params.ValidatedModelVersion)) return e.EncodeValue(conv.Uint64ToString(params.ValidatedModelVersion))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -1989,7 +1989,7 @@ func (c *Client) sendUpdateSubmissionValidatedModel(ctx context.Context, params
Explode: false, Explode: false,
}) })
if err := func() error { if err := func() error {
return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) return e.EncodeValue(conv.Uint64ToString(params.SubmissionID))
}(); err != nil { }(); err != nil {
return res, errors.Wrap(err, "encode path") return res, errors.Wrap(err, "encode path")
} }
@ -2013,7 +2013,7 @@ func (c *Client) sendUpdateSubmissionValidatedModel(ctx context.Context, params
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int64ToString(params.ValidatedModelID)) return e.EncodeValue(conv.Uint64ToString(params.ValidatedModelID))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }
@ -2027,7 +2027,7 @@ func (c *Client) sendUpdateSubmissionValidatedModel(ctx context.Context, params
} }
if err := q.EncodeParam(cfg, func(e uri.Encoder) error { if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
return e.EncodeValue(conv.Int64ToString(params.ValidatedModelVersion)) return e.EncodeValue(conv.Uint64ToString(params.ValidatedModelVersion))
}); err != nil { }); err != nil {
return res, errors.Wrap(err, "encode query") return res, errors.Wrap(err, "encode query")
} }

@ -23,7 +23,7 @@ func (s *Error) Encode(e *jx.Encoder) {
func (s *Error) encodeFields(e *jx.Encoder) { func (s *Error) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("code") e.FieldStart("code")
e.Int64(s.Code) e.UInt64(s.Code)
} }
{ {
e.FieldStart("message") e.FieldStart("message")
@ -48,8 +48,8 @@ func (s *Error) Decode(d *jx.Decoder) error {
case "code": case "code":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.Code = int64(v) s.Code = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -136,11 +136,11 @@ func (s *MapfixCreate) Encode(e *jx.Encoder) {
func (s *MapfixCreate) encodeFields(e *jx.Encoder) { func (s *MapfixCreate) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("OperationID") e.FieldStart("OperationID")
e.Int32(s.OperationID) e.UInt32(s.OperationID)
} }
{ {
e.FieldStart("AssetOwner") e.FieldStart("AssetOwner")
e.Int64(s.AssetOwner) e.UInt64(s.AssetOwner)
} }
{ {
e.FieldStart("DisplayName") e.FieldStart("DisplayName")
@ -152,19 +152,19 @@ func (s *MapfixCreate) encodeFields(e *jx.Encoder) {
} }
{ {
e.FieldStart("GameID") e.FieldStart("GameID")
e.Int32(s.GameID) e.UInt32(s.GameID)
} }
{ {
e.FieldStart("AssetID") e.FieldStart("AssetID")
e.Int64(s.AssetID) e.UInt64(s.AssetID)
} }
{ {
e.FieldStart("AssetVersion") e.FieldStart("AssetVersion")
e.Int64(s.AssetVersion) e.UInt64(s.AssetVersion)
} }
{ {
e.FieldStart("TargetAssetID") e.FieldStart("TargetAssetID")
e.Int64(s.TargetAssetID) e.UInt64(s.TargetAssetID)
} }
} }
@ -191,8 +191,8 @@ func (s *MapfixCreate) Decode(d *jx.Decoder) error {
case "OperationID": case "OperationID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.OperationID = int32(v) s.OperationID = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -203,8 +203,8 @@ func (s *MapfixCreate) Decode(d *jx.Decoder) error {
case "AssetOwner": case "AssetOwner":
requiredBitSet[0] |= 1 << 1 requiredBitSet[0] |= 1 << 1
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.AssetOwner = int64(v) s.AssetOwner = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -239,8 +239,8 @@ func (s *MapfixCreate) Decode(d *jx.Decoder) error {
case "GameID": case "GameID":
requiredBitSet[0] |= 1 << 4 requiredBitSet[0] |= 1 << 4
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.GameID = int32(v) s.GameID = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -251,8 +251,8 @@ func (s *MapfixCreate) Decode(d *jx.Decoder) error {
case "AssetID": case "AssetID":
requiredBitSet[0] |= 1 << 5 requiredBitSet[0] |= 1 << 5
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.AssetID = int64(v) s.AssetID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -263,8 +263,8 @@ func (s *MapfixCreate) Decode(d *jx.Decoder) error {
case "AssetVersion": case "AssetVersion":
requiredBitSet[0] |= 1 << 6 requiredBitSet[0] |= 1 << 6
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.AssetVersion = int64(v) s.AssetVersion = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -275,8 +275,8 @@ func (s *MapfixCreate) Decode(d *jx.Decoder) error {
case "TargetAssetID": case "TargetAssetID":
requiredBitSet[0] |= 1 << 7 requiredBitSet[0] |= 1 << 7
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.TargetAssetID = int64(v) s.TargetAssetID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -351,7 +351,7 @@ func (s *MapfixID) Encode(e *jx.Encoder) {
func (s *MapfixID) encodeFields(e *jx.Encoder) { func (s *MapfixID) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("MapfixID") e.FieldStart("MapfixID")
e.Int64(s.MapfixID) e.UInt64(s.MapfixID)
} }
} }
@ -371,8 +371,8 @@ func (s *MapfixID) Decode(d *jx.Decoder) error {
case "MapfixID": case "MapfixID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.MapfixID = int64(v) s.MapfixID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -436,37 +436,37 @@ func (s *MapfixID) UnmarshalJSON(data []byte) error {
return s.Decode(d) return s.Decode(d)
} }
// Encode encodes int64 as json. // Encode encodes uint64 as json.
func (o OptInt64) Encode(e *jx.Encoder) { func (o OptUint64) Encode(e *jx.Encoder) {
if !o.Set { if !o.Set {
return return
} }
e.Int64(int64(o.Value)) e.UInt64(uint64(o.Value))
} }
// Decode decodes int64 from json. // Decode decodes uint64 from json.
func (o *OptInt64) Decode(d *jx.Decoder) error { func (o *OptUint64) Decode(d *jx.Decoder) error {
if o == nil { if o == nil {
return errors.New("invalid: unable to decode OptInt64 to nil") return errors.New("invalid: unable to decode OptUint64 to nil")
} }
o.Set = true o.Set = true
v, err := d.Int64() v, err := d.UInt64()
if err != nil { if err != nil {
return err return err
} }
o.Value = int64(v) o.Value = uint64(v)
return nil return nil
} }
// MarshalJSON implements stdjson.Marshaler. // MarshalJSON implements stdjson.Marshaler.
func (s OptInt64) MarshalJSON() ([]byte, error) { func (s OptUint64) MarshalJSON() ([]byte, error) {
e := jx.Encoder{} e := jx.Encoder{}
s.Encode(&e) s.Encode(&e)
return e.Bytes(), nil return e.Bytes(), nil
} }
// UnmarshalJSON implements stdjson.Unmarshaler. // UnmarshalJSON implements stdjson.Unmarshaler.
func (s *OptInt64) UnmarshalJSON(data []byte) error { func (s *OptUint64) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data) d := jx.DecodeBytes(data)
return s.Decode(d) return s.Decode(d)
} }
@ -482,7 +482,7 @@ func (s *Script) Encode(e *jx.Encoder) {
func (s *Script) encodeFields(e *jx.Encoder) { func (s *Script) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("ID") e.FieldStart("ID")
e.Int64(s.ID) e.UInt64(s.ID)
} }
{ {
e.FieldStart("Name") e.FieldStart("Name")
@ -498,11 +498,11 @@ func (s *Script) encodeFields(e *jx.Encoder) {
} }
{ {
e.FieldStart("ResourceType") e.FieldStart("ResourceType")
e.Int32(s.ResourceType) e.UInt32(s.ResourceType)
} }
{ {
e.FieldStart("ResourceID") e.FieldStart("ResourceID")
e.Int64(s.ResourceID) e.UInt64(s.ResourceID)
} }
} }
@ -527,8 +527,8 @@ func (s *Script) Decode(d *jx.Decoder) error {
case "ID": case "ID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.ID = int64(v) s.ID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -575,8 +575,8 @@ func (s *Script) Decode(d *jx.Decoder) error {
case "ResourceType": case "ResourceType":
requiredBitSet[0] |= 1 << 4 requiredBitSet[0] |= 1 << 4
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.ResourceType = int32(v) s.ResourceType = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -587,8 +587,8 @@ func (s *Script) Decode(d *jx.Decoder) error {
case "ResourceID": case "ResourceID":
requiredBitSet[0] |= 1 << 5 requiredBitSet[0] |= 1 << 5
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.ResourceID = int64(v) s.ResourceID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -671,7 +671,7 @@ func (s *ScriptCreate) encodeFields(e *jx.Encoder) {
} }
{ {
e.FieldStart("ResourceType") e.FieldStart("ResourceType")
e.Int32(s.ResourceType) e.UInt32(s.ResourceType)
} }
{ {
if s.ResourceID.Set { if s.ResourceID.Set {
@ -724,8 +724,8 @@ func (s *ScriptCreate) Decode(d *jx.Decoder) error {
case "ResourceType": case "ResourceType":
requiredBitSet[0] |= 1 << 2 requiredBitSet[0] |= 1 << 2
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.ResourceType = int32(v) s.ResourceType = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -810,7 +810,7 @@ func (s *ScriptID) Encode(e *jx.Encoder) {
func (s *ScriptID) encodeFields(e *jx.Encoder) { func (s *ScriptID) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("ScriptID") e.FieldStart("ScriptID")
e.Int64(s.ScriptID) e.UInt64(s.ScriptID)
} }
} }
@ -830,8 +830,8 @@ func (s *ScriptID) Decode(d *jx.Decoder) error {
case "ScriptID": case "ScriptID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.ScriptID = int64(v) s.ScriptID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -906,7 +906,7 @@ func (s *ScriptPolicy) Encode(e *jx.Encoder) {
func (s *ScriptPolicy) encodeFields(e *jx.Encoder) { func (s *ScriptPolicy) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("ID") e.FieldStart("ID")
e.Int64(s.ID) e.UInt64(s.ID)
} }
{ {
e.FieldStart("FromScriptHash") e.FieldStart("FromScriptHash")
@ -914,11 +914,11 @@ func (s *ScriptPolicy) encodeFields(e *jx.Encoder) {
} }
{ {
e.FieldStart("ToScriptID") e.FieldStart("ToScriptID")
e.Int64(s.ToScriptID) e.UInt64(s.ToScriptID)
} }
{ {
e.FieldStart("Policy") e.FieldStart("Policy")
e.Int32(s.Policy) e.UInt32(s.Policy)
} }
} }
@ -941,8 +941,8 @@ func (s *ScriptPolicy) Decode(d *jx.Decoder) error {
case "ID": case "ID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.ID = int64(v) s.ID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -965,8 +965,8 @@ func (s *ScriptPolicy) Decode(d *jx.Decoder) error {
case "ToScriptID": case "ToScriptID":
requiredBitSet[0] |= 1 << 2 requiredBitSet[0] |= 1 << 2
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.ToScriptID = int64(v) s.ToScriptID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -977,8 +977,8 @@ func (s *ScriptPolicy) Decode(d *jx.Decoder) error {
case "Policy": case "Policy":
requiredBitSet[0] |= 1 << 3 requiredBitSet[0] |= 1 << 3
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.Policy = int32(v) s.Policy = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -1053,15 +1053,15 @@ func (s *ScriptPolicyCreate) Encode(e *jx.Encoder) {
func (s *ScriptPolicyCreate) encodeFields(e *jx.Encoder) { func (s *ScriptPolicyCreate) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("FromScriptID") e.FieldStart("FromScriptID")
e.Int64(s.FromScriptID) e.UInt64(s.FromScriptID)
} }
{ {
e.FieldStart("ToScriptID") e.FieldStart("ToScriptID")
e.Int64(s.ToScriptID) e.UInt64(s.ToScriptID)
} }
{ {
e.FieldStart("Policy") e.FieldStart("Policy")
e.Int32(s.Policy) e.UInt32(s.Policy)
} }
} }
@ -1083,8 +1083,8 @@ func (s *ScriptPolicyCreate) Decode(d *jx.Decoder) error {
case "FromScriptID": case "FromScriptID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.FromScriptID = int64(v) s.FromScriptID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -1095,8 +1095,8 @@ func (s *ScriptPolicyCreate) Decode(d *jx.Decoder) error {
case "ToScriptID": case "ToScriptID":
requiredBitSet[0] |= 1 << 1 requiredBitSet[0] |= 1 << 1
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.ToScriptID = int64(v) s.ToScriptID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -1107,8 +1107,8 @@ func (s *ScriptPolicyCreate) Decode(d *jx.Decoder) error {
case "Policy": case "Policy":
requiredBitSet[0] |= 1 << 2 requiredBitSet[0] |= 1 << 2
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.Policy = int32(v) s.Policy = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -1183,7 +1183,7 @@ func (s *ScriptPolicyID) Encode(e *jx.Encoder) {
func (s *ScriptPolicyID) encodeFields(e *jx.Encoder) { func (s *ScriptPolicyID) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("ScriptPolicyID") e.FieldStart("ScriptPolicyID")
e.Int64(s.ScriptPolicyID) e.UInt64(s.ScriptPolicyID)
} }
} }
@ -1203,8 +1203,8 @@ func (s *ScriptPolicyID) Decode(d *jx.Decoder) error {
case "ScriptPolicyID": case "ScriptPolicyID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.ScriptPolicyID = int64(v) s.ScriptPolicyID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -1279,11 +1279,11 @@ func (s *SubmissionCreate) Encode(e *jx.Encoder) {
func (s *SubmissionCreate) encodeFields(e *jx.Encoder) { func (s *SubmissionCreate) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("OperationID") e.FieldStart("OperationID")
e.Int32(s.OperationID) e.UInt32(s.OperationID)
} }
{ {
e.FieldStart("AssetOwner") e.FieldStart("AssetOwner")
e.Int64(s.AssetOwner) e.UInt64(s.AssetOwner)
} }
{ {
e.FieldStart("DisplayName") e.FieldStart("DisplayName")
@ -1295,15 +1295,15 @@ func (s *SubmissionCreate) encodeFields(e *jx.Encoder) {
} }
{ {
e.FieldStart("GameID") e.FieldStart("GameID")
e.Int32(s.GameID) e.UInt32(s.GameID)
} }
{ {
e.FieldStart("AssetID") e.FieldStart("AssetID")
e.Int64(s.AssetID) e.UInt64(s.AssetID)
} }
{ {
e.FieldStart("AssetVersion") e.FieldStart("AssetVersion")
e.Int64(s.AssetVersion) e.UInt64(s.AssetVersion)
} }
} }
@ -1329,8 +1329,8 @@ func (s *SubmissionCreate) Decode(d *jx.Decoder) error {
case "OperationID": case "OperationID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.OperationID = int32(v) s.OperationID = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -1341,8 +1341,8 @@ func (s *SubmissionCreate) Decode(d *jx.Decoder) error {
case "AssetOwner": case "AssetOwner":
requiredBitSet[0] |= 1 << 1 requiredBitSet[0] |= 1 << 1
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.AssetOwner = int64(v) s.AssetOwner = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -1377,8 +1377,8 @@ func (s *SubmissionCreate) Decode(d *jx.Decoder) error {
case "GameID": case "GameID":
requiredBitSet[0] |= 1 << 4 requiredBitSet[0] |= 1 << 4
if err := func() error { if err := func() error {
v, err := d.Int32() v, err := d.UInt32()
s.GameID = int32(v) s.GameID = uint32(v)
if err != nil { if err != nil {
return err return err
} }
@ -1389,8 +1389,8 @@ func (s *SubmissionCreate) Decode(d *jx.Decoder) error {
case "AssetID": case "AssetID":
requiredBitSet[0] |= 1 << 5 requiredBitSet[0] |= 1 << 5
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.AssetID = int64(v) s.AssetID = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -1401,8 +1401,8 @@ func (s *SubmissionCreate) Decode(d *jx.Decoder) error {
case "AssetVersion": case "AssetVersion":
requiredBitSet[0] |= 1 << 6 requiredBitSet[0] |= 1 << 6
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.AssetVersion = int64(v) s.AssetVersion = uint64(v)
if err != nil { if err != nil {
return err return err
} }
@ -1477,7 +1477,7 @@ func (s *SubmissionID) Encode(e *jx.Encoder) {
func (s *SubmissionID) encodeFields(e *jx.Encoder) { func (s *SubmissionID) encodeFields(e *jx.Encoder) {
{ {
e.FieldStart("SubmissionID") e.FieldStart("SubmissionID")
e.Int64(s.SubmissionID) e.UInt64(s.SubmissionID)
} }
} }
@ -1497,8 +1497,8 @@ func (s *SubmissionID) Decode(d *jx.Decoder) error {
case "SubmissionID": case "SubmissionID":
requiredBitSet[0] |= 1 << 0 requiredBitSet[0] |= 1 << 0
if err := func() error { if err := func() error {
v, err := d.Int64() v, err := d.UInt64()
s.SubmissionID = int64(v) s.SubmissionID = uint64(v)
if err != nil { if err != nil {
return err return err
} }

@ -18,7 +18,7 @@ import (
// ActionMapfixAcceptedParams is parameters of actionMapfixAccepted operation. // ActionMapfixAcceptedParams is parameters of actionMapfixAccepted operation.
type ActionMapfixAcceptedParams struct { type ActionMapfixAcceptedParams struct {
// The unique identifier for a submission. // The unique identifier for a submission.
MapfixID int64 MapfixID uint64
StatusMessage string StatusMessage string
} }
@ -28,7 +28,7 @@ func unpackActionMapfixAcceptedParams(packed middleware.Parameters) (params Acti
Name: "MapfixID", Name: "MapfixID",
In: "path", In: "path",
} }
params.MapfixID = packed[key].(int64) params.MapfixID = packed[key].(uint64)
} }
{ {
key := middleware.ParameterKey{ key := middleware.ParameterKey{
@ -66,7 +66,7 @@ func decodeActionMapfixAcceptedParams(args [1]string, argsEscaped bool, r *http.
return err return err
} }
c, err := conv.ToInt64(val) c, err := conv.ToUint64(val)
if err != nil { if err != nil {
return err return err
} }
@ -162,7 +162,7 @@ func decodeActionMapfixAcceptedParams(args [1]string, argsEscaped bool, r *http.
// ActionMapfixSubmittedParams is parameters of actionMapfixSubmitted operation. // ActionMapfixSubmittedParams is parameters of actionMapfixSubmitted operation.
type ActionMapfixSubmittedParams struct { type ActionMapfixSubmittedParams struct {
// The unique identifier for a submission. // The unique identifier for a submission.
MapfixID int64 MapfixID uint64
} }
func unpackActionMapfixSubmittedParams(packed middleware.Parameters) (params ActionMapfixSubmittedParams) { func unpackActionMapfixSubmittedParams(packed middleware.Parameters) (params ActionMapfixSubmittedParams) {
@ -171,7 +171,7 @@ func unpackActionMapfixSubmittedParams(packed middleware.Parameters) (params Act
Name: "MapfixID", Name: "MapfixID",
In: "path", In: "path",
} }
params.MapfixID = packed[key].(int64) params.MapfixID = packed[key].(uint64)
} }
return params return params
} }
@ -201,7 +201,7 @@ func decodeActionMapfixSubmittedParams(args [1]string, argsEscaped bool, r *http
return err return err
} }
c, err := conv.ToInt64(val) c, err := conv.ToUint64(val)
if err != nil { if err != nil {
return err return err
} }
@ -245,7 +245,7 @@ func decodeActionMapfixSubmittedParams(args [1]string, argsEscaped bool, r *http
// ActionMapfixUploadedParams is parameters of actionMapfixUploaded operation. // ActionMapfixUploadedParams is parameters of actionMapfixUploaded operation.
type ActionMapfixUploadedParams struct { type ActionMapfixUploadedParams struct {
// The unique identifier for a submission. // The unique identifier for a submission.
MapfixID int64 MapfixID uint64
} }
func unpackActionMapfixUploadedParams(packed middleware.Parameters) (params ActionMapfixUploadedParams) { func unpackActionMapfixUploadedParams(packed middleware.Parameters) (params ActionMapfixUploadedParams) {
@ -254,7 +254,7 @@ func unpackActionMapfixUploadedParams(packed middleware.Parameters) (params Acti
Name: "MapfixID", Name: "MapfixID",
In: "path", In: "path",
} }
params.MapfixID = packed[key].(int64) params.MapfixID = packed[key].(uint64)
} }
return params return params
} }
@ -284,7 +284,7 @@ func decodeActionMapfixUploadedParams(args [1]string, argsEscaped bool, r *http.
return err return err
} }
c, err := conv.ToInt64(val) c, err := conv.ToUint64(val)
if err != nil { if err != nil {
return err return err
} }
@ -328,7 +328,7 @@ func decodeActionMapfixUploadedParams(args [1]string, argsEscaped bool, r *http.
// ActionMapfixValidatedParams is parameters of actionMapfixValidated operation. // ActionMapfixValidatedParams is parameters of actionMapfixValidated operation.
type ActionMapfixValidatedParams struct { type ActionMapfixValidatedParams struct {
// The unique identifier for a submission. // The unique identifier for a submission.
MapfixID int64 MapfixID uint64
} }
func unpackActionMapfixValidatedParams(packed middleware.Parameters) (params ActionMapfixValidatedParams) { func unpackActionMapfixValidatedParams(packed middleware.Parameters) (params ActionMapfixValidatedParams) {
@ -337,7 +337,7 @@ func unpackActionMapfixValidatedParams(packed middleware.Parameters) (params Act
Name: "MapfixID", Name: "MapfixID",
In: "path", In: "path",
} }
params.MapfixID = packed[key].(int64) params.MapfixID = packed[key].(uint64)
} }
return params return params
} }
@ -367,7 +367,7 @@ func decodeActionMapfixValidatedParams(args [1]string, argsEscaped bool, r *http
return err return err
} }
c, err := conv.ToInt64(val) c, err := conv.ToUint64(val)
if err != nil { if err != nil {
return err return err
} }
@ -411,7 +411,7 @@ func decodeActionMapfixValidatedParams(args [1]string, argsEscaped bool, r *http
// ActionOperationFailedParams is parameters of actionOperationFailed operation. // ActionOperationFailedParams is parameters of actionOperationFailed operation.
type ActionOperationFailedParams struct { type ActionOperationFailedParams struct {
// The unique identifier for a long-running operation. // The unique identifier for a long-running operation.
OperationID int32 OperationID uint32
StatusMessage string StatusMessage string
} }
@ -421,7 +421,7 @@ func unpackActionOperationFailedParams(packed middleware.Parameters) (params Act
Name: "OperationID", Name: "OperationID",
In: "path", In: "path",
} }
params.OperationID = packed[key].(int32) params.OperationID = packed[key].(uint32)
} }
{ {
key := middleware.ParameterKey{ key := middleware.ParameterKey{
@ -459,7 +459,7 @@ func decodeActionOperationFailedParams(args [1]string, argsEscaped bool, r *http
return err return err
} }
c, err := conv.ToInt32(val) c, err := conv.ToUint32(val)
if err != nil { if err != nil {
return err return err
} }
@ -555,7 +555,7 @@ func decodeActionOperationFailedParams(args [1]string, argsEscaped bool, r *http
// ActionSubmissionAcceptedParams is parameters of actionSubmissionAccepted operation. // ActionSubmissionAcceptedParams is parameters of actionSubmissionAccepted operation.
type ActionSubmissionAcceptedParams struct { type ActionSubmissionAcceptedParams struct {
// The unique identifier for a submission. // The unique identifier for a submission.
SubmissionID int64 SubmissionID uint64
StatusMessage string StatusMessage string
} }
@ -565,7 +565,7 @@ func unpackActionSubmissionAcceptedParams(packed middleware.Parameters) (params
Name: "SubmissionID", Name: "SubmissionID",
In: "path", In: "path",
} }
params.SubmissionID = packed[key].(int64) params.SubmissionID = packed[key].(uint64)
} }
{ {
key := middleware.ParameterKey{ key := middleware.ParameterKey{
@ -603,7 +603,7 @@ func decodeActionSubmissionAcceptedParams(args [1]string, argsEscaped bool, r *h
return err return err
} }
c, err := conv.ToInt64(val) c, err := conv.ToUint64(val)
if err != nil { if err != nil {
return err return err
} }
@ -699,7 +699,7 @@ func decodeActionSubmissionAcceptedParams(args [1]string, argsEscaped bool, r *h
// ActionSubmissionSubmittedParams is parameters of actionSubmissionSubmitted operation. // ActionSubmissionSubmittedParams is parameters of actionSubmissionSubmitted operation.
type ActionSubmissionSubmittedParams struct { type ActionSubmissionSubmittedParams struct {
// The unique identifier for a submission. // The unique identifier for a submission.
SubmissionID int64 SubmissionID uint64
} }
func unpackActionSubmissionSubmittedParams(packed middleware.Parameters) (params ActionSubmissionSubmittedParams) { func unpackActionSubmissionSubmittedParams(packed middleware.Parameters) (params ActionSubmissionSubmittedParams) {
@ -708,7 +708,7 @@ func unpackActionSubmissionSubmittedParams(packed middleware.Parameters) (params
Name: "SubmissionID", Name: "SubmissionID",
In: "path", In: "path",
} }
params.SubmissionID = packed[key].(int64) params.SubmissionID = packed[key].(uint64)
} }
return params return params
} }
@ -738,7 +738,7 @@ func decodeActionSubmissionSubmittedParams(args [1]string, argsEscaped bool, r *
return err return err
} }
c, err := conv.ToInt64(val) c, err := conv.ToUint64(val)
if err != nil { if err != nil {
return err return err
} }
@ -782,8 +782,8 @@ func decodeActionSubmissionSubmittedParams(args [1]string, argsEscaped bool, r *
// ActionSubmissionUploadedParams is parameters of actionSubmissionUploaded operation. // ActionSubmissionUploadedParams is parameters of actionSubmissionUploaded operation.
type ActionSubmissionUploadedParams struct { type ActionSubmissionUploadedParams struct {
// The unique identifier for a submission. // The unique identifier for a submission.
SubmissionID int64 SubmissionID uint64
UploadedAssetID int64 UploadedAssetID uint64
} }
func unpackActionSubmissionUploadedParams(packed middleware.Parameters) (params ActionSubmissionUploadedParams) { func unpackActionSubmissionUploadedParams(packed middleware.Parameters) (params ActionSubmissionUploadedParams) {
@ -792,14 +792,14 @@ func unpackActionSubmissionUploadedParams(packed middleware.Parameters) (params
Name: "SubmissionID", Name: "SubmissionID",
In: "path", In: "path",
} }
params.SubmissionID = packed[key].(int64) params.SubmissionID = packed[key].(uint64)
} }
{ {
key := middleware.ParameterKey{ key := middleware.ParameterKey{
Name: "UploadedAssetID", Name: "UploadedAssetID",
In: "query", In: "query",
} }
params.UploadedAssetID = packed[key].(int64) params.UploadedAssetID = packed[key].(uint64)
} }
return params return params
} }
@ -830,7 +830,7 @@ func decodeActionSubmissionUploadedParams(args [1]string, argsEscaped bool, r *h
return err return err
} }
c, err := conv.ToInt64(val) c, err := conv.ToUint64(val)
if err != nil { if err != nil {
return err return err
} }
@ -883,7 +883,7 @@ func decodeActionSubmissionUploadedParams(args [1]string, argsEscaped bool, r *h
return err return err
} }
c, err := conv.ToInt64(val) c, err := conv.ToUint64(val)
if err != nil { if err != nil {
return err return err
} }
@ -927,7 +927,7 @@ func decodeActionSubmissionUploadedParams(args [1]string, argsEscaped bool, r *h
// ActionSubmissionValidatedParams is parameters of actionSubmissionValidated operation. // ActionSubmissionValidatedParams is parameters of actionSubmissionValidated operation.
type ActionSubmissionValidatedParams struct { type ActionSubmissionValidatedParams struct {
// The unique identifier for a submission. // The unique identifier for a submission.
SubmissionID int64 SubmissionID uint64
} }
func unpackActionSubmissionValidatedParams(packed middleware.Parameters) (params ActionSubmissionValidatedParams) { func unpackActionSubmissionValidatedParams(packed middleware.Parameters) (params ActionSubmissionValidatedParams) {
@ -936,7 +936,7 @@ func unpackActionSubmissionValidatedParams(packed middleware.Parameters) (params
Name: "SubmissionID", Name: "SubmissionID",
In: "path", In: "path",
} }
params.SubmissionID = packed[key].(int64) params.SubmissionID = packed[key].(uint64)
} }
return params return params
} }
@ -966,7 +966,7 @@ func decodeActionSubmissionValidatedParams(args [1]string, argsEscaped bool, r *
return err return err
} }
c, err := conv.ToInt64(val) c, err := conv.ToUint64(val)
if err != nil { if err != nil {
return err return err
} }
@ -1010,7 +1010,7 @@ func decodeActionSubmissionValidatedParams(args [1]string, argsEscaped bool, r *
// GetScriptParams is parameters of getScript operation. // GetScriptParams is parameters of getScript operation.
type GetScriptParams struct { type GetScriptParams struct {
// The unique identifier for a script. // The unique identifier for a script.
ScriptID int64 ScriptID uint64
} }
func unpackGetScriptParams(packed middleware.Parameters) (params GetScriptParams) { func unpackGetScriptParams(packed middleware.Parameters) (params GetScriptParams) {
@ -1019,7 +1019,7 @@ func unpackGetScriptParams(packed middleware.Parameters) (params GetScriptParams
Name: "ScriptID", Name: "ScriptID",
In: "path", In: "path",
} }
params.ScriptID = packed[key].(int64) params.ScriptID = packed[key].(uint64)
} }
return params return params
} }
@ -1049,7 +1049,7 @@ func decodeGetScriptParams(args [1]string, argsEscaped bool, r *http.Request) (p
return err return err
} }
c, err := conv.ToInt64(val) c, err := conv.ToUint64(val)
if err != nil { if err != nil {
return err return err
} }
@ -1092,11 +1092,11 @@ func decodeGetScriptParams(args [1]string, argsEscaped bool, r *http.Request) (p
// ListScriptPolicyParams is parameters of listScriptPolicy operation. // ListScriptPolicyParams is parameters of listScriptPolicy operation.
type ListScriptPolicyParams struct { type ListScriptPolicyParams struct {
Page int32 Page uint32
Limit int32 Limit uint32
FromScriptHash OptString FromScriptHash OptString
ToScriptID OptInt64 ToScriptID OptUint64
Policy OptInt32 Policy OptUint32
} }
func unpackListScriptPolicyParams(packed middleware.Parameters) (params ListScriptPolicyParams) { func unpackListScriptPolicyParams(packed middleware.Parameters) (params ListScriptPolicyParams) {
@ -1105,14 +1105,14 @@ func unpackListScriptPolicyParams(packed middleware.Parameters) (params ListScri
Name: "Page", Name: "Page",
In: "query", In: "query",
} }
params.Page = packed[key].(int32) params.Page = packed[key].(uint32)
} }
{ {
key := middleware.ParameterKey{ key := middleware.ParameterKey{
Name: "Limit", Name: "Limit",
In: "query", In: "query",
} }
params.Limit = packed[key].(int32) params.Limit = packed[key].(uint32)
} }
{ {
key := middleware.ParameterKey{ key := middleware.ParameterKey{
@ -1129,7 +1129,7 @@ func unpackListScriptPolicyParams(packed middleware.Parameters) (params ListScri
In: "query", In: "query",
} }
if v, ok := packed[key]; ok { if v, ok := packed[key]; ok {
params.ToScriptID = v.(OptInt64) params.ToScriptID = v.(OptUint64)
} }
} }
{ {
@ -1138,7 +1138,7 @@ func unpackListScriptPolicyParams(packed middleware.Parameters) (params ListScri
In: "query", In: "query",
} }
if v, ok := packed[key]; ok { if v, ok := packed[key]; ok {
params.Policy = v.(OptInt32) params.Policy = v.(OptUint32)
} }
} }
return params return params
@ -1161,7 +1161,7 @@ func decodeListScriptPolicyParams(args [0]string, argsEscaped bool, r *http.Requ
return err return err
} }
c, err := conv.ToInt32(val) c, err := conv.ToUint32(val)
if err != nil { if err != nil {
return err return err
} }
@ -1214,7 +1214,7 @@ func decodeListScriptPolicyParams(args [0]string, argsEscaped bool, r *http.Requ
return err return err
} }
c, err := conv.ToInt32(val) c, err := conv.ToUint32(val)
if err != nil { if err != nil {
return err return err
} }
@ -1326,14 +1326,14 @@ func decodeListScriptPolicyParams(args [0]string, argsEscaped bool, r *http.Requ
if err := q.HasParam(cfg); err == nil { if err := q.HasParam(cfg); err == nil {
if err := q.DecodeParam(cfg, func(d uri.Decoder) error { if err := q.DecodeParam(cfg, func(d uri.Decoder) error {
var paramsDotToScriptIDVal int64 var paramsDotToScriptIDVal uint64
if err := func() error { if err := func() error {
val, err := d.DecodeValue() val, err := d.DecodeValue()
if err != nil { if err != nil {
return err return err
} }
c, err := conv.ToInt64(val) c, err := conv.ToUint64(val)
if err != nil { if err != nil {
return err return err
} }
@ -1391,14 +1391,14 @@ func decodeListScriptPolicyParams(args [0]string, argsEscaped bool, r *http.Requ
if err := q.HasParam(cfg); err == nil { if err := q.HasParam(cfg); err == nil {
if err := q.DecodeParam(cfg, func(d uri.Decoder) error { if err := q.DecodeParam(cfg, func(d uri.Decoder) error {
var paramsDotPolicyVal int32 var paramsDotPolicyVal uint32
if err := func() error { if err := func() error {
val, err := d.DecodeValue() val, err := d.DecodeValue()
if err != nil { if err != nil {
return err return err
} }
c, err := conv.ToInt32(val) c, err := conv.ToUint32(val)
if err != nil { if err != nil {
return err return err
} }
@ -1451,13 +1451,13 @@ func decodeListScriptPolicyParams(args [0]string, argsEscaped bool, r *http.Requ
// ListScriptsParams is parameters of listScripts operation. // ListScriptsParams is parameters of listScripts operation.
type ListScriptsParams struct { type ListScriptsParams struct {
Page int32 Page uint32
Limit int32 Limit uint32
Hash OptString Hash OptString
Name OptString Name OptString
Source OptString Source OptString
ResourceType OptInt32 ResourceType OptUint32
ResourceID OptInt64 ResourceID OptUint64
} }
func unpackListScriptsParams(packed middleware.Parameters) (params ListScriptsParams) { func unpackListScriptsParams(packed middleware.Parameters) (params ListScriptsParams) {
@ -1466,14 +1466,14 @@ func unpackListScriptsParams(packed middleware.Parameters) (params ListScriptsPa
Name: "Page", Name: "Page",
In: "query", In: "query",
} }
params.Page = packed[key].(int32) params.Page = packed[key].(uint32)
} }
{ {
key := middleware.ParameterKey{ key := middleware.ParameterKey{
Name: "Limit", Name: "Limit",
In: "query", In: "query",
} }
params.Limit = packed[key].(int32) params.Limit = packed[key].(uint32)
} }
{ {
key := middleware.ParameterKey{ key := middleware.ParameterKey{
@ -1508,7 +1508,7 @@ func unpackListScriptsParams(packed middleware.Parameters) (params ListScriptsPa
In: "query", In: "query",
} }
if v, ok := packed[key]; ok { if v, ok := packed[key]; ok {
params.ResourceType = v.(OptInt32) params.ResourceType = v.(OptUint32)
} }
} }
{ {
@ -1517,7 +1517,7 @@ func unpackListScriptsParams(packed middleware.Parameters) (params ListScriptsPa
In: "query", In: "query",
} }
if v, ok := packed[key]; ok { if v, ok := packed[key]; ok {
params.ResourceID = v.(OptInt64) params.ResourceID = v.(OptUint64)
} }
} }
return params return params
@ -1540,7 +1540,7 @@ func decodeListScriptsParams(args [0]string, argsEscaped bool, r *http.Request)
return err return err
} }
c, err := conv.ToInt32(val) c, err := conv.ToUint32(val)
if err != nil { if err != nil {
return err return err
} }
@ -1593,7 +1593,7 @@ func decodeListScriptsParams(args [0]string, argsEscaped bool, r *http.Request)
return err return err
} }
c, err := conv.ToInt32(val) c, err := conv.ToUint32(val)
if err != nil { if err != nil {
return err return err
} }
@ -1833,14 +1833,14 @@ func decodeListScriptsParams(args [0]string, argsEscaped bool, r *http.Request)
if err := q.HasParam(cfg); err == nil { if err := q.HasParam(cfg); err == nil {
if err := q.DecodeParam(cfg, func(d uri.Decoder) error { if err := q.DecodeParam(cfg, func(d uri.Decoder) error {
var paramsDotResourceTypeVal int32 var paramsDotResourceTypeVal uint32
if err := func() error { if err := func() error {
val, err := d.DecodeValue() val, err := d.DecodeValue()
if err != nil { if err != nil {
return err return err
} }
c, err := conv.ToInt32(val) c, err := conv.ToUint32(val)
if err != nil { if err != nil {
return err return err
} }
@ -1898,14 +1898,14 @@ func decodeListScriptsParams(args [0]string, argsEscaped bool, r *http.Request)
if err := q.HasParam(cfg); err == nil { if err := q.HasParam(cfg); err == nil {
if err := q.DecodeParam(cfg, func(d uri.Decoder) error { if err := q.DecodeParam(cfg, func(d uri.Decoder) error {
var paramsDotResourceIDVal int64 var paramsDotResourceIDVal uint64
if err := func() error { if err := func() error {
val, err := d.DecodeValue() val, err := d.DecodeValue()
if err != nil { if err != nil {
return err return err
} }
c, err := conv.ToInt64(val) c, err := conv.ToUint64(val)
if err != nil { if err != nil {
return err return err
} }
@ -1959,9 +1959,9 @@ func decodeListScriptsParams(args [0]string, argsEscaped bool, r *http.Request)
// UpdateMapfixValidatedModelParams is parameters of updateMapfixValidatedModel operation. // UpdateMapfixValidatedModelParams is parameters of updateMapfixValidatedModel operation.
type UpdateMapfixValidatedModelParams struct { type UpdateMapfixValidatedModelParams struct {
// The unique identifier for a submission. // The unique identifier for a submission.
MapfixID int64 MapfixID uint64
ValidatedModelID int64 ValidatedModelID uint64
ValidatedModelVersion int64 ValidatedModelVersion uint64
} }
func unpackUpdateMapfixValidatedModelParams(packed middleware.Parameters) (params UpdateMapfixValidatedModelParams) { func unpackUpdateMapfixValidatedModelParams(packed middleware.Parameters) (params UpdateMapfixValidatedModelParams) {
@ -1970,21 +1970,21 @@ func unpackUpdateMapfixValidatedModelParams(packed middleware.Parameters) (param
Name: "MapfixID", Name: "MapfixID",
In: "path", In: "path",
} }
params.MapfixID = packed[key].(int64) params.MapfixID = packed[key].(uint64)
} }
{ {
key := middleware.ParameterKey{ key := middleware.ParameterKey{
Name: "ValidatedModelID", Name: "ValidatedModelID",
In: "query", In: "query",
} }
params.ValidatedModelID = packed[key].(int64) params.ValidatedModelID = packed[key].(uint64)
} }
{ {
key := middleware.ParameterKey{ key := middleware.ParameterKey{
Name: "ValidatedModelVersion", Name: "ValidatedModelVersion",
In: "query", In: "query",
} }
params.ValidatedModelVersion = packed[key].(int64) params.ValidatedModelVersion = packed[key].(uint64)
} }
return params return params
} }
@ -2015,7 +2015,7 @@ func decodeUpdateMapfixValidatedModelParams(args [1]string, argsEscaped bool, r
return err return err
} }
c, err := conv.ToInt64(val) c, err := conv.ToUint64(val)
if err != nil { if err != nil {
return err return err
} }
@ -2068,7 +2068,7 @@ func decodeUpdateMapfixValidatedModelParams(args [1]string, argsEscaped bool, r
return err return err
} }
c, err := conv.ToInt64(val) c, err := conv.ToUint64(val)
if err != nil { if err != nil {
return err return err
} }
@ -2121,7 +2121,7 @@ func decodeUpdateMapfixValidatedModelParams(args [1]string, argsEscaped bool, r
return err return err
} }
c, err := conv.ToInt64(val) c, err := conv.ToUint64(val)
if err != nil { if err != nil {
return err return err
} }
@ -2165,9 +2165,9 @@ func decodeUpdateMapfixValidatedModelParams(args [1]string, argsEscaped bool, r
// UpdateSubmissionValidatedModelParams is parameters of updateSubmissionValidatedModel operation. // UpdateSubmissionValidatedModelParams is parameters of updateSubmissionValidatedModel operation.
type UpdateSubmissionValidatedModelParams struct { type UpdateSubmissionValidatedModelParams struct {
// The unique identifier for a submission. // The unique identifier for a submission.
SubmissionID int64 SubmissionID uint64
ValidatedModelID int64 ValidatedModelID uint64
ValidatedModelVersion int64 ValidatedModelVersion uint64
} }
func unpackUpdateSubmissionValidatedModelParams(packed middleware.Parameters) (params UpdateSubmissionValidatedModelParams) { func unpackUpdateSubmissionValidatedModelParams(packed middleware.Parameters) (params UpdateSubmissionValidatedModelParams) {
@ -2176,21 +2176,21 @@ func unpackUpdateSubmissionValidatedModelParams(packed middleware.Parameters) (p
Name: "SubmissionID", Name: "SubmissionID",
In: "path", In: "path",
} }
params.SubmissionID = packed[key].(int64) params.SubmissionID = packed[key].(uint64)
} }
{ {
key := middleware.ParameterKey{ key := middleware.ParameterKey{
Name: "ValidatedModelID", Name: "ValidatedModelID",
In: "query", In: "query",
} }
params.ValidatedModelID = packed[key].(int64) params.ValidatedModelID = packed[key].(uint64)
} }
{ {
key := middleware.ParameterKey{ key := middleware.ParameterKey{
Name: "ValidatedModelVersion", Name: "ValidatedModelVersion",
In: "query", In: "query",
} }
params.ValidatedModelVersion = packed[key].(int64) params.ValidatedModelVersion = packed[key].(uint64)
} }
return params return params
} }
@ -2221,7 +2221,7 @@ func decodeUpdateSubmissionValidatedModelParams(args [1]string, argsEscaped bool
return err return err
} }
c, err := conv.ToInt64(val) c, err := conv.ToUint64(val)
if err != nil { if err != nil {
return err return err
} }
@ -2274,7 +2274,7 @@ func decodeUpdateSubmissionValidatedModelParams(args [1]string, argsEscaped bool
return err return err
} }
c, err := conv.ToInt64(val) c, err := conv.ToUint64(val)
if err != nil { if err != nil {
return err return err
} }
@ -2327,7 +2327,7 @@ func decodeUpdateSubmissionValidatedModelParams(args [1]string, argsEscaped bool
return err return err
} }
c, err := conv.ToInt64(val) c, err := conv.ToUint64(val)
if err != nil { if err != nil {
return err return err
} }

@ -40,12 +40,12 @@ type ActionSubmissionValidatedNoContent struct{}
// Represents error object. // Represents error object.
// Ref: #/components/schemas/Error // Ref: #/components/schemas/Error
type Error struct { type Error struct {
Code int64 `json:"code"` Code uint64 `json:"code"`
Message string `json:"message"` Message string `json:"message"`
} }
// GetCode returns the value of Code. // GetCode returns the value of Code.
func (s *Error) GetCode() int64 { func (s *Error) GetCode() uint64 {
return s.Code return s.Code
} }
@ -55,7 +55,7 @@ func (s *Error) GetMessage() string {
} }
// SetCode sets the value of Code. // SetCode sets the value of Code.
func (s *Error) SetCode(val int64) { func (s *Error) SetCode(val uint64) {
s.Code = val s.Code = val
} }
@ -92,23 +92,23 @@ func (s *ErrorStatusCode) SetResponse(val Error) {
// Ref: #/components/schemas/MapfixCreate // Ref: #/components/schemas/MapfixCreate
type MapfixCreate struct { type MapfixCreate struct {
OperationID int32 `json:"OperationID"` OperationID uint32 `json:"OperationID"`
AssetOwner int64 `json:"AssetOwner"` AssetOwner uint64 `json:"AssetOwner"`
DisplayName string `json:"DisplayName"` DisplayName string `json:"DisplayName"`
Creator string `json:"Creator"` Creator string `json:"Creator"`
GameID int32 `json:"GameID"` GameID uint32 `json:"GameID"`
AssetID int64 `json:"AssetID"` AssetID uint64 `json:"AssetID"`
AssetVersion int64 `json:"AssetVersion"` AssetVersion uint64 `json:"AssetVersion"`
TargetAssetID int64 `json:"TargetAssetID"` TargetAssetID uint64 `json:"TargetAssetID"`
} }
// GetOperationID returns the value of OperationID. // GetOperationID returns the value of OperationID.
func (s *MapfixCreate) GetOperationID() int32 { func (s *MapfixCreate) GetOperationID() uint32 {
return s.OperationID return s.OperationID
} }
// GetAssetOwner returns the value of AssetOwner. // GetAssetOwner returns the value of AssetOwner.
func (s *MapfixCreate) GetAssetOwner() int64 { func (s *MapfixCreate) GetAssetOwner() uint64 {
return s.AssetOwner return s.AssetOwner
} }
@ -123,32 +123,32 @@ func (s *MapfixCreate) GetCreator() string {
} }
// GetGameID returns the value of GameID. // GetGameID returns the value of GameID.
func (s *MapfixCreate) GetGameID() int32 { func (s *MapfixCreate) GetGameID() uint32 {
return s.GameID return s.GameID
} }
// GetAssetID returns the value of AssetID. // GetAssetID returns the value of AssetID.
func (s *MapfixCreate) GetAssetID() int64 { func (s *MapfixCreate) GetAssetID() uint64 {
return s.AssetID return s.AssetID
} }
// GetAssetVersion returns the value of AssetVersion. // GetAssetVersion returns the value of AssetVersion.
func (s *MapfixCreate) GetAssetVersion() int64 { func (s *MapfixCreate) GetAssetVersion() uint64 {
return s.AssetVersion return s.AssetVersion
} }
// GetTargetAssetID returns the value of TargetAssetID. // GetTargetAssetID returns the value of TargetAssetID.
func (s *MapfixCreate) GetTargetAssetID() int64 { func (s *MapfixCreate) GetTargetAssetID() uint64 {
return s.TargetAssetID return s.TargetAssetID
} }
// SetOperationID sets the value of OperationID. // SetOperationID sets the value of OperationID.
func (s *MapfixCreate) SetOperationID(val int32) { func (s *MapfixCreate) SetOperationID(val uint32) {
s.OperationID = val s.OperationID = val
} }
// SetAssetOwner sets the value of AssetOwner. // SetAssetOwner sets the value of AssetOwner.
func (s *MapfixCreate) SetAssetOwner(val int64) { func (s *MapfixCreate) SetAssetOwner(val uint64) {
s.AssetOwner = val s.AssetOwner = val
} }
@ -163,132 +163,40 @@ func (s *MapfixCreate) SetCreator(val string) {
} }
// SetGameID sets the value of GameID. // SetGameID sets the value of GameID.
func (s *MapfixCreate) SetGameID(val int32) { func (s *MapfixCreate) SetGameID(val uint32) {
s.GameID = val s.GameID = val
} }
// SetAssetID sets the value of AssetID. // SetAssetID sets the value of AssetID.
func (s *MapfixCreate) SetAssetID(val int64) { func (s *MapfixCreate) SetAssetID(val uint64) {
s.AssetID = val s.AssetID = val
} }
// SetAssetVersion sets the value of AssetVersion. // SetAssetVersion sets the value of AssetVersion.
func (s *MapfixCreate) SetAssetVersion(val int64) { func (s *MapfixCreate) SetAssetVersion(val uint64) {
s.AssetVersion = val s.AssetVersion = val
} }
// SetTargetAssetID sets the value of TargetAssetID. // SetTargetAssetID sets the value of TargetAssetID.
func (s *MapfixCreate) SetTargetAssetID(val int64) { func (s *MapfixCreate) SetTargetAssetID(val uint64) {
s.TargetAssetID = val s.TargetAssetID = val
} }
// Ref: #/components/schemas/MapfixID // Ref: #/components/schemas/MapfixID
type MapfixID struct { type MapfixID struct {
MapfixID int64 `json:"MapfixID"` MapfixID uint64 `json:"MapfixID"`
} }
// GetMapfixID returns the value of MapfixID. // GetMapfixID returns the value of MapfixID.
func (s *MapfixID) GetMapfixID() int64 { func (s *MapfixID) GetMapfixID() uint64 {
return s.MapfixID return s.MapfixID
} }
// SetMapfixID sets the value of MapfixID. // SetMapfixID sets the value of MapfixID.
func (s *MapfixID) SetMapfixID(val int64) { func (s *MapfixID) SetMapfixID(val uint64) {
s.MapfixID = val s.MapfixID = val
} }
// NewOptInt32 returns new OptInt32 with value set to v.
func NewOptInt32(v int32) OptInt32 {
return OptInt32{
Value: v,
Set: true,
}
}
// OptInt32 is optional int32.
type OptInt32 struct {
Value int32
Set bool
}
// IsSet returns true if OptInt32 was set.
func (o OptInt32) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptInt32) Reset() {
var v int32
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptInt32) SetTo(v int32) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptInt32) Get() (v int32, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptInt32) Or(d int32) int32 {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptInt64 returns new OptInt64 with value set to v.
func NewOptInt64(v int64) OptInt64 {
return OptInt64{
Value: v,
Set: true,
}
}
// OptInt64 is optional int64.
type OptInt64 struct {
Value int64
Set bool
}
// IsSet returns true if OptInt64 was set.
func (o OptInt64) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptInt64) Reset() {
var v int64
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptInt64) SetTo(v int64) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptInt64) Get() (v int64, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptInt64) Or(d int64) int64 {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptString returns new OptString with value set to v. // NewOptString returns new OptString with value set to v.
func NewOptString(v string) OptString { func NewOptString(v string) OptString {
return OptString{ return OptString{
@ -335,18 +243,110 @@ func (o OptString) Or(d string) string {
return d return d
} }
// NewOptUint32 returns new OptUint32 with value set to v.
func NewOptUint32(v uint32) OptUint32 {
return OptUint32{
Value: v,
Set: true,
}
}
// OptUint32 is optional uint32.
type OptUint32 struct {
Value uint32
Set bool
}
// IsSet returns true if OptUint32 was set.
func (o OptUint32) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptUint32) Reset() {
var v uint32
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptUint32) SetTo(v uint32) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptUint32) Get() (v uint32, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptUint32) Or(d uint32) uint32 {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptUint64 returns new OptUint64 with value set to v.
func NewOptUint64(v uint64) OptUint64 {
return OptUint64{
Value: v,
Set: true,
}
}
// OptUint64 is optional uint64.
type OptUint64 struct {
Value uint64
Set bool
}
// IsSet returns true if OptUint64 was set.
func (o OptUint64) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptUint64) Reset() {
var v uint64
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptUint64) SetTo(v uint64) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptUint64) Get() (v uint64, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptUint64) Or(d uint64) uint64 {
if v, ok := o.Get(); ok {
return v
}
return d
}
// Ref: #/components/schemas/Script // Ref: #/components/schemas/Script
type Script struct { type Script struct {
ID int64 `json:"ID"` ID uint64 `json:"ID"`
Name string `json:"Name"` Name string `json:"Name"`
Hash string `json:"Hash"` Hash string `json:"Hash"`
Source string `json:"Source"` Source string `json:"Source"`
ResourceType int32 `json:"ResourceType"` ResourceType uint32 `json:"ResourceType"`
ResourceID int64 `json:"ResourceID"` ResourceID uint64 `json:"ResourceID"`
} }
// GetID returns the value of ID. // GetID returns the value of ID.
func (s *Script) GetID() int64 { func (s *Script) GetID() uint64 {
return s.ID return s.ID
} }
@ -366,17 +366,17 @@ func (s *Script) GetSource() string {
} }
// GetResourceType returns the value of ResourceType. // GetResourceType returns the value of ResourceType.
func (s *Script) GetResourceType() int32 { func (s *Script) GetResourceType() uint32 {
return s.ResourceType return s.ResourceType
} }
// GetResourceID returns the value of ResourceID. // GetResourceID returns the value of ResourceID.
func (s *Script) GetResourceID() int64 { func (s *Script) GetResourceID() uint64 {
return s.ResourceID return s.ResourceID
} }
// SetID sets the value of ID. // SetID sets the value of ID.
func (s *Script) SetID(val int64) { func (s *Script) SetID(val uint64) {
s.ID = val s.ID = val
} }
@ -396,21 +396,21 @@ func (s *Script) SetSource(val string) {
} }
// SetResourceType sets the value of ResourceType. // SetResourceType sets the value of ResourceType.
func (s *Script) SetResourceType(val int32) { func (s *Script) SetResourceType(val uint32) {
s.ResourceType = val s.ResourceType = val
} }
// SetResourceID sets the value of ResourceID. // SetResourceID sets the value of ResourceID.
func (s *Script) SetResourceID(val int64) { func (s *Script) SetResourceID(val uint64) {
s.ResourceID = val s.ResourceID = val
} }
// Ref: #/components/schemas/ScriptCreate // Ref: #/components/schemas/ScriptCreate
type ScriptCreate struct { type ScriptCreate struct {
Name string `json:"Name"` Name string `json:"Name"`
Source string `json:"Source"` Source string `json:"Source"`
ResourceType int32 `json:"ResourceType"` ResourceType uint32 `json:"ResourceType"`
ResourceID OptInt64 `json:"ResourceID"` ResourceID OptUint64 `json:"ResourceID"`
} }
// GetName returns the value of Name. // GetName returns the value of Name.
@ -424,12 +424,12 @@ func (s *ScriptCreate) GetSource() string {
} }
// GetResourceType returns the value of ResourceType. // GetResourceType returns the value of ResourceType.
func (s *ScriptCreate) GetResourceType() int32 { func (s *ScriptCreate) GetResourceType() uint32 {
return s.ResourceType return s.ResourceType
} }
// GetResourceID returns the value of ResourceID. // GetResourceID returns the value of ResourceID.
func (s *ScriptCreate) GetResourceID() OptInt64 { func (s *ScriptCreate) GetResourceID() OptUint64 {
return s.ResourceID return s.ResourceID
} }
@ -444,40 +444,40 @@ func (s *ScriptCreate) SetSource(val string) {
} }
// SetResourceType sets the value of ResourceType. // SetResourceType sets the value of ResourceType.
func (s *ScriptCreate) SetResourceType(val int32) { func (s *ScriptCreate) SetResourceType(val uint32) {
s.ResourceType = val s.ResourceType = val
} }
// SetResourceID sets the value of ResourceID. // SetResourceID sets the value of ResourceID.
func (s *ScriptCreate) SetResourceID(val OptInt64) { func (s *ScriptCreate) SetResourceID(val OptUint64) {
s.ResourceID = val s.ResourceID = val
} }
// Ref: #/components/schemas/ScriptID // Ref: #/components/schemas/ScriptID
type ScriptID struct { type ScriptID struct {
ScriptID int64 `json:"ScriptID"` ScriptID uint64 `json:"ScriptID"`
} }
// GetScriptID returns the value of ScriptID. // GetScriptID returns the value of ScriptID.
func (s *ScriptID) GetScriptID() int64 { func (s *ScriptID) GetScriptID() uint64 {
return s.ScriptID return s.ScriptID
} }
// SetScriptID sets the value of ScriptID. // SetScriptID sets the value of ScriptID.
func (s *ScriptID) SetScriptID(val int64) { func (s *ScriptID) SetScriptID(val uint64) {
s.ScriptID = val s.ScriptID = val
} }
// Ref: #/components/schemas/ScriptPolicy // Ref: #/components/schemas/ScriptPolicy
type ScriptPolicy struct { type ScriptPolicy struct {
ID int64 `json:"ID"` ID uint64 `json:"ID"`
FromScriptHash string `json:"FromScriptHash"` FromScriptHash string `json:"FromScriptHash"`
ToScriptID int64 `json:"ToScriptID"` ToScriptID uint64 `json:"ToScriptID"`
Policy int32 `json:"Policy"` Policy uint32 `json:"Policy"`
} }
// GetID returns the value of ID. // GetID returns the value of ID.
func (s *ScriptPolicy) GetID() int64 { func (s *ScriptPolicy) GetID() uint64 {
return s.ID return s.ID
} }
@ -487,17 +487,17 @@ func (s *ScriptPolicy) GetFromScriptHash() string {
} }
// GetToScriptID returns the value of ToScriptID. // GetToScriptID returns the value of ToScriptID.
func (s *ScriptPolicy) GetToScriptID() int64 { func (s *ScriptPolicy) GetToScriptID() uint64 {
return s.ToScriptID return s.ToScriptID
} }
// GetPolicy returns the value of Policy. // GetPolicy returns the value of Policy.
func (s *ScriptPolicy) GetPolicy() int32 { func (s *ScriptPolicy) GetPolicy() uint32 {
return s.Policy return s.Policy
} }
// SetID sets the value of ID. // SetID sets the value of ID.
func (s *ScriptPolicy) SetID(val int64) { func (s *ScriptPolicy) SetID(val uint64) {
s.ID = val s.ID = val
} }
@ -507,85 +507,85 @@ func (s *ScriptPolicy) SetFromScriptHash(val string) {
} }
// SetToScriptID sets the value of ToScriptID. // SetToScriptID sets the value of ToScriptID.
func (s *ScriptPolicy) SetToScriptID(val int64) { func (s *ScriptPolicy) SetToScriptID(val uint64) {
s.ToScriptID = val s.ToScriptID = val
} }
// SetPolicy sets the value of Policy. // SetPolicy sets the value of Policy.
func (s *ScriptPolicy) SetPolicy(val int32) { func (s *ScriptPolicy) SetPolicy(val uint32) {
s.Policy = val s.Policy = val
} }
// Ref: #/components/schemas/ScriptPolicyCreate // Ref: #/components/schemas/ScriptPolicyCreate
type ScriptPolicyCreate struct { type ScriptPolicyCreate struct {
FromScriptID int64 `json:"FromScriptID"` FromScriptID uint64 `json:"FromScriptID"`
ToScriptID int64 `json:"ToScriptID"` ToScriptID uint64 `json:"ToScriptID"`
Policy int32 `json:"Policy"` Policy uint32 `json:"Policy"`
} }
// GetFromScriptID returns the value of FromScriptID. // GetFromScriptID returns the value of FromScriptID.
func (s *ScriptPolicyCreate) GetFromScriptID() int64 { func (s *ScriptPolicyCreate) GetFromScriptID() uint64 {
return s.FromScriptID return s.FromScriptID
} }
// GetToScriptID returns the value of ToScriptID. // GetToScriptID returns the value of ToScriptID.
func (s *ScriptPolicyCreate) GetToScriptID() int64 { func (s *ScriptPolicyCreate) GetToScriptID() uint64 {
return s.ToScriptID return s.ToScriptID
} }
// GetPolicy returns the value of Policy. // GetPolicy returns the value of Policy.
func (s *ScriptPolicyCreate) GetPolicy() int32 { func (s *ScriptPolicyCreate) GetPolicy() uint32 {
return s.Policy return s.Policy
} }
// SetFromScriptID sets the value of FromScriptID. // SetFromScriptID sets the value of FromScriptID.
func (s *ScriptPolicyCreate) SetFromScriptID(val int64) { func (s *ScriptPolicyCreate) SetFromScriptID(val uint64) {
s.FromScriptID = val s.FromScriptID = val
} }
// SetToScriptID sets the value of ToScriptID. // SetToScriptID sets the value of ToScriptID.
func (s *ScriptPolicyCreate) SetToScriptID(val int64) { func (s *ScriptPolicyCreate) SetToScriptID(val uint64) {
s.ToScriptID = val s.ToScriptID = val
} }
// SetPolicy sets the value of Policy. // SetPolicy sets the value of Policy.
func (s *ScriptPolicyCreate) SetPolicy(val int32) { func (s *ScriptPolicyCreate) SetPolicy(val uint32) {
s.Policy = val s.Policy = val
} }
// Ref: #/components/schemas/ScriptPolicyID // Ref: #/components/schemas/ScriptPolicyID
type ScriptPolicyID struct { type ScriptPolicyID struct {
ScriptPolicyID int64 `json:"ScriptPolicyID"` ScriptPolicyID uint64 `json:"ScriptPolicyID"`
} }
// GetScriptPolicyID returns the value of ScriptPolicyID. // GetScriptPolicyID returns the value of ScriptPolicyID.
func (s *ScriptPolicyID) GetScriptPolicyID() int64 { func (s *ScriptPolicyID) GetScriptPolicyID() uint64 {
return s.ScriptPolicyID return s.ScriptPolicyID
} }
// SetScriptPolicyID sets the value of ScriptPolicyID. // SetScriptPolicyID sets the value of ScriptPolicyID.
func (s *ScriptPolicyID) SetScriptPolicyID(val int64) { func (s *ScriptPolicyID) SetScriptPolicyID(val uint64) {
s.ScriptPolicyID = val s.ScriptPolicyID = val
} }
// Ref: #/components/schemas/SubmissionCreate // Ref: #/components/schemas/SubmissionCreate
type SubmissionCreate struct { type SubmissionCreate struct {
OperationID int32 `json:"OperationID"` OperationID uint32 `json:"OperationID"`
AssetOwner int64 `json:"AssetOwner"` AssetOwner uint64 `json:"AssetOwner"`
DisplayName string `json:"DisplayName"` DisplayName string `json:"DisplayName"`
Creator string `json:"Creator"` Creator string `json:"Creator"`
GameID int32 `json:"GameID"` GameID uint32 `json:"GameID"`
AssetID int64 `json:"AssetID"` AssetID uint64 `json:"AssetID"`
AssetVersion int64 `json:"AssetVersion"` AssetVersion uint64 `json:"AssetVersion"`
} }
// GetOperationID returns the value of OperationID. // GetOperationID returns the value of OperationID.
func (s *SubmissionCreate) GetOperationID() int32 { func (s *SubmissionCreate) GetOperationID() uint32 {
return s.OperationID return s.OperationID
} }
// GetAssetOwner returns the value of AssetOwner. // GetAssetOwner returns the value of AssetOwner.
func (s *SubmissionCreate) GetAssetOwner() int64 { func (s *SubmissionCreate) GetAssetOwner() uint64 {
return s.AssetOwner return s.AssetOwner
} }
@ -600,27 +600,27 @@ func (s *SubmissionCreate) GetCreator() string {
} }
// GetGameID returns the value of GameID. // GetGameID returns the value of GameID.
func (s *SubmissionCreate) GetGameID() int32 { func (s *SubmissionCreate) GetGameID() uint32 {
return s.GameID return s.GameID
} }
// GetAssetID returns the value of AssetID. // GetAssetID returns the value of AssetID.
func (s *SubmissionCreate) GetAssetID() int64 { func (s *SubmissionCreate) GetAssetID() uint64 {
return s.AssetID return s.AssetID
} }
// GetAssetVersion returns the value of AssetVersion. // GetAssetVersion returns the value of AssetVersion.
func (s *SubmissionCreate) GetAssetVersion() int64 { func (s *SubmissionCreate) GetAssetVersion() uint64 {
return s.AssetVersion return s.AssetVersion
} }
// SetOperationID sets the value of OperationID. // SetOperationID sets the value of OperationID.
func (s *SubmissionCreate) SetOperationID(val int32) { func (s *SubmissionCreate) SetOperationID(val uint32) {
s.OperationID = val s.OperationID = val
} }
// SetAssetOwner sets the value of AssetOwner. // SetAssetOwner sets the value of AssetOwner.
func (s *SubmissionCreate) SetAssetOwner(val int64) { func (s *SubmissionCreate) SetAssetOwner(val uint64) {
s.AssetOwner = val s.AssetOwner = val
} }
@ -635,32 +635,32 @@ func (s *SubmissionCreate) SetCreator(val string) {
} }
// SetGameID sets the value of GameID. // SetGameID sets the value of GameID.
func (s *SubmissionCreate) SetGameID(val int32) { func (s *SubmissionCreate) SetGameID(val uint32) {
s.GameID = val s.GameID = val
} }
// SetAssetID sets the value of AssetID. // SetAssetID sets the value of AssetID.
func (s *SubmissionCreate) SetAssetID(val int64) { func (s *SubmissionCreate) SetAssetID(val uint64) {
s.AssetID = val s.AssetID = val
} }
// SetAssetVersion sets the value of AssetVersion. // SetAssetVersion sets the value of AssetVersion.
func (s *SubmissionCreate) SetAssetVersion(val int64) { func (s *SubmissionCreate) SetAssetVersion(val uint64) {
s.AssetVersion = val s.AssetVersion = val
} }
// Ref: #/components/schemas/SubmissionID // Ref: #/components/schemas/SubmissionID
type SubmissionID struct { type SubmissionID struct {
SubmissionID int64 `json:"SubmissionID"` SubmissionID uint64 `json:"SubmissionID"`
} }
// GetSubmissionID returns the value of SubmissionID. // GetSubmissionID returns the value of SubmissionID.
func (s *SubmissionID) GetSubmissionID() int64 { func (s *SubmissionID) GetSubmissionID() uint64 {
return s.SubmissionID return s.SubmissionID
} }
// SetSubmissionID sets the value of SubmissionID. // SetSubmissionID sets the value of SubmissionID.
func (s *SubmissionID) SetSubmissionID(val int64) { func (s *SubmissionID) SetSubmissionID(val uint64) {
s.SubmissionID = val s.SubmissionID = val
} }

@ -5,7 +5,7 @@ import (
"time" "time"
) )
type AuditEventType int32 type AuditEventType uint32
// User clicked "Submit", "Accept" etc // User clicked "Submit", "Accept" etc
const AuditEventTypeAction AuditEventType = 0 const AuditEventTypeAction AuditEventType = 0
@ -43,11 +43,11 @@ type AuditEventDataChangeName struct {
} }
type AuditEvent struct { type AuditEvent struct {
ID int64 `gorm:"primaryKey"` ID uint64 `gorm:"primaryKey"`
CreatedAt time.Time CreatedAt time.Time
User uint64 User uint64
ResourceType ResourceType // is this a submission or is it a mapfix ResourceType ResourceType // is this a submission or is it a mapfix
ResourceID int64 // submission / mapfix / map ID ResourceID uint64 // submission / mapfix / map ID
EventType AuditEventType EventType AuditEventType
EventData json.RawMessage `gorm:"type:jsonb"` EventData json.RawMessage `gorm:"type:jsonb"`
} }

@ -2,7 +2,7 @@ package model
import "time" import "time"
type MapfixStatus int32 type MapfixStatus uint32
const ( const (
// Phase: Creation // Phase: Creation
@ -25,7 +25,7 @@ const (
) )
type Mapfix struct { type Mapfix struct {
ID int64 `gorm:"primaryKey"` ID uint64 `gorm:"primaryKey"`
DisplayName string DisplayName string
Creator string Creator string
GameID uint32 GameID uint32

@ -7,26 +7,26 @@ package model
type CreateSubmissionRequest struct { type CreateSubmissionRequest struct {
// operation_id is passed back in the response message // operation_id is passed back in the response message
OperationID int32 OperationID uint32
ModelID uint64 ModelID uint64
} }
type CreateMapfixRequest struct { type CreateMapfixRequest struct {
OperationID int32 OperationID uint32
ModelID uint64 ModelID uint64
TargetAssetID uint64 TargetAssetID uint64
} }
type ValidateSubmissionRequest struct { type ValidateSubmissionRequest struct {
// submission_id is passed back in the response message // submission_id is passed back in the response message
SubmissionID int64 SubmissionID uint64
ModelID uint64 ModelID uint64
ModelVersion uint64 ModelVersion uint64
ValidatedModelID *uint64 // optional value ValidatedModelID *uint64 // optional value
} }
type ValidateMapfixRequest struct { type ValidateMapfixRequest struct {
MapfixID int64 MapfixID uint64
ModelID uint64 ModelID uint64
ModelVersion uint64 ModelVersion uint64
ValidatedModelID *uint64 // optional value ValidatedModelID *uint64 // optional value
@ -34,14 +34,14 @@ type ValidateMapfixRequest struct {
// Create a new map // Create a new map
type UploadSubmissionRequest struct { type UploadSubmissionRequest struct {
SubmissionID int64 SubmissionID uint64
ModelID uint64 ModelID uint64
ModelVersion uint64 ModelVersion uint64
ModelName string ModelName string
} }
type UploadMapfixRequest struct { type UploadMapfixRequest struct {
MapfixID int64 MapfixID uint64
ModelID uint64 ModelID uint64
ModelVersion uint64 ModelVersion uint64
TargetAssetID uint64 TargetAssetID uint64

@ -2,7 +2,7 @@ package model
import "time" import "time"
type OperationStatus int32 type OperationStatus uint32
const ( const (
OperationStatusCreated OperationStatus = 0 OperationStatusCreated OperationStatus = 0
OperationStatusCompleted OperationStatus = 1 OperationStatusCompleted OperationStatus = 1
@ -10,7 +10,7 @@ const (
) )
type Operation struct { type Operation struct {
ID int32 `gorm:"primaryKey"` ID uint32 `gorm:"primaryKey"`
CreatedAt time.Time CreatedAt time.Time
Owner uint64 // UserID Owner uint64 // UserID
StatusID OperationStatus StatusID OperationStatus

@ -1,6 +1,6 @@
package model package model
type Page struct { type Page struct {
Number int32 Number uint32
Size int32 Size uint32
} }

@ -2,7 +2,7 @@ package model
import "time" import "time"
type Policy int32 type Policy uint32
const ( const (
ScriptPolicyNone Policy = 0 // not yet reviewed ScriptPolicyNone Policy = 0 // not yet reviewed
@ -13,7 +13,7 @@ const (
) )
type ScriptPolicy struct { type ScriptPolicy struct {
ID int64 `gorm:"primaryKey"` ID uint64 `gorm:"primaryKey"`
// Hash of the source code that leads to this policy. // Hash of the source code that leads to this policy.
// If this is a replacement mapping, the original source may not be pointed to by any policy. // If this is a replacement mapping, the original source may not be pointed to by any policy.
// The original source should still exist in the scripts table, which can be located by the same hash. // The original source should still exist in the scripts table, which can be located by the same hash.
@ -21,7 +21,7 @@ type ScriptPolicy struct {
// The ID of the replacement source (ScriptPolicyReplace) // The ID of the replacement source (ScriptPolicyReplace)
// or verbatim source (ScriptPolicyAllowed) // or verbatim source (ScriptPolicyAllowed)
// or 0 (other) // or 0 (other)
ToScriptID int64 ToScriptID uint64
Policy Policy Policy Policy
CreatedAt time.Time CreatedAt time.Time
UpdatedAt time.Time UpdatedAt time.Time

@ -23,7 +23,7 @@ func HashParse(hash string) (uint64, error){
return strconv.ParseUint(hash, 16, 64) return strconv.ParseUint(hash, 16, 64)
} }
type ResourceType int32 type ResourceType uint32
const ( const (
ResourceUnknown ResourceType = 0 ResourceUnknown ResourceType = 0
ResourceMapfix ResourceType = 1 ResourceMapfix ResourceType = 1
@ -31,12 +31,17 @@ const (
) )
type Script struct { type Script struct {
ID int64 `gorm:"primaryKey"` ID uint64 `gorm:"primaryKey"`
Name string Name string
Hash int64 // postgres does not support unsigned integers, so we have to pretend hash uint64
Source string Source string
ResourceType ResourceType // is this a submission or is it a mapfix ResourceType ResourceType // is this a submission or is it a mapfix
ResourceID int64 // which submission / mapfix did this script first appear in ResourceID uint64 // which submission / mapfix did this script first appear in
CreatedAt time.Time CreatedAt time.Time
UpdatedAt time.Time UpdatedAt time.Time
} }
// postgres does not support unsigned integers, so we have to pretend
func (script *Script) GetPostgresInt64() (int64) {
return int64(script.hash)
}

@ -2,7 +2,7 @@ package model
import "time" import "time"
type SubmissionStatus int32 type SubmissionStatus uint32
const ( const (
// Phase: Creation // Phase: Creation
@ -26,7 +26,7 @@ const (
) )
type Submission struct { type Submission struct {
ID int64 `gorm:"primaryKey"` ID uint64 `gorm:"primaryKey"`
DisplayName string DisplayName string
Creator string Creator string
GameID uint32 GameID uint32

@ -72,8 +72,8 @@ func (svc *Service) CreateMapfixAuditComment(ctx context.Context, req api.Create
func (svc *Service) ListMapfixAuditEvents(ctx context.Context, params api.ListMapfixAuditEventsParams) ([]api.AuditEvent, error) { func (svc *Service) ListMapfixAuditEvents(ctx context.Context, params api.ListMapfixAuditEventsParams) ([]api.AuditEvent, error) {
filter := datastore.Optional() filter := datastore.Optional()
filter.Add("resource_type", model.ResourceMapfix) filter.AddPostgresInt32("resource_type", uint32(model.ResourceMapfix))
filter.Add("resource_id", params.MapfixID) filter.AddPostgresInt64("resource_id", params.MapfixID)
items, err := svc.DB.AuditEvents().List(ctx, filter, model.Page{ items, err := svc.DB.AuditEvents().List(ctx, filter, model.Page{
Number: params.Page, Number: params.Page,
@ -93,10 +93,10 @@ func (svc *Service) ListMapfixAuditEvents(ctx context.Context, params api.ListMa
resp = append(resp, api.AuditEvent{ resp = append(resp, api.AuditEvent{
ID: item.ID, ID: item.ID,
Date: item.CreatedAt.Unix(), Date: item.CreatedAt.Unix(),
User: int64(item.User), User: item.User,
ResourceType: int32(item.ResourceType), ResourceType: uint32(item.ResourceType),
ResourceID: item.ResourceID, ResourceID: item.ResourceID,
EventType: int32(item.EventType), EventType: uint32(item.EventType),
EventData: EventData, EventData: EventData,
}) })
} }
@ -167,8 +167,8 @@ func (svc *Service) CreateSubmissionAuditComment(ctx context.Context, req api.Cr
func (svc *Service) ListSubmissionAuditEvents(ctx context.Context, params api.ListSubmissionAuditEventsParams) ([]api.AuditEvent, error) { func (svc *Service) ListSubmissionAuditEvents(ctx context.Context, params api.ListSubmissionAuditEventsParams) ([]api.AuditEvent, error) {
filter := datastore.Optional() filter := datastore.Optional()
filter.Add("resource_type", model.ResourceSubmission) filter.AddPostgresInt32("resource_type", uint32(model.ResourceSubmission))
filter.Add("resource_id", params.SubmissionID) filter.AddPostgresInt64("resource_id", params.SubmissionID)
items, err := svc.DB.AuditEvents().List(ctx, filter, model.Page{ items, err := svc.DB.AuditEvents().List(ctx, filter, model.Page{
Number: params.Page, Number: params.Page,
@ -188,10 +188,10 @@ func (svc *Service) ListSubmissionAuditEvents(ctx context.Context, params api.Li
resp = append(resp, api.AuditEvent{ resp = append(resp, api.AuditEvent{
ID: item.ID, ID: item.ID,
Date: item.CreatedAt.Unix(), Date: item.CreatedAt.Unix(),
User: int64(item.User), User: item.User,
ResourceType: int32(item.ResourceType), ResourceType: uint32(item.ResourceType),
ResourceID: item.ResourceID, ResourceID: item.ResourceID,
EventType: int32(item.EventType), EventType: uint32(item.EventType),
EventData: EventData, EventData: EventData,
}) })
} }

@ -65,7 +65,7 @@ func (svc *Service) CreateMapfix(ctx context.Context, request *api.MapfixTrigger
filter.Add("status_id", CreationPhaseMapfixStatuses) filter.Add("status_id", CreationPhaseMapfixStatuses)
creation_mapfixes, err := svc.DB.Mapfixes().List(ctx, filter, model.Page{ creation_mapfixes, err := svc.DB.Mapfixes().List(ctx, filter, model.Page{
Number: 1, Number: 1,
Size: int32(CreationPhaseMapfixesLimit), Size: uint32(CreationPhaseMapfixesLimit),
},datastore.ListSortDisabled) },datastore.ListSortDisabled)
if err != nil { if err != nil {
return nil, err return nil, err
@ -137,7 +137,7 @@ func (svc *Service) CreateMapfix(ctx context.Context, request *api.MapfixTrigger
// //
// GET /mapfixes/{MapfixID} // GET /mapfixes/{MapfixID}
func (svc *Service) GetMapfix(ctx context.Context, params api.GetMapfixParams) (*api.Mapfix, error) { func (svc *Service) GetMapfix(ctx context.Context, params api.GetMapfixParams) (*api.Mapfix, error) {
mapfix, err := svc.DB.Mapfixes().Get(ctx, params.MapfixID) mapfix, err := svc.DB.Mapfixes().Get(ctx, int64(params.MapfixID))
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -145,15 +145,15 @@ func (svc *Service) GetMapfix(ctx context.Context, params api.GetMapfixParams) (
ID: mapfix.ID, ID: mapfix.ID,
DisplayName: mapfix.DisplayName, DisplayName: mapfix.DisplayName,
Creator: mapfix.Creator, Creator: mapfix.Creator,
GameID: int32(mapfix.GameID), GameID: uint32(mapfix.GameID),
CreatedAt: mapfix.CreatedAt.Unix(), CreatedAt: mapfix.CreatedAt.Unix(),
UpdatedAt: mapfix.UpdatedAt.Unix(), UpdatedAt: mapfix.UpdatedAt.Unix(),
Submitter: int64(mapfix.Submitter), Submitter: mapfix.Submitter,
AssetID: int64(mapfix.AssetID), AssetID: mapfix.AssetID,
AssetVersion: int64(mapfix.AssetVersion), AssetVersion: mapfix.AssetVersion,
Completed: mapfix.Completed, Completed: mapfix.Completed,
TargetAssetID: int64(mapfix.TargetAssetID), TargetAssetID: mapfix.TargetAssetID,
StatusID: int32(mapfix.StatusID), StatusID: uint32(mapfix.StatusID),
StatusMessage: mapfix.StatusMessage, StatusMessage: mapfix.StatusMessage,
}, nil }, nil
} }
@ -167,28 +167,28 @@ func (svc *Service) ListMapfixes(ctx context.Context, params api.ListMapfixesPar
filter := datastore.Optional() filter := datastore.Optional()
if params.DisplayName.IsSet(){ if params.DisplayName.IsSet(){
filter.Add("display_name", params.DisplayName.Value) filter.Add2("display_name", params.DisplayName.Value)
} }
if params.Creator.IsSet(){ if params.Creator.IsSet(){
filter.Add("creator", params.Creator.Value) filter.Add2("creator", params.Creator.Value)
} }
if params.GameID.IsSet(){ if params.GameID.IsSet(){
filter.Add("game_id", params.GameID.Value) filter.AddPostgresInt32("game_id", params.GameID.Value)
} }
if params.Submitter.IsSet(){ if params.Submitter.IsSet(){
filter.Add("submitter", params.Submitter.Value) filter.AddPostgresInt64("submitter", params.Submitter.Value)
} }
if params.AssetID.IsSet(){ if params.AssetID.IsSet(){
filter.Add("asset_id", params.AssetID.Value) filter.AddPostgresInt64("asset_id", params.AssetID.Value)
} }
if params.TargetAssetID.IsSet(){ if params.TargetAssetID.IsSet(){
filter.Add("target_asset_id", params.TargetAssetID.Value) filter.AddPostgresInt64("target_asset_id", params.TargetAssetID.Value)
} }
if params.StatusID.IsSet(){ if params.StatusID.IsSet(){
filter.Add("status_id", params.StatusID.Value) filter.AddPostgresInt32("status_id", params.StatusID.Value)
} }
sort := datastore.ListSort(params.Sort.Or(int32(datastore.ListSortDisabled))) sort := datastore.ListSort(params.Sort.Or(uint32(datastore.ListSortDisabled)))
total, items, err := svc.DB.Mapfixes().ListWithTotal(ctx, filter, model.Page{ total, items, err := svc.DB.Mapfixes().ListWithTotal(ctx, filter, model.Page{
Number: params.Page, Number: params.Page,
@ -205,15 +205,15 @@ func (svc *Service) ListMapfixes(ctx context.Context, params api.ListMapfixesPar
ID: item.ID, ID: item.ID,
DisplayName: item.DisplayName, DisplayName: item.DisplayName,
Creator: item.Creator, Creator: item.Creator,
GameID: int32(item.GameID), GameID: item.GameID,
CreatedAt: item.CreatedAt.Unix(), CreatedAt: item.CreatedAt.Unix(),
UpdatedAt: item.UpdatedAt.Unix(), UpdatedAt: item.UpdatedAt.Unix(),
Submitter: int64(item.Submitter), Submitter: item.Submitter,
AssetID: int64(item.AssetID), AssetID: item.AssetID,
AssetVersion: int64(item.AssetVersion), AssetVersion: item.AssetVersion,
Completed: item.Completed, Completed: item.Completed,
TargetAssetID: int64(item.TargetAssetID), TargetAssetID: item.TargetAssetID,
StatusID: int32(item.StatusID), StatusID: uint32(item.StatusID),
}) })
} }