diff --git a/pkg/api/oas_client_gen.go b/pkg/api/oas_client_gen.go index 89085f9..8e0e896 100644 --- a/pkg/api/oas_client_gen.go +++ b/pkg/api/oas_client_gen.go @@ -444,7 +444,7 @@ func (c *Client) sendActionMapfixAccepted(ctx context.Context, params ActionMapf Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.MapfixID)) + return e.EncodeValue(conv.Uint64ToString(params.MapfixID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -568,7 +568,7 @@ func (c *Client) sendActionMapfixReject(ctx context.Context, params ActionMapfix Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.MapfixID)) + return e.EncodeValue(conv.Uint64ToString(params.MapfixID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -692,7 +692,7 @@ func (c *Client) sendActionMapfixRequestChanges(ctx context.Context, params Acti Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.MapfixID)) + return e.EncodeValue(conv.Uint64ToString(params.MapfixID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -817,7 +817,7 @@ func (c *Client) sendActionMapfixResetSubmitting(ctx context.Context, params Act Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.MapfixID)) + return e.EncodeValue(conv.Uint64ToString(params.MapfixID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -941,7 +941,7 @@ func (c *Client) sendActionMapfixRetryValidate(ctx context.Context, params Actio Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.MapfixID)) + return e.EncodeValue(conv.Uint64ToString(params.MapfixID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -1065,7 +1065,7 @@ func (c *Client) sendActionMapfixRevoke(ctx context.Context, params ActionMapfix Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.MapfixID)) + return e.EncodeValue(conv.Uint64ToString(params.MapfixID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -1189,7 +1189,7 @@ func (c *Client) sendActionMapfixTriggerSubmit(ctx context.Context, params Actio Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.MapfixID)) + return e.EncodeValue(conv.Uint64ToString(params.MapfixID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -1313,7 +1313,7 @@ func (c *Client) sendActionMapfixTriggerUpload(ctx context.Context, params Actio Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.MapfixID)) + return e.EncodeValue(conv.Uint64ToString(params.MapfixID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -1437,7 +1437,7 @@ func (c *Client) sendActionMapfixTriggerValidate(ctx context.Context, params Act Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.MapfixID)) + return e.EncodeValue(conv.Uint64ToString(params.MapfixID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -1561,7 +1561,7 @@ func (c *Client) sendActionMapfixValidated(ctx context.Context, params ActionMap Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.MapfixID)) + return e.EncodeValue(conv.Uint64ToString(params.MapfixID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -1685,7 +1685,7 @@ func (c *Client) sendActionSubmissionAccepted(ctx context.Context, params Action Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) + return e.EncodeValue(conv.Uint64ToString(params.SubmissionID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -1809,7 +1809,7 @@ func (c *Client) sendActionSubmissionReject(ctx context.Context, params ActionSu Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) + return e.EncodeValue(conv.Uint64ToString(params.SubmissionID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -1933,7 +1933,7 @@ func (c *Client) sendActionSubmissionRequestChanges(ctx context.Context, params Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) + return e.EncodeValue(conv.Uint64ToString(params.SubmissionID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -2058,7 +2058,7 @@ func (c *Client) sendActionSubmissionResetSubmitting(ctx context.Context, params Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) + return e.EncodeValue(conv.Uint64ToString(params.SubmissionID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -2182,7 +2182,7 @@ func (c *Client) sendActionSubmissionRetryValidate(ctx context.Context, params A Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) + return e.EncodeValue(conv.Uint64ToString(params.SubmissionID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -2306,7 +2306,7 @@ func (c *Client) sendActionSubmissionRevoke(ctx context.Context, params ActionSu Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) + return e.EncodeValue(conv.Uint64ToString(params.SubmissionID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -2430,7 +2430,7 @@ func (c *Client) sendActionSubmissionTriggerSubmit(ctx context.Context, params A Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) + return e.EncodeValue(conv.Uint64ToString(params.SubmissionID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -2554,7 +2554,7 @@ func (c *Client) sendActionSubmissionTriggerUpload(ctx context.Context, params A Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) + return e.EncodeValue(conv.Uint64ToString(params.SubmissionID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -2678,7 +2678,7 @@ func (c *Client) sendActionSubmissionTriggerValidate(ctx context.Context, params Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) + return e.EncodeValue(conv.Uint64ToString(params.SubmissionID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -2802,7 +2802,7 @@ func (c *Client) sendActionSubmissionValidated(ctx context.Context, params Actio Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) + return e.EncodeValue(conv.Uint64ToString(params.SubmissionID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -3034,7 +3034,7 @@ func (c *Client) sendCreateMapfixAuditComment(ctx context.Context, request Creat Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.MapfixID)) + return e.EncodeValue(conv.Uint64ToString(params.MapfixID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -3485,7 +3485,7 @@ func (c *Client) sendCreateSubmissionAuditComment(ctx context.Context, request C Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) + return e.EncodeValue(conv.Uint64ToString(params.SubmissionID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -3612,7 +3612,7 @@ func (c *Client) sendDeleteScript(ctx context.Context, params DeleteScriptParams Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.ScriptID)) + return e.EncodeValue(conv.Uint64ToString(params.ScriptID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -3735,7 +3735,7 @@ func (c *Client) sendDeleteScriptPolicy(ctx context.Context, params DeleteScript Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.ScriptPolicyID)) + return e.EncodeValue(conv.Uint64ToString(params.ScriptPolicyID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -3858,7 +3858,7 @@ func (c *Client) sendGetMap(ctx context.Context, params GetMapParams) (res *Map, Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.MapID)) + return e.EncodeValue(conv.Uint64ToString(params.MapID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -3948,7 +3948,7 @@ func (c *Client) sendGetMapfix(ctx context.Context, params GetMapfixParams) (res Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.MapfixID)) + return e.EncodeValue(conv.Uint64ToString(params.MapfixID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -4038,7 +4038,7 @@ func (c *Client) sendGetOperation(ctx context.Context, params GetOperationParams Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int32ToString(params.OperationID)) + return e.EncodeValue(conv.Uint32ToString(params.OperationID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -4161,7 +4161,7 @@ func (c *Client) sendGetScript(ctx context.Context, params GetScriptParams) (res Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.ScriptID)) + return e.EncodeValue(conv.Uint64ToString(params.ScriptID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -4251,7 +4251,7 @@ func (c *Client) sendGetScriptPolicy(ctx context.Context, params GetScriptPolicy Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.ScriptPolicyID)) + return e.EncodeValue(conv.Uint64ToString(params.ScriptPolicyID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -4341,7 +4341,7 @@ func (c *Client) sendGetSubmission(ctx context.Context, params GetSubmissionPara Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) + return e.EncodeValue(conv.Uint64ToString(params.SubmissionID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -4431,7 +4431,7 @@ func (c *Client) sendListMapfixAuditEvents(ctx context.Context, params ListMapfi Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.MapfixID)) + return e.EncodeValue(conv.Uint64ToString(params.MapfixID)) }(); err != nil { 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 { - return e.EncodeValue(conv.Int32ToString(params.Page)) + return e.EncodeValue(conv.Uint32ToString(params.Page)) }); err != nil { 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 { - return e.EncodeValue(conv.Int32ToString(params.Limit)) + return e.EncodeValue(conv.Uint32ToString(params.Limit)) }); err != nil { 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 { - return e.EncodeValue(conv.Int32ToString(params.Page)) + return e.EncodeValue(conv.Uint32ToString(params.Page)) }); err != nil { 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 { - return e.EncodeValue(conv.Int32ToString(params.Limit)) + return e.EncodeValue(conv.Uint32ToString(params.Limit)) }); err != nil { 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 val, ok := params.GameID.Get(); ok { - return e.EncodeValue(conv.Int32ToString(val)) + return e.EncodeValue(conv.Uint32ToString(val)) } return 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 val, ok := params.Sort.Get(); ok { - return e.EncodeValue(conv.Int32ToString(val)) + return e.EncodeValue(conv.Uint32ToString(val)) } return 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 val, ok := params.Submitter.Get(); ok { - return e.EncodeValue(conv.Int64ToString(val)) + return e.EncodeValue(conv.Uint64ToString(val)) } return 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 val, ok := params.AssetID.Get(); ok { - return e.EncodeValue(conv.Int64ToString(val)) + return e.EncodeValue(conv.Uint64ToString(val)) } return 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 val, ok := params.TargetAssetID.Get(); ok { - return e.EncodeValue(conv.Int64ToString(val)) + return e.EncodeValue(conv.Uint64ToString(val)) } return 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 val, ok := params.StatusID.Get(); ok { - return e.EncodeValue(conv.Int32ToString(val)) + return e.EncodeValue(conv.Uint32ToString(val)) } return 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 { - return e.EncodeValue(conv.Int32ToString(params.Page)) + return e.EncodeValue(conv.Uint32ToString(params.Page)) }); err != nil { 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 { - return e.EncodeValue(conv.Int32ToString(params.Limit)) + return e.EncodeValue(conv.Uint32ToString(params.Limit)) }); err != nil { 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 val, ok := params.GameID.Get(); ok { - return e.EncodeValue(conv.Int32ToString(val)) + return e.EncodeValue(conv.Uint32ToString(val)) } return 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 val, ok := params.Sort.Get(); ok { - return e.EncodeValue(conv.Int32ToString(val)) + return e.EncodeValue(conv.Uint32ToString(val)) } return 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 { - return e.EncodeValue(conv.Int32ToString(params.Page)) + return e.EncodeValue(conv.Uint32ToString(params.Page)) }); err != nil { 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 { - return e.EncodeValue(conv.Int32ToString(params.Limit)) + return e.EncodeValue(conv.Uint32ToString(params.Limit)) }); err != nil { 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 val, ok := params.ToScriptID.Get(); ok { - return e.EncodeValue(conv.Int64ToString(val)) + return e.EncodeValue(conv.Uint64ToString(val)) } return 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 val, ok := params.Policy.Get(); ok { - return e.EncodeValue(conv.Int32ToString(val)) + return e.EncodeValue(conv.Uint32ToString(val)) } return 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 { - return e.EncodeValue(conv.Int32ToString(params.Page)) + return e.EncodeValue(conv.Uint32ToString(params.Page)) }); err != nil { 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 { - return e.EncodeValue(conv.Int32ToString(params.Limit)) + return e.EncodeValue(conv.Uint32ToString(params.Limit)) }); err != nil { 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 val, ok := params.ResourceType.Get(); ok { - return e.EncodeValue(conv.Int32ToString(val)) + return e.EncodeValue(conv.Uint32ToString(val)) } return 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 val, ok := params.ResourceID.Get(); ok { - return e.EncodeValue(conv.Int64ToString(val)) + return e.EncodeValue(conv.Uint64ToString(val)) } return nil }); err != nil { @@ -5310,7 +5310,7 @@ func (c *Client) sendListSubmissionAuditEvents(ctx context.Context, params ListS Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) + return e.EncodeValue(conv.Uint64ToString(params.SubmissionID)) }(); err != nil { 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 { - return e.EncodeValue(conv.Int32ToString(params.Page)) + return e.EncodeValue(conv.Uint32ToString(params.Page)) }); err != nil { 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 { - return e.EncodeValue(conv.Int32ToString(params.Limit)) + return e.EncodeValue(conv.Uint32ToString(params.Limit)) }); err != nil { 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 { - return e.EncodeValue(conv.Int32ToString(params.Page)) + return e.EncodeValue(conv.Uint32ToString(params.Page)) }); err != nil { 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 { - return e.EncodeValue(conv.Int32ToString(params.Limit)) + return e.EncodeValue(conv.Uint32ToString(params.Limit)) }); err != nil { 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 val, ok := params.GameID.Get(); ok { - return e.EncodeValue(conv.Int32ToString(val)) + return e.EncodeValue(conv.Uint32ToString(val)) } return 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 val, ok := params.Sort.Get(); ok { - return e.EncodeValue(conv.Int32ToString(val)) + return e.EncodeValue(conv.Uint32ToString(val)) } return 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 val, ok := params.Submitter.Get(); ok { - return e.EncodeValue(conv.Int64ToString(val)) + return e.EncodeValue(conv.Uint64ToString(val)) } return 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 val, ok := params.AssetID.Get(); ok { - return e.EncodeValue(conv.Int64ToString(val)) + return e.EncodeValue(conv.Uint64ToString(val)) } return 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 val, ok := params.UploadedAssetID.Get(); ok { - return e.EncodeValue(conv.Int64ToString(val)) + return e.EncodeValue(conv.Uint64ToString(val)) } return 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 val, ok := params.StatusID.Get(); ok { - return e.EncodeValue(conv.Int32ToString(val)) + return e.EncodeValue(conv.Uint32ToString(val)) } return nil }); err != nil { @@ -6096,7 +6096,7 @@ func (c *Client) sendSetMapfixCompleted(ctx context.Context, params SetMapfixCom Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.MapfixID)) + return e.EncodeValue(conv.Uint64ToString(params.MapfixID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -6220,7 +6220,7 @@ func (c *Client) sendSetSubmissionCompleted(ctx context.Context, params SetSubmi Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) + return e.EncodeValue(conv.Uint64ToString(params.SubmissionID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -6344,7 +6344,7 @@ func (c *Client) sendUpdateMapfixModel(ctx context.Context, params UpdateMapfixM Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.MapfixID)) + return e.EncodeValue(conv.Uint64ToString(params.MapfixID)) }(); err != nil { 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 { - return e.EncodeValue(conv.Int64ToString(params.ModelID)) + return e.EncodeValue(conv.Uint64ToString(params.ModelID)) }); err != nil { 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 { - return e.EncodeValue(conv.Int64ToString(params.ModelVersion)) + return e.EncodeValue(conv.Uint64ToString(params.ModelVersion)) }); err != nil { return res, errors.Wrap(err, "encode query") } @@ -6500,7 +6500,7 @@ func (c *Client) sendUpdateScript(ctx context.Context, request *ScriptUpdate, pa Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.ScriptID)) + return e.EncodeValue(conv.Uint64ToString(params.ScriptID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -6626,7 +6626,7 @@ func (c *Client) sendUpdateScriptPolicy(ctx context.Context, request *ScriptPoli Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.ScriptPolicyID)) + return e.EncodeValue(conv.Uint64ToString(params.ScriptPolicyID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -6752,7 +6752,7 @@ func (c *Client) sendUpdateSubmissionModel(ctx context.Context, params UpdateSub Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) + return e.EncodeValue(conv.Uint64ToString(params.SubmissionID)) }(); err != nil { 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 { - return e.EncodeValue(conv.Int64ToString(params.ModelID)) + return e.EncodeValue(conv.Uint64ToString(params.ModelID)) }); err != nil { 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 { - return e.EncodeValue(conv.Int64ToString(params.ModelVersion)) + return e.EncodeValue(conv.Uint64ToString(params.ModelVersion)) }); err != nil { return res, errors.Wrap(err, "encode query") } diff --git a/pkg/api/oas_json_gen.go b/pkg/api/oas_json_gen.go index 6d63001..45e0314 100644 --- a/pkg/api/oas_json_gen.go +++ b/pkg/api/oas_json_gen.go @@ -24,7 +24,7 @@ func (s *AuditEvent) Encode(e *jx.Encoder) { func (s *AuditEvent) encodeFields(e *jx.Encoder) { { e.FieldStart("ID") - e.Int64(s.ID) + e.UInt64(s.ID) } { e.FieldStart("Date") @@ -32,19 +32,19 @@ func (s *AuditEvent) encodeFields(e *jx.Encoder) { } { e.FieldStart("User") - e.Int64(s.User) + e.UInt64(s.User) } { e.FieldStart("ResourceType") - e.Int32(s.ResourceType) + e.UInt32(s.ResourceType) } { e.FieldStart("ResourceID") - e.Int64(s.ResourceID) + e.UInt64(s.ResourceID) } { e.FieldStart("EventType") - e.Int32(s.EventType) + e.UInt32(s.EventType) } { e.FieldStart("EventData") @@ -74,8 +74,8 @@ func (s *AuditEvent) Decode(d *jx.Decoder) error { case "ID": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.ID = int64(v) + v, err := d.UInt64() + s.ID = uint64(v) if err != nil { return err } @@ -98,8 +98,8 @@ func (s *AuditEvent) Decode(d *jx.Decoder) error { case "User": requiredBitSet[0] |= 1 << 2 if err := func() error { - v, err := d.Int64() - s.User = int64(v) + v, err := d.UInt64() + s.User = uint64(v) if err != nil { return err } @@ -110,8 +110,8 @@ func (s *AuditEvent) Decode(d *jx.Decoder) error { case "ResourceType": requiredBitSet[0] |= 1 << 3 if err := func() error { - v, err := d.Int32() - s.ResourceType = int32(v) + v, err := d.UInt32() + s.ResourceType = uint32(v) if err != nil { return err } @@ -122,8 +122,8 @@ func (s *AuditEvent) Decode(d *jx.Decoder) error { case "ResourceID": requiredBitSet[0] |= 1 << 4 if err := func() error { - v, err := d.Int64() - s.ResourceID = int64(v) + v, err := d.UInt64() + s.ResourceID = uint64(v) if err != nil { return err } @@ -134,8 +134,8 @@ func (s *AuditEvent) Decode(d *jx.Decoder) error { case "EventType": requiredBitSet[0] |= 1 << 5 if err := func() error { - v, err := d.Int32() - s.EventType = int32(v) + v, err := d.UInt32() + s.EventType = uint32(v) if err != nil { return err } @@ -278,7 +278,7 @@ func (s *Error) Encode(e *jx.Encoder) { func (s *Error) encodeFields(e *jx.Encoder) { { e.FieldStart("code") - e.Int64(s.Code) + e.UInt64(s.Code) } { e.FieldStart("message") @@ -303,8 +303,8 @@ func (s *Error) Decode(d *jx.Decoder) error { case "code": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.Code = int64(v) + v, err := d.UInt64() + s.Code = uint64(v) if err != nil { return err } @@ -391,7 +391,7 @@ func (s *Map) Encode(e *jx.Encoder) { func (s *Map) encodeFields(e *jx.Encoder) { { e.FieldStart("ID") - e.Int64(s.ID) + e.UInt64(s.ID) } { e.FieldStart("DisplayName") @@ -403,7 +403,7 @@ func (s *Map) encodeFields(e *jx.Encoder) { } { e.FieldStart("GameID") - e.Int32(s.GameID) + e.UInt32(s.GameID) } { e.FieldStart("Date") @@ -431,8 +431,8 @@ func (s *Map) Decode(d *jx.Decoder) error { case "ID": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.ID = int64(v) + v, err := d.UInt64() + s.ID = uint64(v) if err != nil { return err } @@ -467,8 +467,8 @@ func (s *Map) Decode(d *jx.Decoder) error { case "GameID": requiredBitSet[0] |= 1 << 3 if err := func() error { - v, err := d.Int32() - s.GameID = int32(v) + v, err := d.UInt32() + s.GameID = uint32(v) if err != nil { return err } @@ -555,7 +555,7 @@ func (s *Mapfix) Encode(e *jx.Encoder) { func (s *Mapfix) encodeFields(e *jx.Encoder) { { e.FieldStart("ID") - e.Int64(s.ID) + e.UInt64(s.ID) } { e.FieldStart("DisplayName") @@ -567,7 +567,7 @@ func (s *Mapfix) encodeFields(e *jx.Encoder) { } { e.FieldStart("GameID") - e.Int32(s.GameID) + e.UInt32(s.GameID) } { e.FieldStart("CreatedAt") @@ -579,15 +579,15 @@ func (s *Mapfix) encodeFields(e *jx.Encoder) { } { e.FieldStart("Submitter") - e.Int64(s.Submitter) + e.UInt64(s.Submitter) } { e.FieldStart("AssetID") - e.Int64(s.AssetID) + e.UInt64(s.AssetID) } { e.FieldStart("AssetVersion") - e.Int64(s.AssetVersion) + e.UInt64(s.AssetVersion) } { e.FieldStart("Completed") @@ -595,11 +595,11 @@ func (s *Mapfix) encodeFields(e *jx.Encoder) { } { e.FieldStart("TargetAssetID") - e.Int64(s.TargetAssetID) + e.UInt64(s.TargetAssetID) } { e.FieldStart("StatusID") - e.Int32(s.StatusID) + e.UInt32(s.StatusID) } { e.FieldStart("StatusMessage") @@ -635,8 +635,8 @@ func (s *Mapfix) Decode(d *jx.Decoder) error { case "ID": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.ID = int64(v) + v, err := d.UInt64() + s.ID = uint64(v) if err != nil { return err } @@ -671,8 +671,8 @@ func (s *Mapfix) Decode(d *jx.Decoder) error { case "GameID": requiredBitSet[0] |= 1 << 3 if err := func() error { - v, err := d.Int32() - s.GameID = int32(v) + v, err := d.UInt32() + s.GameID = uint32(v) if err != nil { return err } @@ -707,8 +707,8 @@ func (s *Mapfix) Decode(d *jx.Decoder) error { case "Submitter": requiredBitSet[0] |= 1 << 6 if err := func() error { - v, err := d.Int64() - s.Submitter = int64(v) + v, err := d.UInt64() + s.Submitter = uint64(v) if err != nil { return err } @@ -719,8 +719,8 @@ func (s *Mapfix) Decode(d *jx.Decoder) error { case "AssetID": requiredBitSet[0] |= 1 << 7 if err := func() error { - v, err := d.Int64() - s.AssetID = int64(v) + v, err := d.UInt64() + s.AssetID = uint64(v) if err != nil { return err } @@ -731,8 +731,8 @@ func (s *Mapfix) Decode(d *jx.Decoder) error { case "AssetVersion": requiredBitSet[1] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.AssetVersion = int64(v) + v, err := d.UInt64() + s.AssetVersion = uint64(v) if err != nil { return err } @@ -755,8 +755,8 @@ func (s *Mapfix) Decode(d *jx.Decoder) error { case "TargetAssetID": requiredBitSet[1] |= 1 << 2 if err := func() error { - v, err := d.Int64() - s.TargetAssetID = int64(v) + v, err := d.UInt64() + s.TargetAssetID = uint64(v) if err != nil { return err } @@ -767,8 +767,8 @@ func (s *Mapfix) Decode(d *jx.Decoder) error { case "StatusID": requiredBitSet[1] |= 1 << 3 if err := func() error { - v, err := d.Int32() - s.StatusID = int32(v) + v, err := d.UInt32() + s.StatusID = uint32(v) if err != nil { return err } @@ -856,11 +856,11 @@ func (s *MapfixTriggerCreate) Encode(e *jx.Encoder) { func (s *MapfixTriggerCreate) encodeFields(e *jx.Encoder) { { e.FieldStart("AssetID") - e.Int64(s.AssetID) + e.UInt64(s.AssetID) } { 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": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.AssetID = int64(v) + v, err := d.UInt64() + s.AssetID = uint64(v) if err != nil { return err } @@ -893,8 +893,8 @@ func (s *MapfixTriggerCreate) Decode(d *jx.Decoder) error { case "TargetAssetID": requiredBitSet[0] |= 1 << 1 if err := func() error { - v, err := d.Int64() - s.TargetAssetID = int64(v) + v, err := d.UInt64() + s.TargetAssetID = uint64(v) if err != nil { return err } @@ -969,7 +969,7 @@ func (s *Mapfixes) Encode(e *jx.Encoder) { func (s *Mapfixes) encodeFields(e *jx.Encoder) { { e.FieldStart("Total") - e.Int64(s.Total) + e.UInt64(s.Total) } { e.FieldStart("Mapfixes") @@ -998,8 +998,8 @@ func (s *Mapfixes) Decode(d *jx.Decoder) error { case "Total": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.Total = int64(v) + v, err := d.UInt64() + s.Total = uint64(v) if err != nil { return err } @@ -1092,7 +1092,7 @@ func (s *Operation) Encode(e *jx.Encoder) { func (s *Operation) encodeFields(e *jx.Encoder) { { e.FieldStart("OperationID") - e.Int32(s.OperationID) + e.UInt32(s.OperationID) } { e.FieldStart("Date") @@ -1100,11 +1100,11 @@ func (s *Operation) encodeFields(e *jx.Encoder) { } { e.FieldStart("Owner") - e.Int64(s.Owner) + e.UInt64(s.Owner) } { e.FieldStart("Status") - e.Int32(s.Status) + e.UInt32(s.Status) } { e.FieldStart("StatusMessage") @@ -1137,8 +1137,8 @@ func (s *Operation) Decode(d *jx.Decoder) error { case "OperationID": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int32() - s.OperationID = int32(v) + v, err := d.UInt32() + s.OperationID = uint32(v) if err != nil { return err } @@ -1161,8 +1161,8 @@ func (s *Operation) Decode(d *jx.Decoder) error { case "Owner": requiredBitSet[0] |= 1 << 2 if err := func() error { - v, err := d.Int64() - s.Owner = int64(v) + v, err := d.UInt64() + s.Owner = uint64(v) if err != nil { return err } @@ -1173,8 +1173,8 @@ func (s *Operation) Decode(d *jx.Decoder) error { case "Status": requiredBitSet[0] |= 1 << 3 if err := func() error { - v, err := d.Int32() - s.Status = int32(v) + v, err := d.UInt32() + s.Status = uint32(v) if err != nil { return err } @@ -1273,7 +1273,7 @@ func (s *OperationID) Encode(e *jx.Encoder) { func (s *OperationID) encodeFields(e *jx.Encoder) { { 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": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int32() - s.OperationID = int32(v) + v, err := d.UInt32() + s.OperationID = uint32(v) if err != nil { return err } @@ -1358,76 +1358,6 @@ func (s *OperationID) UnmarshalJSON(data []byte) error { 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. func (o OptString) Encode(e *jx.Encoder) { if !o.Set { @@ -1463,6 +1393,76 @@ func (s *OptString) UnmarshalJSON(data []byte) error { 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. func (s *ReleaseInfo) Encode(e *jx.Encoder) { e.ObjStart() @@ -1474,7 +1474,7 @@ func (s *ReleaseInfo) Encode(e *jx.Encoder) { func (s *ReleaseInfo) encodeFields(e *jx.Encoder) { { e.FieldStart("SubmissionID") - e.Int64(s.SubmissionID) + e.UInt64(s.SubmissionID) } { e.FieldStart("Date") @@ -1499,8 +1499,8 @@ func (s *ReleaseInfo) Decode(d *jx.Decoder) error { case "SubmissionID": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.SubmissionID = int64(v) + v, err := d.UInt64() + s.SubmissionID = uint64(v) if err != nil { return err } @@ -1587,7 +1587,7 @@ func (s *Roles) Encode(e *jx.Encoder) { func (s *Roles) encodeFields(e *jx.Encoder) { { 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": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int32() - s.Roles = int32(v) + v, err := d.UInt32() + s.Roles = uint32(v) if err != nil { return err } @@ -1683,7 +1683,7 @@ func (s *Script) Encode(e *jx.Encoder) { func (s *Script) encodeFields(e *jx.Encoder) { { e.FieldStart("ID") - e.Int64(s.ID) + e.UInt64(s.ID) } { e.FieldStart("Name") @@ -1699,11 +1699,11 @@ func (s *Script) encodeFields(e *jx.Encoder) { } { e.FieldStart("ResourceType") - e.Int32(s.ResourceType) + e.UInt32(s.ResourceType) } { 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": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.ID = int64(v) + v, err := d.UInt64() + s.ID = uint64(v) if err != nil { return err } @@ -1776,8 +1776,8 @@ func (s *Script) Decode(d *jx.Decoder) error { case "ResourceType": requiredBitSet[0] |= 1 << 4 if err := func() error { - v, err := d.Int32() - s.ResourceType = int32(v) + v, err := d.UInt32() + s.ResourceType = uint32(v) if err != nil { return err } @@ -1788,8 +1788,8 @@ func (s *Script) Decode(d *jx.Decoder) error { case "ResourceID": requiredBitSet[0] |= 1 << 5 if err := func() error { - v, err := d.Int64() - s.ResourceID = int64(v) + v, err := d.UInt64() + s.ResourceID = uint64(v) if err != nil { return err } @@ -1872,7 +1872,7 @@ func (s *ScriptCreate) encodeFields(e *jx.Encoder) { } { e.FieldStart("ResourceType") - e.Int32(s.ResourceType) + e.UInt32(s.ResourceType) } { if s.ResourceID.Set { @@ -1925,8 +1925,8 @@ func (s *ScriptCreate) Decode(d *jx.Decoder) error { case "ResourceType": requiredBitSet[0] |= 1 << 2 if err := func() error { - v, err := d.Int32() - s.ResourceType = int32(v) + v, err := d.UInt32() + s.ResourceType = uint32(v) if err != nil { return err } @@ -2011,7 +2011,7 @@ func (s *ScriptID) Encode(e *jx.Encoder) { func (s *ScriptID) encodeFields(e *jx.Encoder) { { 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": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.ScriptID = int64(v) + v, err := d.UInt64() + s.ScriptID = uint64(v) if err != nil { return err } @@ -2107,7 +2107,7 @@ func (s *ScriptPolicy) Encode(e *jx.Encoder) { func (s *ScriptPolicy) encodeFields(e *jx.Encoder) { { e.FieldStart("ID") - e.Int64(s.ID) + e.UInt64(s.ID) } { e.FieldStart("FromScriptHash") @@ -2115,11 +2115,11 @@ func (s *ScriptPolicy) encodeFields(e *jx.Encoder) { } { e.FieldStart("ToScriptID") - e.Int64(s.ToScriptID) + e.UInt64(s.ToScriptID) } { 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": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.ID = int64(v) + v, err := d.UInt64() + s.ID = uint64(v) if err != nil { return err } @@ -2166,8 +2166,8 @@ func (s *ScriptPolicy) Decode(d *jx.Decoder) error { case "ToScriptID": requiredBitSet[0] |= 1 << 2 if err := func() error { - v, err := d.Int64() - s.ToScriptID = int64(v) + v, err := d.UInt64() + s.ToScriptID = uint64(v) if err != nil { return err } @@ -2178,8 +2178,8 @@ func (s *ScriptPolicy) Decode(d *jx.Decoder) error { case "Policy": requiredBitSet[0] |= 1 << 3 if err := func() error { - v, err := d.Int32() - s.Policy = int32(v) + v, err := d.UInt32() + s.Policy = uint32(v) if err != nil { return err } @@ -2254,15 +2254,15 @@ func (s *ScriptPolicyCreate) Encode(e *jx.Encoder) { func (s *ScriptPolicyCreate) encodeFields(e *jx.Encoder) { { e.FieldStart("FromScriptID") - e.Int64(s.FromScriptID) + e.UInt64(s.FromScriptID) } { e.FieldStart("ToScriptID") - e.Int64(s.ToScriptID) + e.UInt64(s.ToScriptID) } { 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": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.FromScriptID = int64(v) + v, err := d.UInt64() + s.FromScriptID = uint64(v) if err != nil { return err } @@ -2296,8 +2296,8 @@ func (s *ScriptPolicyCreate) Decode(d *jx.Decoder) error { case "ToScriptID": requiredBitSet[0] |= 1 << 1 if err := func() error { - v, err := d.Int64() - s.ToScriptID = int64(v) + v, err := d.UInt64() + s.ToScriptID = uint64(v) if err != nil { return err } @@ -2308,8 +2308,8 @@ func (s *ScriptPolicyCreate) Decode(d *jx.Decoder) error { case "Policy": requiredBitSet[0] |= 1 << 2 if err := func() error { - v, err := d.Int32() - s.Policy = int32(v) + v, err := d.UInt32() + s.Policy = uint32(v) if err != nil { return err } @@ -2384,7 +2384,7 @@ func (s *ScriptPolicyID) Encode(e *jx.Encoder) { func (s *ScriptPolicyID) encodeFields(e *jx.Encoder) { { 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": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.ScriptPolicyID = int64(v) + v, err := d.UInt64() + s.ScriptPolicyID = uint64(v) if err != nil { return err } @@ -2480,7 +2480,7 @@ func (s *ScriptPolicyUpdate) Encode(e *jx.Encoder) { func (s *ScriptPolicyUpdate) encodeFields(e *jx.Encoder) { { e.FieldStart("ID") - e.Int64(s.ID) + e.UInt64(s.ID) } { if s.FromScriptID.Set { @@ -2521,8 +2521,8 @@ func (s *ScriptPolicyUpdate) Decode(d *jx.Decoder) error { case "ID": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.ID = int64(v) + v, err := d.UInt64() + s.ID = uint64(v) if err != nil { return err } @@ -2627,7 +2627,7 @@ func (s *ScriptUpdate) Encode(e *jx.Encoder) { func (s *ScriptUpdate) encodeFields(e *jx.Encoder) { { e.FieldStart("ID") - e.Int64(s.ID) + e.UInt64(s.ID) } { if s.Name.Set { @@ -2675,8 +2675,8 @@ func (s *ScriptUpdate) Decode(d *jx.Decoder) error { case "ID": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.ID = int64(v) + v, err := d.UInt64() + s.ID = uint64(v) if err != nil { return err } @@ -2791,7 +2791,7 @@ func (s *Submission) Encode(e *jx.Encoder) { func (s *Submission) encodeFields(e *jx.Encoder) { { e.FieldStart("ID") - e.Int64(s.ID) + e.UInt64(s.ID) } { e.FieldStart("DisplayName") @@ -2803,27 +2803,27 @@ func (s *Submission) encodeFields(e *jx.Encoder) { } { e.FieldStart("GameID") - e.Int32(s.GameID) + e.UInt32(s.GameID) } { e.FieldStart("CreatedAt") - e.Int64(s.CreatedAt) + e.UInt64(s.CreatedAt) } { e.FieldStart("UpdatedAt") - e.Int64(s.UpdatedAt) + e.UInt64(s.UpdatedAt) } { e.FieldStart("Submitter") - e.Int64(s.Submitter) + e.UInt64(s.Submitter) } { e.FieldStart("AssetID") - e.Int64(s.AssetID) + e.UInt64(s.AssetID) } { e.FieldStart("AssetVersion") - e.Int64(s.AssetVersion) + e.UInt64(s.AssetVersion) } { if s.ValidatedAssetID.Set { @@ -2849,7 +2849,7 @@ func (s *Submission) encodeFields(e *jx.Encoder) { } { e.FieldStart("StatusID") - e.Int32(s.StatusID) + e.UInt32(s.StatusID) } { e.FieldStart("StatusMessage") @@ -2887,8 +2887,8 @@ func (s *Submission) Decode(d *jx.Decoder) error { case "ID": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.ID = int64(v) + v, err := d.UInt64() + s.ID = uint64(v) if err != nil { return err } @@ -2923,8 +2923,8 @@ func (s *Submission) Decode(d *jx.Decoder) error { case "GameID": requiredBitSet[0] |= 1 << 3 if err := func() error { - v, err := d.Int32() - s.GameID = int32(v) + v, err := d.UInt32() + s.GameID = uint32(v) if err != nil { return err } @@ -2935,8 +2935,8 @@ func (s *Submission) Decode(d *jx.Decoder) error { case "CreatedAt": requiredBitSet[0] |= 1 << 4 if err := func() error { - v, err := d.Int64() - s.CreatedAt = int64(v) + v, err := d.UInt64() + s.CreatedAt = uint64(v) if err != nil { return err } @@ -2947,8 +2947,8 @@ func (s *Submission) Decode(d *jx.Decoder) error { case "UpdatedAt": requiredBitSet[0] |= 1 << 5 if err := func() error { - v, err := d.Int64() - s.UpdatedAt = int64(v) + v, err := d.UInt64() + s.UpdatedAt = uint64(v) if err != nil { return err } @@ -2959,8 +2959,8 @@ func (s *Submission) Decode(d *jx.Decoder) error { case "Submitter": requiredBitSet[0] |= 1 << 6 if err := func() error { - v, err := d.Int64() - s.Submitter = int64(v) + v, err := d.UInt64() + s.Submitter = uint64(v) if err != nil { return err } @@ -2971,8 +2971,8 @@ func (s *Submission) Decode(d *jx.Decoder) error { case "AssetID": requiredBitSet[0] |= 1 << 7 if err := func() error { - v, err := d.Int64() - s.AssetID = int64(v) + v, err := d.UInt64() + s.AssetID = uint64(v) if err != nil { return err } @@ -2983,8 +2983,8 @@ func (s *Submission) Decode(d *jx.Decoder) error { case "AssetVersion": requiredBitSet[1] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.AssetVersion = int64(v) + v, err := d.UInt64() + s.AssetVersion = uint64(v) if err != nil { return err } @@ -3037,8 +3037,8 @@ func (s *Submission) Decode(d *jx.Decoder) error { case "StatusID": requiredBitSet[1] |= 1 << 5 if err := func() error { - v, err := d.Int32() - s.StatusID = int32(v) + v, err := d.UInt32() + s.StatusID = uint32(v) if err != nil { return err } @@ -3126,7 +3126,7 @@ func (s *SubmissionTriggerCreate) Encode(e *jx.Encoder) { func (s *SubmissionTriggerCreate) encodeFields(e *jx.Encoder) { { 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": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.AssetID = int64(v) + v, err := d.UInt64() + s.AssetID = uint64(v) if err != nil { return err } @@ -3222,7 +3222,7 @@ func (s *Submissions) Encode(e *jx.Encoder) { func (s *Submissions) encodeFields(e *jx.Encoder) { { e.FieldStart("Total") - e.Int64(s.Total) + e.UInt64(s.Total) } { e.FieldStart("Submissions") @@ -3251,8 +3251,8 @@ func (s *Submissions) Decode(d *jx.Decoder) error { case "Total": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.Total = int64(v) + v, err := d.UInt64() + s.Total = uint64(v) if err != nil { return err } @@ -3345,7 +3345,7 @@ func (s *User) Encode(e *jx.Encoder) { func (s *User) encodeFields(e *jx.Encoder) { { e.FieldStart("UserID") - e.Int64(s.UserID) + e.UInt64(s.UserID) } { e.FieldStart("Username") @@ -3375,8 +3375,8 @@ func (s *User) Decode(d *jx.Decoder) error { case "UserID": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.UserID = int64(v) + v, err := d.UInt64() + s.UserID = uint64(v) if err != nil { return err } diff --git a/pkg/api/oas_parameters_gen.go b/pkg/api/oas_parameters_gen.go index f434a5f..92c4b40 100644 --- a/pkg/api/oas_parameters_gen.go +++ b/pkg/api/oas_parameters_gen.go @@ -18,7 +18,7 @@ import ( // ActionMapfixAcceptedParams is parameters of actionMapfixAccepted operation. type ActionMapfixAcceptedParams struct { // The unique identifier for a mapfix. - MapfixID int64 + MapfixID uint64 } func unpackActionMapfixAcceptedParams(packed middleware.Parameters) (params ActionMapfixAcceptedParams) { @@ -27,7 +27,7 @@ func unpackActionMapfixAcceptedParams(packed middleware.Parameters) (params Acti Name: "MapfixID", In: "path", } - params.MapfixID = packed[key].(int64) + params.MapfixID = packed[key].(uint64) } return params } @@ -57,7 +57,7 @@ func decodeActionMapfixAcceptedParams(args [1]string, argsEscaped bool, r *http. return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -101,7 +101,7 @@ func decodeActionMapfixAcceptedParams(args [1]string, argsEscaped bool, r *http. // ActionMapfixRejectParams is parameters of actionMapfixReject operation. type ActionMapfixRejectParams struct { // The unique identifier for a mapfix. - MapfixID int64 + MapfixID uint64 } func unpackActionMapfixRejectParams(packed middleware.Parameters) (params ActionMapfixRejectParams) { @@ -110,7 +110,7 @@ func unpackActionMapfixRejectParams(packed middleware.Parameters) (params Action Name: "MapfixID", In: "path", } - params.MapfixID = packed[key].(int64) + params.MapfixID = packed[key].(uint64) } return params } @@ -140,7 +140,7 @@ func decodeActionMapfixRejectParams(args [1]string, argsEscaped bool, r *http.Re return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -184,7 +184,7 @@ func decodeActionMapfixRejectParams(args [1]string, argsEscaped bool, r *http.Re // ActionMapfixRequestChangesParams is parameters of actionMapfixRequestChanges operation. type ActionMapfixRequestChangesParams struct { // The unique identifier for a mapfix. - MapfixID int64 + MapfixID uint64 } func unpackActionMapfixRequestChangesParams(packed middleware.Parameters) (params ActionMapfixRequestChangesParams) { @@ -193,7 +193,7 @@ func unpackActionMapfixRequestChangesParams(packed middleware.Parameters) (param Name: "MapfixID", In: "path", } - params.MapfixID = packed[key].(int64) + params.MapfixID = packed[key].(uint64) } return params } @@ -223,7 +223,7 @@ func decodeActionMapfixRequestChangesParams(args [1]string, argsEscaped bool, r return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -267,7 +267,7 @@ func decodeActionMapfixRequestChangesParams(args [1]string, argsEscaped bool, r // ActionMapfixResetSubmittingParams is parameters of actionMapfixResetSubmitting operation. type ActionMapfixResetSubmittingParams struct { // The unique identifier for a mapfix. - MapfixID int64 + MapfixID uint64 } func unpackActionMapfixResetSubmittingParams(packed middleware.Parameters) (params ActionMapfixResetSubmittingParams) { @@ -276,7 +276,7 @@ func unpackActionMapfixResetSubmittingParams(packed middleware.Parameters) (para Name: "MapfixID", In: "path", } - params.MapfixID = packed[key].(int64) + params.MapfixID = packed[key].(uint64) } return params } @@ -306,7 +306,7 @@ func decodeActionMapfixResetSubmittingParams(args [1]string, argsEscaped bool, r return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -350,7 +350,7 @@ func decodeActionMapfixResetSubmittingParams(args [1]string, argsEscaped bool, r // ActionMapfixRetryValidateParams is parameters of actionMapfixRetryValidate operation. type ActionMapfixRetryValidateParams struct { // The unique identifier for a mapfix. - MapfixID int64 + MapfixID uint64 } func unpackActionMapfixRetryValidateParams(packed middleware.Parameters) (params ActionMapfixRetryValidateParams) { @@ -359,7 +359,7 @@ func unpackActionMapfixRetryValidateParams(packed middleware.Parameters) (params Name: "MapfixID", In: "path", } - params.MapfixID = packed[key].(int64) + params.MapfixID = packed[key].(uint64) } return params } @@ -389,7 +389,7 @@ func decodeActionMapfixRetryValidateParams(args [1]string, argsEscaped bool, r * return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -433,7 +433,7 @@ func decodeActionMapfixRetryValidateParams(args [1]string, argsEscaped bool, r * // ActionMapfixRevokeParams is parameters of actionMapfixRevoke operation. type ActionMapfixRevokeParams struct { // The unique identifier for a mapfix. - MapfixID int64 + MapfixID uint64 } func unpackActionMapfixRevokeParams(packed middleware.Parameters) (params ActionMapfixRevokeParams) { @@ -442,7 +442,7 @@ func unpackActionMapfixRevokeParams(packed middleware.Parameters) (params Action Name: "MapfixID", In: "path", } - params.MapfixID = packed[key].(int64) + params.MapfixID = packed[key].(uint64) } return params } @@ -472,7 +472,7 @@ func decodeActionMapfixRevokeParams(args [1]string, argsEscaped bool, r *http.Re return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -516,7 +516,7 @@ func decodeActionMapfixRevokeParams(args [1]string, argsEscaped bool, r *http.Re // ActionMapfixTriggerSubmitParams is parameters of actionMapfixTriggerSubmit operation. type ActionMapfixTriggerSubmitParams struct { // The unique identifier for a mapfix. - MapfixID int64 + MapfixID uint64 } func unpackActionMapfixTriggerSubmitParams(packed middleware.Parameters) (params ActionMapfixTriggerSubmitParams) { @@ -525,7 +525,7 @@ func unpackActionMapfixTriggerSubmitParams(packed middleware.Parameters) (params Name: "MapfixID", In: "path", } - params.MapfixID = packed[key].(int64) + params.MapfixID = packed[key].(uint64) } return params } @@ -555,7 +555,7 @@ func decodeActionMapfixTriggerSubmitParams(args [1]string, argsEscaped bool, r * return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -599,7 +599,7 @@ func decodeActionMapfixTriggerSubmitParams(args [1]string, argsEscaped bool, r * // ActionMapfixTriggerUploadParams is parameters of actionMapfixTriggerUpload operation. type ActionMapfixTriggerUploadParams struct { // The unique identifier for a mapfix. - MapfixID int64 + MapfixID uint64 } func unpackActionMapfixTriggerUploadParams(packed middleware.Parameters) (params ActionMapfixTriggerUploadParams) { @@ -608,7 +608,7 @@ func unpackActionMapfixTriggerUploadParams(packed middleware.Parameters) (params Name: "MapfixID", In: "path", } - params.MapfixID = packed[key].(int64) + params.MapfixID = packed[key].(uint64) } return params } @@ -638,7 +638,7 @@ func decodeActionMapfixTriggerUploadParams(args [1]string, argsEscaped bool, r * return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -682,7 +682,7 @@ func decodeActionMapfixTriggerUploadParams(args [1]string, argsEscaped bool, r * // ActionMapfixTriggerValidateParams is parameters of actionMapfixTriggerValidate operation. type ActionMapfixTriggerValidateParams struct { // The unique identifier for a mapfix. - MapfixID int64 + MapfixID uint64 } func unpackActionMapfixTriggerValidateParams(packed middleware.Parameters) (params ActionMapfixTriggerValidateParams) { @@ -691,7 +691,7 @@ func unpackActionMapfixTriggerValidateParams(packed middleware.Parameters) (para Name: "MapfixID", In: "path", } - params.MapfixID = packed[key].(int64) + params.MapfixID = packed[key].(uint64) } return params } @@ -721,7 +721,7 @@ func decodeActionMapfixTriggerValidateParams(args [1]string, argsEscaped bool, r return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -765,7 +765,7 @@ func decodeActionMapfixTriggerValidateParams(args [1]string, argsEscaped bool, r // ActionMapfixValidatedParams is parameters of actionMapfixValidated operation. type ActionMapfixValidatedParams struct { // The unique identifier for a mapfix. - MapfixID int64 + MapfixID uint64 } func unpackActionMapfixValidatedParams(packed middleware.Parameters) (params ActionMapfixValidatedParams) { @@ -774,7 +774,7 @@ func unpackActionMapfixValidatedParams(packed middleware.Parameters) (params Act Name: "MapfixID", In: "path", } - params.MapfixID = packed[key].(int64) + params.MapfixID = packed[key].(uint64) } return params } @@ -804,7 +804,7 @@ func decodeActionMapfixValidatedParams(args [1]string, argsEscaped bool, r *http return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -848,7 +848,7 @@ func decodeActionMapfixValidatedParams(args [1]string, argsEscaped bool, r *http // ActionSubmissionAcceptedParams is parameters of actionSubmissionAccepted operation. type ActionSubmissionAcceptedParams struct { // The unique identifier for a submission. - SubmissionID int64 + SubmissionID uint64 } func unpackActionSubmissionAcceptedParams(packed middleware.Parameters) (params ActionSubmissionAcceptedParams) { @@ -857,7 +857,7 @@ func unpackActionSubmissionAcceptedParams(packed middleware.Parameters) (params Name: "SubmissionID", In: "path", } - params.SubmissionID = packed[key].(int64) + params.SubmissionID = packed[key].(uint64) } return params } @@ -887,7 +887,7 @@ func decodeActionSubmissionAcceptedParams(args [1]string, argsEscaped bool, r *h return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -931,7 +931,7 @@ func decodeActionSubmissionAcceptedParams(args [1]string, argsEscaped bool, r *h // ActionSubmissionRejectParams is parameters of actionSubmissionReject operation. type ActionSubmissionRejectParams struct { // The unique identifier for a submission. - SubmissionID int64 + SubmissionID uint64 } func unpackActionSubmissionRejectParams(packed middleware.Parameters) (params ActionSubmissionRejectParams) { @@ -940,7 +940,7 @@ func unpackActionSubmissionRejectParams(packed middleware.Parameters) (params Ac Name: "SubmissionID", In: "path", } - params.SubmissionID = packed[key].(int64) + params.SubmissionID = packed[key].(uint64) } return params } @@ -970,7 +970,7 @@ func decodeActionSubmissionRejectParams(args [1]string, argsEscaped bool, r *htt return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -1014,7 +1014,7 @@ func decodeActionSubmissionRejectParams(args [1]string, argsEscaped bool, r *htt // ActionSubmissionRequestChangesParams is parameters of actionSubmissionRequestChanges operation. type ActionSubmissionRequestChangesParams struct { // The unique identifier for a submission. - SubmissionID int64 + SubmissionID uint64 } func unpackActionSubmissionRequestChangesParams(packed middleware.Parameters) (params ActionSubmissionRequestChangesParams) { @@ -1023,7 +1023,7 @@ func unpackActionSubmissionRequestChangesParams(packed middleware.Parameters) (p Name: "SubmissionID", In: "path", } - params.SubmissionID = packed[key].(int64) + params.SubmissionID = packed[key].(uint64) } return params } @@ -1053,7 +1053,7 @@ func decodeActionSubmissionRequestChangesParams(args [1]string, argsEscaped bool return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -1097,7 +1097,7 @@ func decodeActionSubmissionRequestChangesParams(args [1]string, argsEscaped bool // ActionSubmissionResetSubmittingParams is parameters of actionSubmissionResetSubmitting operation. type ActionSubmissionResetSubmittingParams struct { // The unique identifier for a submission. - SubmissionID int64 + SubmissionID uint64 } func unpackActionSubmissionResetSubmittingParams(packed middleware.Parameters) (params ActionSubmissionResetSubmittingParams) { @@ -1106,7 +1106,7 @@ func unpackActionSubmissionResetSubmittingParams(packed middleware.Parameters) ( Name: "SubmissionID", In: "path", } - params.SubmissionID = packed[key].(int64) + params.SubmissionID = packed[key].(uint64) } return params } @@ -1136,7 +1136,7 @@ func decodeActionSubmissionResetSubmittingParams(args [1]string, argsEscaped boo return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -1180,7 +1180,7 @@ func decodeActionSubmissionResetSubmittingParams(args [1]string, argsEscaped boo // ActionSubmissionRetryValidateParams is parameters of actionSubmissionRetryValidate operation. type ActionSubmissionRetryValidateParams struct { // The unique identifier for a submission. - SubmissionID int64 + SubmissionID uint64 } func unpackActionSubmissionRetryValidateParams(packed middleware.Parameters) (params ActionSubmissionRetryValidateParams) { @@ -1189,7 +1189,7 @@ func unpackActionSubmissionRetryValidateParams(packed middleware.Parameters) (pa Name: "SubmissionID", In: "path", } - params.SubmissionID = packed[key].(int64) + params.SubmissionID = packed[key].(uint64) } return params } @@ -1219,7 +1219,7 @@ func decodeActionSubmissionRetryValidateParams(args [1]string, argsEscaped bool, return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -1263,7 +1263,7 @@ func decodeActionSubmissionRetryValidateParams(args [1]string, argsEscaped bool, // ActionSubmissionRevokeParams is parameters of actionSubmissionRevoke operation. type ActionSubmissionRevokeParams struct { // The unique identifier for a submission. - SubmissionID int64 + SubmissionID uint64 } func unpackActionSubmissionRevokeParams(packed middleware.Parameters) (params ActionSubmissionRevokeParams) { @@ -1272,7 +1272,7 @@ func unpackActionSubmissionRevokeParams(packed middleware.Parameters) (params Ac Name: "SubmissionID", In: "path", } - params.SubmissionID = packed[key].(int64) + params.SubmissionID = packed[key].(uint64) } return params } @@ -1302,7 +1302,7 @@ func decodeActionSubmissionRevokeParams(args [1]string, argsEscaped bool, r *htt return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -1346,7 +1346,7 @@ func decodeActionSubmissionRevokeParams(args [1]string, argsEscaped bool, r *htt // ActionSubmissionTriggerSubmitParams is parameters of actionSubmissionTriggerSubmit operation. type ActionSubmissionTriggerSubmitParams struct { // The unique identifier for a submission. - SubmissionID int64 + SubmissionID uint64 } func unpackActionSubmissionTriggerSubmitParams(packed middleware.Parameters) (params ActionSubmissionTriggerSubmitParams) { @@ -1355,7 +1355,7 @@ func unpackActionSubmissionTriggerSubmitParams(packed middleware.Parameters) (pa Name: "SubmissionID", In: "path", } - params.SubmissionID = packed[key].(int64) + params.SubmissionID = packed[key].(uint64) } return params } @@ -1385,7 +1385,7 @@ func decodeActionSubmissionTriggerSubmitParams(args [1]string, argsEscaped bool, return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -1429,7 +1429,7 @@ func decodeActionSubmissionTriggerSubmitParams(args [1]string, argsEscaped bool, // ActionSubmissionTriggerUploadParams is parameters of actionSubmissionTriggerUpload operation. type ActionSubmissionTriggerUploadParams struct { // The unique identifier for a submission. - SubmissionID int64 + SubmissionID uint64 } func unpackActionSubmissionTriggerUploadParams(packed middleware.Parameters) (params ActionSubmissionTriggerUploadParams) { @@ -1438,7 +1438,7 @@ func unpackActionSubmissionTriggerUploadParams(packed middleware.Parameters) (pa Name: "SubmissionID", In: "path", } - params.SubmissionID = packed[key].(int64) + params.SubmissionID = packed[key].(uint64) } return params } @@ -1468,7 +1468,7 @@ func decodeActionSubmissionTriggerUploadParams(args [1]string, argsEscaped bool, return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -1512,7 +1512,7 @@ func decodeActionSubmissionTriggerUploadParams(args [1]string, argsEscaped bool, // ActionSubmissionTriggerValidateParams is parameters of actionSubmissionTriggerValidate operation. type ActionSubmissionTriggerValidateParams struct { // The unique identifier for a submission. - SubmissionID int64 + SubmissionID uint64 } func unpackActionSubmissionTriggerValidateParams(packed middleware.Parameters) (params ActionSubmissionTriggerValidateParams) { @@ -1521,7 +1521,7 @@ func unpackActionSubmissionTriggerValidateParams(packed middleware.Parameters) ( Name: "SubmissionID", In: "path", } - params.SubmissionID = packed[key].(int64) + params.SubmissionID = packed[key].(uint64) } return params } @@ -1551,7 +1551,7 @@ func decodeActionSubmissionTriggerValidateParams(args [1]string, argsEscaped boo return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -1595,7 +1595,7 @@ func decodeActionSubmissionTriggerValidateParams(args [1]string, argsEscaped boo // ActionSubmissionValidatedParams is parameters of actionSubmissionValidated operation. type ActionSubmissionValidatedParams struct { // The unique identifier for a submission. - SubmissionID int64 + SubmissionID uint64 } func unpackActionSubmissionValidatedParams(packed middleware.Parameters) (params ActionSubmissionValidatedParams) { @@ -1604,7 +1604,7 @@ func unpackActionSubmissionValidatedParams(packed middleware.Parameters) (params Name: "SubmissionID", In: "path", } - params.SubmissionID = packed[key].(int64) + params.SubmissionID = packed[key].(uint64) } return params } @@ -1634,7 +1634,7 @@ func decodeActionSubmissionValidatedParams(args [1]string, argsEscaped bool, r * return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -1678,7 +1678,7 @@ func decodeActionSubmissionValidatedParams(args [1]string, argsEscaped bool, r * // CreateMapfixAuditCommentParams is parameters of createMapfixAuditComment operation. type CreateMapfixAuditCommentParams struct { // The unique identifier for a mapfix. - MapfixID int64 + MapfixID uint64 } func unpackCreateMapfixAuditCommentParams(packed middleware.Parameters) (params CreateMapfixAuditCommentParams) { @@ -1687,7 +1687,7 @@ func unpackCreateMapfixAuditCommentParams(packed middleware.Parameters) (params Name: "MapfixID", In: "path", } - params.MapfixID = packed[key].(int64) + params.MapfixID = packed[key].(uint64) } return params } @@ -1717,7 +1717,7 @@ func decodeCreateMapfixAuditCommentParams(args [1]string, argsEscaped bool, r *h return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -1761,7 +1761,7 @@ func decodeCreateMapfixAuditCommentParams(args [1]string, argsEscaped bool, r *h // CreateSubmissionAuditCommentParams is parameters of createSubmissionAuditComment operation. type CreateSubmissionAuditCommentParams struct { // The unique identifier for a submission. - SubmissionID int64 + SubmissionID uint64 } func unpackCreateSubmissionAuditCommentParams(packed middleware.Parameters) (params CreateSubmissionAuditCommentParams) { @@ -1770,7 +1770,7 @@ func unpackCreateSubmissionAuditCommentParams(packed middleware.Parameters) (par Name: "SubmissionID", In: "path", } - params.SubmissionID = packed[key].(int64) + params.SubmissionID = packed[key].(uint64) } return params } @@ -1800,7 +1800,7 @@ func decodeCreateSubmissionAuditCommentParams(args [1]string, argsEscaped bool, return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -1844,7 +1844,7 @@ func decodeCreateSubmissionAuditCommentParams(args [1]string, argsEscaped bool, // DeleteScriptParams is parameters of deleteScript operation. type DeleteScriptParams struct { // The unique identifier for a script. - ScriptID int64 + ScriptID uint64 } func unpackDeleteScriptParams(packed middleware.Parameters) (params DeleteScriptParams) { @@ -1853,7 +1853,7 @@ func unpackDeleteScriptParams(packed middleware.Parameters) (params DeleteScript Name: "ScriptID", In: "path", } - params.ScriptID = packed[key].(int64) + params.ScriptID = packed[key].(uint64) } return params } @@ -1883,7 +1883,7 @@ func decodeDeleteScriptParams(args [1]string, argsEscaped bool, r *http.Request) return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -1927,7 +1927,7 @@ func decodeDeleteScriptParams(args [1]string, argsEscaped bool, r *http.Request) // DeleteScriptPolicyParams is parameters of deleteScriptPolicy operation. type DeleteScriptPolicyParams struct { // The unique identifier for a script policy. - ScriptPolicyID int64 + ScriptPolicyID uint64 } func unpackDeleteScriptPolicyParams(packed middleware.Parameters) (params DeleteScriptPolicyParams) { @@ -1936,7 +1936,7 @@ func unpackDeleteScriptPolicyParams(packed middleware.Parameters) (params Delete Name: "ScriptPolicyID", In: "path", } - params.ScriptPolicyID = packed[key].(int64) + params.ScriptPolicyID = packed[key].(uint64) } return params } @@ -1966,7 +1966,7 @@ func decodeDeleteScriptPolicyParams(args [1]string, argsEscaped bool, r *http.Re return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -2010,7 +2010,7 @@ func decodeDeleteScriptPolicyParams(args [1]string, argsEscaped bool, r *http.Re // GetMapParams is parameters of getMap operation. type GetMapParams struct { // The unique identifier for a map. - MapID int64 + MapID uint64 } func unpackGetMapParams(packed middleware.Parameters) (params GetMapParams) { @@ -2019,7 +2019,7 @@ func unpackGetMapParams(packed middleware.Parameters) (params GetMapParams) { Name: "MapID", In: "path", } - params.MapID = packed[key].(int64) + params.MapID = packed[key].(uint64) } return params } @@ -2049,7 +2049,7 @@ func decodeGetMapParams(args [1]string, argsEscaped bool, r *http.Request) (para return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -2093,7 +2093,7 @@ func decodeGetMapParams(args [1]string, argsEscaped bool, r *http.Request) (para // GetMapfixParams is parameters of getMapfix operation. type GetMapfixParams struct { // The unique identifier for a mapfix. - MapfixID int64 + MapfixID uint64 } func unpackGetMapfixParams(packed middleware.Parameters) (params GetMapfixParams) { @@ -2102,7 +2102,7 @@ func unpackGetMapfixParams(packed middleware.Parameters) (params GetMapfixParams Name: "MapfixID", In: "path", } - params.MapfixID = packed[key].(int64) + params.MapfixID = packed[key].(uint64) } return params } @@ -2132,7 +2132,7 @@ func decodeGetMapfixParams(args [1]string, argsEscaped bool, r *http.Request) (p return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -2176,7 +2176,7 @@ func decodeGetMapfixParams(args [1]string, argsEscaped bool, r *http.Request) (p // GetOperationParams is parameters of getOperation operation. type GetOperationParams struct { // The unique identifier for a long-running operation. - OperationID int32 + OperationID uint32 } func unpackGetOperationParams(packed middleware.Parameters) (params GetOperationParams) { @@ -2185,7 +2185,7 @@ func unpackGetOperationParams(packed middleware.Parameters) (params GetOperation Name: "OperationID", In: "path", } - params.OperationID = packed[key].(int32) + params.OperationID = packed[key].(uint32) } return params } @@ -2215,7 +2215,7 @@ func decodeGetOperationParams(args [1]string, argsEscaped bool, r *http.Request) return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -2259,7 +2259,7 @@ func decodeGetOperationParams(args [1]string, argsEscaped bool, r *http.Request) // GetScriptParams is parameters of getScript operation. type GetScriptParams struct { // The unique identifier for a script. - ScriptID int64 + ScriptID uint64 } func unpackGetScriptParams(packed middleware.Parameters) (params GetScriptParams) { @@ -2268,7 +2268,7 @@ func unpackGetScriptParams(packed middleware.Parameters) (params GetScriptParams Name: "ScriptID", In: "path", } - params.ScriptID = packed[key].(int64) + params.ScriptID = packed[key].(uint64) } return params } @@ -2298,7 +2298,7 @@ func decodeGetScriptParams(args [1]string, argsEscaped bool, r *http.Request) (p return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -2342,7 +2342,7 @@ func decodeGetScriptParams(args [1]string, argsEscaped bool, r *http.Request) (p // GetScriptPolicyParams is parameters of getScriptPolicy operation. type GetScriptPolicyParams struct { // The unique identifier for a script policy. - ScriptPolicyID int64 + ScriptPolicyID uint64 } func unpackGetScriptPolicyParams(packed middleware.Parameters) (params GetScriptPolicyParams) { @@ -2351,7 +2351,7 @@ func unpackGetScriptPolicyParams(packed middleware.Parameters) (params GetScript Name: "ScriptPolicyID", In: "path", } - params.ScriptPolicyID = packed[key].(int64) + params.ScriptPolicyID = packed[key].(uint64) } return params } @@ -2381,7 +2381,7 @@ func decodeGetScriptPolicyParams(args [1]string, argsEscaped bool, r *http.Reque return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -2425,7 +2425,7 @@ func decodeGetScriptPolicyParams(args [1]string, argsEscaped bool, r *http.Reque // GetSubmissionParams is parameters of getSubmission operation. type GetSubmissionParams struct { // The unique identifier for a submission. - SubmissionID int64 + SubmissionID uint64 } func unpackGetSubmissionParams(packed middleware.Parameters) (params GetSubmissionParams) { @@ -2434,7 +2434,7 @@ func unpackGetSubmissionParams(packed middleware.Parameters) (params GetSubmissi Name: "SubmissionID", In: "path", } - params.SubmissionID = packed[key].(int64) + params.SubmissionID = packed[key].(uint64) } return params } @@ -2464,7 +2464,7 @@ func decodeGetSubmissionParams(args [1]string, argsEscaped bool, r *http.Request return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -2508,9 +2508,9 @@ func decodeGetSubmissionParams(args [1]string, argsEscaped bool, r *http.Request // ListMapfixAuditEventsParams is parameters of listMapfixAuditEvents operation. type ListMapfixAuditEventsParams struct { // The unique identifier for a mapfix. - MapfixID int64 - Page int32 - Limit int32 + MapfixID uint64 + Page uint32 + Limit uint32 } func unpackListMapfixAuditEventsParams(packed middleware.Parameters) (params ListMapfixAuditEventsParams) { @@ -2519,21 +2519,21 @@ func unpackListMapfixAuditEventsParams(packed middleware.Parameters) (params Lis Name: "MapfixID", In: "path", } - params.MapfixID = packed[key].(int64) + params.MapfixID = packed[key].(uint64) } { key := middleware.ParameterKey{ Name: "Page", In: "query", } - params.Page = packed[key].(int32) + params.Page = packed[key].(uint32) } { key := middleware.ParameterKey{ Name: "Limit", In: "query", } - params.Limit = packed[key].(int32) + params.Limit = packed[key].(uint32) } return params } @@ -2564,7 +2564,7 @@ func decodeListMapfixAuditEventsParams(args [1]string, argsEscaped bool, r *http return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -2617,7 +2617,7 @@ func decodeListMapfixAuditEventsParams(args [1]string, argsEscaped bool, r *http return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -2670,7 +2670,7 @@ func decodeListMapfixAuditEventsParams(args [1]string, argsEscaped bool, r *http return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -2713,16 +2713,16 @@ func decodeListMapfixAuditEventsParams(args [1]string, argsEscaped bool, r *http // ListMapfixesParams is parameters of listMapfixes operation. type ListMapfixesParams struct { - Page int32 - Limit int32 + Page uint32 + Limit uint32 DisplayName OptString Creator OptString - GameID OptInt32 - Sort OptInt32 - Submitter OptInt64 - AssetID OptInt64 - TargetAssetID OptInt64 - StatusID OptInt32 + GameID OptUint32 + Sort OptUint32 + Submitter OptUint64 + AssetID OptUint64 + TargetAssetID OptUint64 + StatusID OptUint32 } func unpackListMapfixesParams(packed middleware.Parameters) (params ListMapfixesParams) { @@ -2731,14 +2731,14 @@ func unpackListMapfixesParams(packed middleware.Parameters) (params ListMapfixes Name: "Page", In: "query", } - params.Page = packed[key].(int32) + params.Page = packed[key].(uint32) } { key := middleware.ParameterKey{ Name: "Limit", In: "query", } - params.Limit = packed[key].(int32) + params.Limit = packed[key].(uint32) } { key := middleware.ParameterKey{ @@ -2764,7 +2764,7 @@ func unpackListMapfixesParams(packed middleware.Parameters) (params ListMapfixes In: "query", } if v, ok := packed[key]; ok { - params.GameID = v.(OptInt32) + params.GameID = v.(OptUint32) } } { @@ -2773,7 +2773,7 @@ func unpackListMapfixesParams(packed middleware.Parameters) (params ListMapfixes In: "query", } if v, ok := packed[key]; ok { - params.Sort = v.(OptInt32) + params.Sort = v.(OptUint32) } } { @@ -2782,7 +2782,7 @@ func unpackListMapfixesParams(packed middleware.Parameters) (params ListMapfixes In: "query", } if v, ok := packed[key]; ok { - params.Submitter = v.(OptInt64) + params.Submitter = v.(OptUint64) } } { @@ -2791,7 +2791,7 @@ func unpackListMapfixesParams(packed middleware.Parameters) (params ListMapfixes In: "query", } if v, ok := packed[key]; ok { - params.AssetID = v.(OptInt64) + params.AssetID = v.(OptUint64) } } { @@ -2800,7 +2800,7 @@ func unpackListMapfixesParams(packed middleware.Parameters) (params ListMapfixes In: "query", } if v, ok := packed[key]; ok { - params.TargetAssetID = v.(OptInt64) + params.TargetAssetID = v.(OptUint64) } } { @@ -2809,7 +2809,7 @@ func unpackListMapfixesParams(packed middleware.Parameters) (params ListMapfixes In: "query", } if v, ok := packed[key]; ok { - params.StatusID = v.(OptInt32) + params.StatusID = v.(OptUint32) } } return params @@ -2832,7 +2832,7 @@ func decodeListMapfixesParams(args [0]string, argsEscaped bool, r *http.Request) return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -2885,7 +2885,7 @@ func decodeListMapfixesParams(args [0]string, argsEscaped bool, r *http.Request) return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -3061,14 +3061,14 @@ func decodeListMapfixesParams(args [0]string, argsEscaped bool, r *http.Request) if err := q.HasParam(cfg); err == nil { if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - var paramsDotGameIDVal int32 + var paramsDotGameIDVal uint32 if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -3126,14 +3126,14 @@ func decodeListMapfixesParams(args [0]string, argsEscaped bool, r *http.Request) if err := q.HasParam(cfg); err == nil { if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - var paramsDotSortVal int32 + var paramsDotSortVal uint32 if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -3191,14 +3191,14 @@ func decodeListMapfixesParams(args [0]string, argsEscaped bool, r *http.Request) if err := q.HasParam(cfg); err == nil { if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - var paramsDotSubmitterVal int64 + var paramsDotSubmitterVal uint64 if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -3256,14 +3256,14 @@ func decodeListMapfixesParams(args [0]string, argsEscaped bool, r *http.Request) if err := q.HasParam(cfg); err == nil { if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - var paramsDotAssetIDVal int64 + var paramsDotAssetIDVal uint64 if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -3321,14 +3321,14 @@ func decodeListMapfixesParams(args [0]string, argsEscaped bool, r *http.Request) if err := q.HasParam(cfg); err == nil { if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - var paramsDotTargetAssetIDVal int64 + var paramsDotTargetAssetIDVal uint64 if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -3386,14 +3386,14 @@ func decodeListMapfixesParams(args [0]string, argsEscaped bool, r *http.Request) if err := q.HasParam(cfg); err == nil { if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - var paramsDotStatusIDVal int32 + var paramsDotStatusIDVal uint32 if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -3446,12 +3446,12 @@ func decodeListMapfixesParams(args [0]string, argsEscaped bool, r *http.Request) // ListMapsParams is parameters of listMaps operation. type ListMapsParams struct { - Page int32 - Limit int32 + Page uint32 + Limit uint32 DisplayName OptString Creator OptString - GameID OptInt32 - Sort OptInt32 + GameID OptUint32 + Sort OptUint32 } func unpackListMapsParams(packed middleware.Parameters) (params ListMapsParams) { @@ -3460,14 +3460,14 @@ func unpackListMapsParams(packed middleware.Parameters) (params ListMapsParams) Name: "Page", In: "query", } - params.Page = packed[key].(int32) + params.Page = packed[key].(uint32) } { key := middleware.ParameterKey{ Name: "Limit", In: "query", } - params.Limit = packed[key].(int32) + params.Limit = packed[key].(uint32) } { key := middleware.ParameterKey{ @@ -3493,7 +3493,7 @@ func unpackListMapsParams(packed middleware.Parameters) (params ListMapsParams) In: "query", } if v, ok := packed[key]; ok { - params.GameID = v.(OptInt32) + params.GameID = v.(OptUint32) } } { @@ -3502,7 +3502,7 @@ func unpackListMapsParams(packed middleware.Parameters) (params ListMapsParams) In: "query", } if v, ok := packed[key]; ok { - params.Sort = v.(OptInt32) + params.Sort = v.(OptUint32) } } return params @@ -3525,7 +3525,7 @@ func decodeListMapsParams(args [0]string, argsEscaped bool, r *http.Request) (pa return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -3578,7 +3578,7 @@ func decodeListMapsParams(args [0]string, argsEscaped bool, r *http.Request) (pa return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -3754,14 +3754,14 @@ func decodeListMapsParams(args [0]string, argsEscaped bool, r *http.Request) (pa if err := q.HasParam(cfg); err == nil { if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - var paramsDotGameIDVal int32 + var paramsDotGameIDVal uint32 if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -3819,14 +3819,14 @@ func decodeListMapsParams(args [0]string, argsEscaped bool, r *http.Request) (pa if err := q.HasParam(cfg); err == nil { if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - var paramsDotSortVal int32 + var paramsDotSortVal uint32 if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -3879,11 +3879,11 @@ func decodeListMapsParams(args [0]string, argsEscaped bool, r *http.Request) (pa // ListScriptPolicyParams is parameters of listScriptPolicy operation. type ListScriptPolicyParams struct { - Page int32 - Limit int32 + Page uint32 + Limit uint32 FromScriptHash OptString - ToScriptID OptInt64 - Policy OptInt32 + ToScriptID OptUint64 + Policy OptUint32 } func unpackListScriptPolicyParams(packed middleware.Parameters) (params ListScriptPolicyParams) { @@ -3892,14 +3892,14 @@ func unpackListScriptPolicyParams(packed middleware.Parameters) (params ListScri Name: "Page", In: "query", } - params.Page = packed[key].(int32) + params.Page = packed[key].(uint32) } { key := middleware.ParameterKey{ Name: "Limit", In: "query", } - params.Limit = packed[key].(int32) + params.Limit = packed[key].(uint32) } { key := middleware.ParameterKey{ @@ -3916,7 +3916,7 @@ func unpackListScriptPolicyParams(packed middleware.Parameters) (params ListScri In: "query", } if v, ok := packed[key]; ok { - params.ToScriptID = v.(OptInt64) + params.ToScriptID = v.(OptUint64) } } { @@ -3925,7 +3925,7 @@ func unpackListScriptPolicyParams(packed middleware.Parameters) (params ListScri In: "query", } if v, ok := packed[key]; ok { - params.Policy = v.(OptInt32) + params.Policy = v.(OptUint32) } } return params @@ -3948,7 +3948,7 @@ func decodeListScriptPolicyParams(args [0]string, argsEscaped bool, r *http.Requ return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -4001,7 +4001,7 @@ func decodeListScriptPolicyParams(args [0]string, argsEscaped bool, r *http.Requ return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -4113,14 +4113,14 @@ func decodeListScriptPolicyParams(args [0]string, argsEscaped bool, r *http.Requ if err := q.HasParam(cfg); err == nil { if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - var paramsDotToScriptIDVal int64 + var paramsDotToScriptIDVal uint64 if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -4178,14 +4178,14 @@ func decodeListScriptPolicyParams(args [0]string, argsEscaped bool, r *http.Requ if err := q.HasParam(cfg); err == nil { if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - var paramsDotPolicyVal int32 + var paramsDotPolicyVal uint32 if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -4238,13 +4238,13 @@ func decodeListScriptPolicyParams(args [0]string, argsEscaped bool, r *http.Requ // ListScriptsParams is parameters of listScripts operation. type ListScriptsParams struct { - Page int32 - Limit int32 + Page uint32 + Limit uint32 Hash OptString Name OptString Source OptString - ResourceType OptInt32 - ResourceID OptInt64 + ResourceType OptUint32 + ResourceID OptUint64 } func unpackListScriptsParams(packed middleware.Parameters) (params ListScriptsParams) { @@ -4253,14 +4253,14 @@ func unpackListScriptsParams(packed middleware.Parameters) (params ListScriptsPa Name: "Page", In: "query", } - params.Page = packed[key].(int32) + params.Page = packed[key].(uint32) } { key := middleware.ParameterKey{ Name: "Limit", In: "query", } - params.Limit = packed[key].(int32) + params.Limit = packed[key].(uint32) } { key := middleware.ParameterKey{ @@ -4295,7 +4295,7 @@ func unpackListScriptsParams(packed middleware.Parameters) (params ListScriptsPa In: "query", } if v, ok := packed[key]; ok { - params.ResourceType = v.(OptInt32) + params.ResourceType = v.(OptUint32) } } { @@ -4304,7 +4304,7 @@ func unpackListScriptsParams(packed middleware.Parameters) (params ListScriptsPa In: "query", } if v, ok := packed[key]; ok { - params.ResourceID = v.(OptInt64) + params.ResourceID = v.(OptUint64) } } return params @@ -4327,7 +4327,7 @@ func decodeListScriptsParams(args [0]string, argsEscaped bool, r *http.Request) return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -4380,7 +4380,7 @@ func decodeListScriptsParams(args [0]string, argsEscaped bool, r *http.Request) return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -4620,14 +4620,14 @@ func decodeListScriptsParams(args [0]string, argsEscaped bool, r *http.Request) if err := q.HasParam(cfg); err == nil { if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - var paramsDotResourceTypeVal int32 + var paramsDotResourceTypeVal uint32 if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -4685,14 +4685,14 @@ func decodeListScriptsParams(args [0]string, argsEscaped bool, r *http.Request) if err := q.HasParam(cfg); err == nil { if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - var paramsDotResourceIDVal int64 + var paramsDotResourceIDVal uint64 if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -4746,9 +4746,9 @@ func decodeListScriptsParams(args [0]string, argsEscaped bool, r *http.Request) // ListSubmissionAuditEventsParams is parameters of listSubmissionAuditEvents operation. type ListSubmissionAuditEventsParams struct { // The unique identifier for a submission. - SubmissionID int64 - Page int32 - Limit int32 + SubmissionID uint64 + Page uint32 + Limit uint32 } func unpackListSubmissionAuditEventsParams(packed middleware.Parameters) (params ListSubmissionAuditEventsParams) { @@ -4757,21 +4757,21 @@ func unpackListSubmissionAuditEventsParams(packed middleware.Parameters) (params Name: "SubmissionID", In: "path", } - params.SubmissionID = packed[key].(int64) + params.SubmissionID = packed[key].(uint64) } { key := middleware.ParameterKey{ Name: "Page", In: "query", } - params.Page = packed[key].(int32) + params.Page = packed[key].(uint32) } { key := middleware.ParameterKey{ Name: "Limit", In: "query", } - params.Limit = packed[key].(int32) + params.Limit = packed[key].(uint32) } return params } @@ -4802,7 +4802,7 @@ func decodeListSubmissionAuditEventsParams(args [1]string, argsEscaped bool, r * return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -4855,7 +4855,7 @@ func decodeListSubmissionAuditEventsParams(args [1]string, argsEscaped bool, r * return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -4908,7 +4908,7 @@ func decodeListSubmissionAuditEventsParams(args [1]string, argsEscaped bool, r * return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -4951,16 +4951,16 @@ func decodeListSubmissionAuditEventsParams(args [1]string, argsEscaped bool, r * // ListSubmissionsParams is parameters of listSubmissions operation. type ListSubmissionsParams struct { - Page int32 - Limit int32 + Page uint32 + Limit uint32 DisplayName OptString Creator OptString - GameID OptInt32 - Sort OptInt32 - Submitter OptInt64 - AssetID OptInt64 - UploadedAssetID OptInt64 - StatusID OptInt32 + GameID OptUint32 + Sort OptUint32 + Submitter OptUint64 + AssetID OptUint64 + UploadedAssetID OptUint64 + StatusID OptUint32 } func unpackListSubmissionsParams(packed middleware.Parameters) (params ListSubmissionsParams) { @@ -4969,14 +4969,14 @@ func unpackListSubmissionsParams(packed middleware.Parameters) (params ListSubmi Name: "Page", In: "query", } - params.Page = packed[key].(int32) + params.Page = packed[key].(uint32) } { key := middleware.ParameterKey{ Name: "Limit", In: "query", } - params.Limit = packed[key].(int32) + params.Limit = packed[key].(uint32) } { key := middleware.ParameterKey{ @@ -5002,7 +5002,7 @@ func unpackListSubmissionsParams(packed middleware.Parameters) (params ListSubmi In: "query", } if v, ok := packed[key]; ok { - params.GameID = v.(OptInt32) + params.GameID = v.(OptUint32) } } { @@ -5011,7 +5011,7 @@ func unpackListSubmissionsParams(packed middleware.Parameters) (params ListSubmi In: "query", } if v, ok := packed[key]; ok { - params.Sort = v.(OptInt32) + params.Sort = v.(OptUint32) } } { @@ -5020,7 +5020,7 @@ func unpackListSubmissionsParams(packed middleware.Parameters) (params ListSubmi In: "query", } if v, ok := packed[key]; ok { - params.Submitter = v.(OptInt64) + params.Submitter = v.(OptUint64) } } { @@ -5029,7 +5029,7 @@ func unpackListSubmissionsParams(packed middleware.Parameters) (params ListSubmi In: "query", } if v, ok := packed[key]; ok { - params.AssetID = v.(OptInt64) + params.AssetID = v.(OptUint64) } } { @@ -5038,7 +5038,7 @@ func unpackListSubmissionsParams(packed middleware.Parameters) (params ListSubmi In: "query", } if v, ok := packed[key]; ok { - params.UploadedAssetID = v.(OptInt64) + params.UploadedAssetID = v.(OptUint64) } } { @@ -5047,7 +5047,7 @@ func unpackListSubmissionsParams(packed middleware.Parameters) (params ListSubmi In: "query", } if v, ok := packed[key]; ok { - params.StatusID = v.(OptInt32) + params.StatusID = v.(OptUint32) } } return params @@ -5070,7 +5070,7 @@ func decodeListSubmissionsParams(args [0]string, argsEscaped bool, r *http.Reque return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -5123,7 +5123,7 @@ func decodeListSubmissionsParams(args [0]string, argsEscaped bool, r *http.Reque return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -5299,14 +5299,14 @@ func decodeListSubmissionsParams(args [0]string, argsEscaped bool, r *http.Reque if err := q.HasParam(cfg); err == nil { if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - var paramsDotGameIDVal int32 + var paramsDotGameIDVal uint32 if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -5364,14 +5364,14 @@ func decodeListSubmissionsParams(args [0]string, argsEscaped bool, r *http.Reque if err := q.HasParam(cfg); err == nil { if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - var paramsDotSortVal int32 + var paramsDotSortVal uint32 if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -5429,14 +5429,14 @@ func decodeListSubmissionsParams(args [0]string, argsEscaped bool, r *http.Reque if err := q.HasParam(cfg); err == nil { if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - var paramsDotSubmitterVal int64 + var paramsDotSubmitterVal uint64 if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -5494,14 +5494,14 @@ func decodeListSubmissionsParams(args [0]string, argsEscaped bool, r *http.Reque if err := q.HasParam(cfg); err == nil { if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - var paramsDotAssetIDVal int64 + var paramsDotAssetIDVal uint64 if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -5559,14 +5559,14 @@ func decodeListSubmissionsParams(args [0]string, argsEscaped bool, r *http.Reque if err := q.HasParam(cfg); err == nil { if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - var paramsDotUploadedAssetIDVal int64 + var paramsDotUploadedAssetIDVal uint64 if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -5624,14 +5624,14 @@ func decodeListSubmissionsParams(args [0]string, argsEscaped bool, r *http.Reque if err := q.HasParam(cfg); err == nil { if err := q.DecodeParam(cfg, func(d uri.Decoder) error { - var paramsDotStatusIDVal int32 + var paramsDotStatusIDVal uint32 if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -5685,7 +5685,7 @@ func decodeListSubmissionsParams(args [0]string, argsEscaped bool, r *http.Reque // SetMapfixCompletedParams is parameters of setMapfixCompleted operation. type SetMapfixCompletedParams struct { // The unique identifier for a mapfix. - MapfixID int64 + MapfixID uint64 } func unpackSetMapfixCompletedParams(packed middleware.Parameters) (params SetMapfixCompletedParams) { @@ -5694,7 +5694,7 @@ func unpackSetMapfixCompletedParams(packed middleware.Parameters) (params SetMap Name: "MapfixID", In: "path", } - params.MapfixID = packed[key].(int64) + params.MapfixID = packed[key].(uint64) } return params } @@ -5724,7 +5724,7 @@ func decodeSetMapfixCompletedParams(args [1]string, argsEscaped bool, r *http.Re return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -5768,7 +5768,7 @@ func decodeSetMapfixCompletedParams(args [1]string, argsEscaped bool, r *http.Re // SetSubmissionCompletedParams is parameters of setSubmissionCompleted operation. type SetSubmissionCompletedParams struct { // The unique identifier for a submission. - SubmissionID int64 + SubmissionID uint64 } func unpackSetSubmissionCompletedParams(packed middleware.Parameters) (params SetSubmissionCompletedParams) { @@ -5777,7 +5777,7 @@ func unpackSetSubmissionCompletedParams(packed middleware.Parameters) (params Se Name: "SubmissionID", In: "path", } - params.SubmissionID = packed[key].(int64) + params.SubmissionID = packed[key].(uint64) } return params } @@ -5807,7 +5807,7 @@ func decodeSetSubmissionCompletedParams(args [1]string, argsEscaped bool, r *htt return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -5851,9 +5851,9 @@ func decodeSetSubmissionCompletedParams(args [1]string, argsEscaped bool, r *htt // UpdateMapfixModelParams is parameters of updateMapfixModel operation. type UpdateMapfixModelParams struct { // The unique identifier for a mapfix. - MapfixID int64 - ModelID int64 - ModelVersion int64 + MapfixID uint64 + ModelID uint64 + ModelVersion uint64 } func unpackUpdateMapfixModelParams(packed middleware.Parameters) (params UpdateMapfixModelParams) { @@ -5862,21 +5862,21 @@ func unpackUpdateMapfixModelParams(packed middleware.Parameters) (params UpdateM Name: "MapfixID", In: "path", } - params.MapfixID = packed[key].(int64) + params.MapfixID = packed[key].(uint64) } { key := middleware.ParameterKey{ Name: "ModelID", In: "query", } - params.ModelID = packed[key].(int64) + params.ModelID = packed[key].(uint64) } { key := middleware.ParameterKey{ Name: "ModelVersion", In: "query", } - params.ModelVersion = packed[key].(int64) + params.ModelVersion = packed[key].(uint64) } return params } @@ -5907,7 +5907,7 @@ func decodeUpdateMapfixModelParams(args [1]string, argsEscaped bool, r *http.Req return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -5960,7 +5960,7 @@ func decodeUpdateMapfixModelParams(args [1]string, argsEscaped bool, r *http.Req return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -6013,7 +6013,7 @@ func decodeUpdateMapfixModelParams(args [1]string, argsEscaped bool, r *http.Req return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -6057,7 +6057,7 @@ func decodeUpdateMapfixModelParams(args [1]string, argsEscaped bool, r *http.Req // UpdateScriptParams is parameters of updateScript operation. type UpdateScriptParams struct { // The unique identifier for a script. - ScriptID int64 + ScriptID uint64 } func unpackUpdateScriptParams(packed middleware.Parameters) (params UpdateScriptParams) { @@ -6066,7 +6066,7 @@ func unpackUpdateScriptParams(packed middleware.Parameters) (params UpdateScript Name: "ScriptID", In: "path", } - params.ScriptID = packed[key].(int64) + params.ScriptID = packed[key].(uint64) } return params } @@ -6096,7 +6096,7 @@ func decodeUpdateScriptParams(args [1]string, argsEscaped bool, r *http.Request) return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -6140,7 +6140,7 @@ func decodeUpdateScriptParams(args [1]string, argsEscaped bool, r *http.Request) // UpdateScriptPolicyParams is parameters of updateScriptPolicy operation. type UpdateScriptPolicyParams struct { // The unique identifier for a script policy. - ScriptPolicyID int64 + ScriptPolicyID uint64 } func unpackUpdateScriptPolicyParams(packed middleware.Parameters) (params UpdateScriptPolicyParams) { @@ -6149,7 +6149,7 @@ func unpackUpdateScriptPolicyParams(packed middleware.Parameters) (params Update Name: "ScriptPolicyID", In: "path", } - params.ScriptPolicyID = packed[key].(int64) + params.ScriptPolicyID = packed[key].(uint64) } return params } @@ -6179,7 +6179,7 @@ func decodeUpdateScriptPolicyParams(args [1]string, argsEscaped bool, r *http.Re return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -6223,9 +6223,9 @@ func decodeUpdateScriptPolicyParams(args [1]string, argsEscaped bool, r *http.Re // UpdateSubmissionModelParams is parameters of updateSubmissionModel operation. type UpdateSubmissionModelParams struct { // The unique identifier for a submission. - SubmissionID int64 - ModelID int64 - ModelVersion int64 + SubmissionID uint64 + ModelID uint64 + ModelVersion uint64 } func unpackUpdateSubmissionModelParams(packed middleware.Parameters) (params UpdateSubmissionModelParams) { @@ -6234,21 +6234,21 @@ func unpackUpdateSubmissionModelParams(packed middleware.Parameters) (params Upd Name: "SubmissionID", In: "path", } - params.SubmissionID = packed[key].(int64) + params.SubmissionID = packed[key].(uint64) } { key := middleware.ParameterKey{ Name: "ModelID", In: "query", } - params.ModelID = packed[key].(int64) + params.ModelID = packed[key].(uint64) } { key := middleware.ParameterKey{ Name: "ModelVersion", In: "query", } - params.ModelVersion = packed[key].(int64) + params.ModelVersion = packed[key].(uint64) } return params } @@ -6279,7 +6279,7 @@ func decodeUpdateSubmissionModelParams(args [1]string, argsEscaped bool, r *http return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -6332,7 +6332,7 @@ func decodeUpdateSubmissionModelParams(args [1]string, argsEscaped bool, r *http return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -6385,7 +6385,7 @@ func decodeUpdateSubmissionModelParams(args [1]string, argsEscaped bool, r *http return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } diff --git a/pkg/api/oas_schemas_gen.go b/pkg/api/oas_schemas_gen.go index b54f84e..12ac4dd 100644 --- a/pkg/api/oas_schemas_gen.go +++ b/pkg/api/oas_schemas_gen.go @@ -76,19 +76,19 @@ type ActionSubmissionValidatedNoContent struct{} // Ref: #/components/schemas/AuditEvent type AuditEvent struct { - ID int64 `json:"ID"` - Date int64 `json:"Date"` - User int64 `json:"User"` + ID uint64 `json:"ID"` + Date int64 `json:"Date"` + User uint64 `json:"User"` // Is this a submission or is it a mapfix. - ResourceType int32 `json:"ResourceType"` - ResourceID int64 `json:"ResourceID"` - EventType int32 `json:"EventType"` + ResourceType uint32 `json:"ResourceType"` + ResourceID uint64 `json:"ResourceID"` + EventType uint32 `json:"EventType"` // Arbitrary event data. EventData AuditEventEventData `json:"EventData"` } // GetID returns the value of ID. -func (s *AuditEvent) GetID() int64 { +func (s *AuditEvent) GetID() uint64 { return s.ID } @@ -98,22 +98,22 @@ func (s *AuditEvent) GetDate() int64 { } // GetUser returns the value of User. -func (s *AuditEvent) GetUser() int64 { +func (s *AuditEvent) GetUser() uint64 { return s.User } // GetResourceType returns the value of ResourceType. -func (s *AuditEvent) GetResourceType() int32 { +func (s *AuditEvent) GetResourceType() uint32 { return s.ResourceType } // GetResourceID returns the value of ResourceID. -func (s *AuditEvent) GetResourceID() int64 { +func (s *AuditEvent) GetResourceID() uint64 { return s.ResourceID } // GetEventType returns the value of EventType. -func (s *AuditEvent) GetEventType() int32 { +func (s *AuditEvent) GetEventType() uint32 { return s.EventType } @@ -123,7 +123,7 @@ func (s *AuditEvent) GetEventData() AuditEventEventData { } // SetID sets the value of ID. -func (s *AuditEvent) SetID(val int64) { +func (s *AuditEvent) SetID(val uint64) { s.ID = val } @@ -133,22 +133,22 @@ func (s *AuditEvent) SetDate(val int64) { } // SetUser sets the value of User. -func (s *AuditEvent) SetUser(val int64) { +func (s *AuditEvent) SetUser(val uint64) { s.User = val } // SetResourceType sets the value of ResourceType. -func (s *AuditEvent) SetResourceType(val int32) { +func (s *AuditEvent) SetResourceType(val uint32) { s.ResourceType = val } // SetResourceID sets the value of ResourceID. -func (s *AuditEvent) SetResourceID(val int64) { +func (s *AuditEvent) SetResourceID(val uint64) { s.ResourceID = val } // SetEventType sets the value of EventType. -func (s *AuditEvent) SetEventType(val int32) { +func (s *AuditEvent) SetEventType(val uint32) { s.EventType = val } @@ -226,12 +226,12 @@ type DeleteScriptPolicyNoContent struct{} // Represents error object. // Ref: #/components/schemas/Error type Error struct { - Code int64 `json:"code"` + Code uint64 `json:"code"` Message string `json:"message"` } // GetCode returns the value of Code. -func (s *Error) GetCode() int64 { +func (s *Error) GetCode() uint64 { return s.Code } @@ -241,7 +241,7 @@ func (s *Error) GetMessage() string { } // SetCode sets the value of Code. -func (s *Error) SetCode(val int64) { +func (s *Error) SetCode(val uint64) { s.Code = val } @@ -278,15 +278,15 @@ func (s *ErrorStatusCode) SetResponse(val Error) { // Ref: #/components/schemas/Map type Map struct { - ID int64 `json:"ID"` + ID uint64 `json:"ID"` DisplayName string `json:"DisplayName"` Creator string `json:"Creator"` - GameID int32 `json:"GameID"` + GameID uint32 `json:"GameID"` Date int64 `json:"Date"` } // GetID returns the value of ID. -func (s *Map) GetID() int64 { +func (s *Map) GetID() uint64 { return s.ID } @@ -301,7 +301,7 @@ func (s *Map) GetCreator() string { } // GetGameID returns the value of GameID. -func (s *Map) GetGameID() int32 { +func (s *Map) GetGameID() uint32 { return s.GameID } @@ -311,7 +311,7 @@ func (s *Map) GetDate() int64 { } // SetID sets the value of ID. -func (s *Map) SetID(val int64) { +func (s *Map) SetID(val uint64) { s.ID = val } @@ -326,7 +326,7 @@ func (s *Map) SetCreator(val string) { } // SetGameID sets the value of GameID. -func (s *Map) SetGameID(val int32) { +func (s *Map) SetGameID(val uint32) { s.GameID = val } @@ -337,23 +337,23 @@ func (s *Map) SetDate(val int64) { // Ref: #/components/schemas/Mapfix type Mapfix struct { - ID int64 `json:"ID"` + ID uint64 `json:"ID"` DisplayName string `json:"DisplayName"` Creator string `json:"Creator"` - GameID int32 `json:"GameID"` + GameID uint32 `json:"GameID"` CreatedAt int64 `json:"CreatedAt"` UpdatedAt int64 `json:"UpdatedAt"` - Submitter int64 `json:"Submitter"` - AssetID int64 `json:"AssetID"` - AssetVersion int64 `json:"AssetVersion"` + Submitter uint64 `json:"Submitter"` + AssetID uint64 `json:"AssetID"` + AssetVersion uint64 `json:"AssetVersion"` Completed bool `json:"Completed"` - TargetAssetID int64 `json:"TargetAssetID"` - StatusID int32 `json:"StatusID"` + TargetAssetID uint64 `json:"TargetAssetID"` + StatusID uint32 `json:"StatusID"` StatusMessage string `json:"StatusMessage"` } // GetID returns the value of ID. -func (s *Mapfix) GetID() int64 { +func (s *Mapfix) GetID() uint64 { return s.ID } @@ -368,7 +368,7 @@ func (s *Mapfix) GetCreator() string { } // GetGameID returns the value of GameID. -func (s *Mapfix) GetGameID() int32 { +func (s *Mapfix) GetGameID() uint32 { return s.GameID } @@ -383,17 +383,17 @@ func (s *Mapfix) GetUpdatedAt() int64 { } // GetSubmitter returns the value of Submitter. -func (s *Mapfix) GetSubmitter() int64 { +func (s *Mapfix) GetSubmitter() uint64 { return s.Submitter } // GetAssetID returns the value of AssetID. -func (s *Mapfix) GetAssetID() int64 { +func (s *Mapfix) GetAssetID() uint64 { return s.AssetID } // GetAssetVersion returns the value of AssetVersion. -func (s *Mapfix) GetAssetVersion() int64 { +func (s *Mapfix) GetAssetVersion() uint64 { return s.AssetVersion } @@ -403,12 +403,12 @@ func (s *Mapfix) GetCompleted() bool { } // GetTargetAssetID returns the value of TargetAssetID. -func (s *Mapfix) GetTargetAssetID() int64 { +func (s *Mapfix) GetTargetAssetID() uint64 { return s.TargetAssetID } // GetStatusID returns the value of StatusID. -func (s *Mapfix) GetStatusID() int32 { +func (s *Mapfix) GetStatusID() uint32 { return s.StatusID } @@ -418,7 +418,7 @@ func (s *Mapfix) GetStatusMessage() string { } // SetID sets the value of ID. -func (s *Mapfix) SetID(val int64) { +func (s *Mapfix) SetID(val uint64) { s.ID = val } @@ -433,7 +433,7 @@ func (s *Mapfix) SetCreator(val string) { } // SetGameID sets the value of GameID. -func (s *Mapfix) SetGameID(val int32) { +func (s *Mapfix) SetGameID(val uint32) { s.GameID = val } @@ -448,17 +448,17 @@ func (s *Mapfix) SetUpdatedAt(val int64) { } // SetSubmitter sets the value of Submitter. -func (s *Mapfix) SetSubmitter(val int64) { +func (s *Mapfix) SetSubmitter(val uint64) { s.Submitter = val } // SetAssetID sets the value of AssetID. -func (s *Mapfix) SetAssetID(val int64) { +func (s *Mapfix) SetAssetID(val uint64) { s.AssetID = val } // SetAssetVersion sets the value of AssetVersion. -func (s *Mapfix) SetAssetVersion(val int64) { +func (s *Mapfix) SetAssetVersion(val uint64) { s.AssetVersion = val } @@ -468,12 +468,12 @@ func (s *Mapfix) SetCompleted(val bool) { } // SetTargetAssetID sets the value of TargetAssetID. -func (s *Mapfix) SetTargetAssetID(val int64) { +func (s *Mapfix) SetTargetAssetID(val uint64) { s.TargetAssetID = val } // SetStatusID sets the value of StatusID. -func (s *Mapfix) SetStatusID(val int32) { +func (s *Mapfix) SetStatusID(val uint32) { s.StatusID = val } @@ -484,38 +484,38 @@ func (s *Mapfix) SetStatusMessage(val string) { // Ref: #/components/schemas/MapfixTriggerCreate type MapfixTriggerCreate struct { - AssetID int64 `json:"AssetID"` - TargetAssetID int64 `json:"TargetAssetID"` + AssetID uint64 `json:"AssetID"` + TargetAssetID uint64 `json:"TargetAssetID"` } // GetAssetID returns the value of AssetID. -func (s *MapfixTriggerCreate) GetAssetID() int64 { +func (s *MapfixTriggerCreate) GetAssetID() uint64 { return s.AssetID } // GetTargetAssetID returns the value of TargetAssetID. -func (s *MapfixTriggerCreate) GetTargetAssetID() int64 { +func (s *MapfixTriggerCreate) GetTargetAssetID() uint64 { return s.TargetAssetID } // SetAssetID sets the value of AssetID. -func (s *MapfixTriggerCreate) SetAssetID(val int64) { +func (s *MapfixTriggerCreate) SetAssetID(val uint64) { s.AssetID = val } // SetTargetAssetID sets the value of TargetAssetID. -func (s *MapfixTriggerCreate) SetTargetAssetID(val int64) { +func (s *MapfixTriggerCreate) SetTargetAssetID(val uint64) { s.TargetAssetID = val } // Ref: #/components/schemas/Mapfixes type Mapfixes struct { - Total int64 `json:"Total"` + Total uint64 `json:"Total"` Mapfixes []Mapfix `json:"Mapfixes"` } // GetTotal returns the value of Total. -func (s *Mapfixes) GetTotal() int64 { +func (s *Mapfixes) GetTotal() uint64 { return s.Total } @@ -525,7 +525,7 @@ func (s *Mapfixes) GetMapfixes() []Mapfix { } // SetTotal sets the value of Total. -func (s *Mapfixes) SetTotal(val int64) { +func (s *Mapfixes) SetTotal(val uint64) { s.Total = val } @@ -536,16 +536,16 @@ func (s *Mapfixes) SetMapfixes(val []Mapfix) { // Ref: #/components/schemas/Operation type Operation struct { - OperationID int32 `json:"OperationID"` + OperationID uint32 `json:"OperationID"` Date int64 `json:"Date"` - Owner int64 `json:"Owner"` - Status int32 `json:"Status"` + Owner uint64 `json:"Owner"` + Status uint32 `json:"Status"` StatusMessage string `json:"StatusMessage"` Path string `json:"Path"` } // GetOperationID returns the value of OperationID. -func (s *Operation) GetOperationID() int32 { +func (s *Operation) GetOperationID() uint32 { return s.OperationID } @@ -555,12 +555,12 @@ func (s *Operation) GetDate() int64 { } // GetOwner returns the value of Owner. -func (s *Operation) GetOwner() int64 { +func (s *Operation) GetOwner() uint64 { return s.Owner } // GetStatus returns the value of Status. -func (s *Operation) GetStatus() int32 { +func (s *Operation) GetStatus() uint32 { return s.Status } @@ -575,7 +575,7 @@ func (s *Operation) GetPath() string { } // SetOperationID sets the value of OperationID. -func (s *Operation) SetOperationID(val int32) { +func (s *Operation) SetOperationID(val uint32) { s.OperationID = val } @@ -585,12 +585,12 @@ func (s *Operation) SetDate(val int64) { } // SetOwner sets the value of Owner. -func (s *Operation) SetOwner(val int64) { +func (s *Operation) SetOwner(val uint64) { s.Owner = val } // SetStatus sets the value of Status. -func (s *Operation) SetStatus(val int32) { +func (s *Operation) SetStatus(val uint32) { s.Status = val } @@ -606,111 +606,19 @@ func (s *Operation) SetPath(val string) { // Ref: #/components/schemas/OperationID type OperationID struct { - OperationID int32 `json:"OperationID"` + OperationID uint32 `json:"OperationID"` } // GetOperationID returns the value of OperationID. -func (s *OperationID) GetOperationID() int32 { +func (s *OperationID) GetOperationID() uint32 { return s.OperationID } // SetOperationID sets the value of OperationID. -func (s *OperationID) SetOperationID(val int32) { +func (s *OperationID) SetOperationID(val uint32) { s.OperationID = 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. func NewOptString(v string) OptString { return OptString{ @@ -757,14 +665,106 @@ func (o OptString) Or(d string) string { 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/ReleaseInfo type ReleaseInfo struct { - SubmissionID int64 `json:"SubmissionID"` + SubmissionID uint64 `json:"SubmissionID"` Date time.Time `json:"Date"` } // GetSubmissionID returns the value of SubmissionID. -func (s *ReleaseInfo) GetSubmissionID() int64 { +func (s *ReleaseInfo) GetSubmissionID() uint64 { return s.SubmissionID } @@ -774,7 +774,7 @@ func (s *ReleaseInfo) GetDate() time.Time { } // SetSubmissionID sets the value of SubmissionID. -func (s *ReleaseInfo) SetSubmissionID(val int64) { +func (s *ReleaseInfo) SetSubmissionID(val uint64) { s.SubmissionID = val } @@ -788,31 +788,31 @@ type ReleaseSubmissionsCreated struct{} // Ref: #/components/schemas/Roles type Roles struct { - Roles int32 `json:"Roles"` + Roles uint32 `json:"Roles"` } // GetRoles returns the value of Roles. -func (s *Roles) GetRoles() int32 { +func (s *Roles) GetRoles() uint32 { return s.Roles } // SetRoles sets the value of Roles. -func (s *Roles) SetRoles(val int32) { +func (s *Roles) SetRoles(val uint32) { s.Roles = val } // Ref: #/components/schemas/Script type Script struct { - ID int64 `json:"ID"` + ID uint64 `json:"ID"` Name string `json:"Name"` Hash string `json:"Hash"` Source string `json:"Source"` - ResourceType int32 `json:"ResourceType"` - ResourceID int64 `json:"ResourceID"` + ResourceType uint32 `json:"ResourceType"` + ResourceID uint64 `json:"ResourceID"` } // GetID returns the value of ID. -func (s *Script) GetID() int64 { +func (s *Script) GetID() uint64 { return s.ID } @@ -832,17 +832,17 @@ func (s *Script) GetSource() string { } // GetResourceType returns the value of ResourceType. -func (s *Script) GetResourceType() int32 { +func (s *Script) GetResourceType() uint32 { return s.ResourceType } // GetResourceID returns the value of ResourceID. -func (s *Script) GetResourceID() int64 { +func (s *Script) GetResourceID() uint64 { return s.ResourceID } // SetID sets the value of ID. -func (s *Script) SetID(val int64) { +func (s *Script) SetID(val uint64) { s.ID = val } @@ -862,21 +862,21 @@ func (s *Script) SetSource(val string) { } // SetResourceType sets the value of ResourceType. -func (s *Script) SetResourceType(val int32) { +func (s *Script) SetResourceType(val uint32) { s.ResourceType = val } // SetResourceID sets the value of ResourceID. -func (s *Script) SetResourceID(val int64) { +func (s *Script) SetResourceID(val uint64) { s.ResourceID = val } // Ref: #/components/schemas/ScriptCreate type ScriptCreate struct { - Name string `json:"Name"` - Source string `json:"Source"` - ResourceType int32 `json:"ResourceType"` - ResourceID OptInt64 `json:"ResourceID"` + Name string `json:"Name"` + Source string `json:"Source"` + ResourceType uint32 `json:"ResourceType"` + ResourceID OptUint64 `json:"ResourceID"` } // GetName returns the value of Name. @@ -890,12 +890,12 @@ func (s *ScriptCreate) GetSource() string { } // GetResourceType returns the value of ResourceType. -func (s *ScriptCreate) GetResourceType() int32 { +func (s *ScriptCreate) GetResourceType() uint32 { return s.ResourceType } // GetResourceID returns the value of ResourceID. -func (s *ScriptCreate) GetResourceID() OptInt64 { +func (s *ScriptCreate) GetResourceID() OptUint64 { return s.ResourceID } @@ -910,40 +910,40 @@ func (s *ScriptCreate) SetSource(val string) { } // SetResourceType sets the value of ResourceType. -func (s *ScriptCreate) SetResourceType(val int32) { +func (s *ScriptCreate) SetResourceType(val uint32) { s.ResourceType = val } // SetResourceID sets the value of ResourceID. -func (s *ScriptCreate) SetResourceID(val OptInt64) { +func (s *ScriptCreate) SetResourceID(val OptUint64) { s.ResourceID = val } // Ref: #/components/schemas/ScriptID type ScriptID struct { - ScriptID int64 `json:"ScriptID"` + ScriptID uint64 `json:"ScriptID"` } // GetScriptID returns the value of ScriptID. -func (s *ScriptID) GetScriptID() int64 { +func (s *ScriptID) GetScriptID() uint64 { return s.ScriptID } // SetScriptID sets the value of ScriptID. -func (s *ScriptID) SetScriptID(val int64) { +func (s *ScriptID) SetScriptID(val uint64) { s.ScriptID = val } // Ref: #/components/schemas/ScriptPolicy type ScriptPolicy struct { - ID int64 `json:"ID"` + ID uint64 `json:"ID"` FromScriptHash string `json:"FromScriptHash"` - ToScriptID int64 `json:"ToScriptID"` - Policy int32 `json:"Policy"` + ToScriptID uint64 `json:"ToScriptID"` + Policy uint32 `json:"Policy"` } // GetID returns the value of ID. -func (s *ScriptPolicy) GetID() int64 { +func (s *ScriptPolicy) GetID() uint64 { return s.ID } @@ -953,17 +953,17 @@ func (s *ScriptPolicy) GetFromScriptHash() string { } // GetToScriptID returns the value of ToScriptID. -func (s *ScriptPolicy) GetToScriptID() int64 { +func (s *ScriptPolicy) GetToScriptID() uint64 { return s.ToScriptID } // GetPolicy returns the value of Policy. -func (s *ScriptPolicy) GetPolicy() int32 { +func (s *ScriptPolicy) GetPolicy() uint32 { return s.Policy } // SetID sets the value of ID. -func (s *ScriptPolicy) SetID(val int64) { +func (s *ScriptPolicy) SetID(val uint64) { s.ID = val } @@ -973,126 +973,126 @@ func (s *ScriptPolicy) SetFromScriptHash(val string) { } // SetToScriptID sets the value of ToScriptID. -func (s *ScriptPolicy) SetToScriptID(val int64) { +func (s *ScriptPolicy) SetToScriptID(val uint64) { s.ToScriptID = val } // SetPolicy sets the value of Policy. -func (s *ScriptPolicy) SetPolicy(val int32) { +func (s *ScriptPolicy) SetPolicy(val uint32) { s.Policy = val } // Ref: #/components/schemas/ScriptPolicyCreate type ScriptPolicyCreate struct { - FromScriptID int64 `json:"FromScriptID"` - ToScriptID int64 `json:"ToScriptID"` - Policy int32 `json:"Policy"` + FromScriptID uint64 `json:"FromScriptID"` + ToScriptID uint64 `json:"ToScriptID"` + Policy uint32 `json:"Policy"` } // GetFromScriptID returns the value of FromScriptID. -func (s *ScriptPolicyCreate) GetFromScriptID() int64 { +func (s *ScriptPolicyCreate) GetFromScriptID() uint64 { return s.FromScriptID } // GetToScriptID returns the value of ToScriptID. -func (s *ScriptPolicyCreate) GetToScriptID() int64 { +func (s *ScriptPolicyCreate) GetToScriptID() uint64 { return s.ToScriptID } // GetPolicy returns the value of Policy. -func (s *ScriptPolicyCreate) GetPolicy() int32 { +func (s *ScriptPolicyCreate) GetPolicy() uint32 { return s.Policy } // SetFromScriptID sets the value of FromScriptID. -func (s *ScriptPolicyCreate) SetFromScriptID(val int64) { +func (s *ScriptPolicyCreate) SetFromScriptID(val uint64) { s.FromScriptID = val } // SetToScriptID sets the value of ToScriptID. -func (s *ScriptPolicyCreate) SetToScriptID(val int64) { +func (s *ScriptPolicyCreate) SetToScriptID(val uint64) { s.ToScriptID = val } // SetPolicy sets the value of Policy. -func (s *ScriptPolicyCreate) SetPolicy(val int32) { +func (s *ScriptPolicyCreate) SetPolicy(val uint32) { s.Policy = val } // Ref: #/components/schemas/ScriptPolicyID type ScriptPolicyID struct { - ScriptPolicyID int64 `json:"ScriptPolicyID"` + ScriptPolicyID uint64 `json:"ScriptPolicyID"` } // GetScriptPolicyID returns the value of ScriptPolicyID. -func (s *ScriptPolicyID) GetScriptPolicyID() int64 { +func (s *ScriptPolicyID) GetScriptPolicyID() uint64 { return s.ScriptPolicyID } // SetScriptPolicyID sets the value of ScriptPolicyID. -func (s *ScriptPolicyID) SetScriptPolicyID(val int64) { +func (s *ScriptPolicyID) SetScriptPolicyID(val uint64) { s.ScriptPolicyID = val } // Ref: #/components/schemas/ScriptPolicyUpdate type ScriptPolicyUpdate struct { - ID int64 `json:"ID"` - FromScriptID OptInt64 `json:"FromScriptID"` - ToScriptID OptInt64 `json:"ToScriptID"` - Policy OptInt32 `json:"Policy"` + ID uint64 `json:"ID"` + FromScriptID OptUint64 `json:"FromScriptID"` + ToScriptID OptUint64 `json:"ToScriptID"` + Policy OptUint32 `json:"Policy"` } // GetID returns the value of ID. -func (s *ScriptPolicyUpdate) GetID() int64 { +func (s *ScriptPolicyUpdate) GetID() uint64 { return s.ID } // GetFromScriptID returns the value of FromScriptID. -func (s *ScriptPolicyUpdate) GetFromScriptID() OptInt64 { +func (s *ScriptPolicyUpdate) GetFromScriptID() OptUint64 { return s.FromScriptID } // GetToScriptID returns the value of ToScriptID. -func (s *ScriptPolicyUpdate) GetToScriptID() OptInt64 { +func (s *ScriptPolicyUpdate) GetToScriptID() OptUint64 { return s.ToScriptID } // GetPolicy returns the value of Policy. -func (s *ScriptPolicyUpdate) GetPolicy() OptInt32 { +func (s *ScriptPolicyUpdate) GetPolicy() OptUint32 { return s.Policy } // SetID sets the value of ID. -func (s *ScriptPolicyUpdate) SetID(val int64) { +func (s *ScriptPolicyUpdate) SetID(val uint64) { s.ID = val } // SetFromScriptID sets the value of FromScriptID. -func (s *ScriptPolicyUpdate) SetFromScriptID(val OptInt64) { +func (s *ScriptPolicyUpdate) SetFromScriptID(val OptUint64) { s.FromScriptID = val } // SetToScriptID sets the value of ToScriptID. -func (s *ScriptPolicyUpdate) SetToScriptID(val OptInt64) { +func (s *ScriptPolicyUpdate) SetToScriptID(val OptUint64) { s.ToScriptID = val } // SetPolicy sets the value of Policy. -func (s *ScriptPolicyUpdate) SetPolicy(val OptInt32) { +func (s *ScriptPolicyUpdate) SetPolicy(val OptUint32) { s.Policy = val } // Ref: #/components/schemas/ScriptUpdate type ScriptUpdate struct { - ID int64 `json:"ID"` + ID uint64 `json:"ID"` Name OptString `json:"Name"` Source OptString `json:"Source"` - ResourceType OptInt32 `json:"ResourceType"` - ResourceID OptInt64 `json:"ResourceID"` + ResourceType OptUint32 `json:"ResourceType"` + ResourceID OptUint64 `json:"ResourceID"` } // GetID returns the value of ID. -func (s *ScriptUpdate) GetID() int64 { +func (s *ScriptUpdate) GetID() uint64 { return s.ID } @@ -1107,17 +1107,17 @@ func (s *ScriptUpdate) GetSource() OptString { } // GetResourceType returns the value of ResourceType. -func (s *ScriptUpdate) GetResourceType() OptInt32 { +func (s *ScriptUpdate) GetResourceType() OptUint32 { return s.ResourceType } // GetResourceID returns the value of ResourceID. -func (s *ScriptUpdate) GetResourceID() OptInt64 { +func (s *ScriptUpdate) GetResourceID() OptUint64 { return s.ResourceID } // SetID sets the value of ID. -func (s *ScriptUpdate) SetID(val int64) { +func (s *ScriptUpdate) SetID(val uint64) { s.ID = val } @@ -1132,12 +1132,12 @@ func (s *ScriptUpdate) SetSource(val OptString) { } // SetResourceType sets the value of ResourceType. -func (s *ScriptUpdate) SetResourceType(val OptInt32) { +func (s *ScriptUpdate) SetResourceType(val OptUint32) { s.ResourceType = val } // SetResourceID sets the value of ResourceID. -func (s *ScriptUpdate) SetResourceID(val OptInt64) { +func (s *ScriptUpdate) SetResourceID(val OptUint64) { s.ResourceID = val } @@ -1149,25 +1149,25 @@ type SetSubmissionCompletedNoContent struct{} // Ref: #/components/schemas/Submission type Submission struct { - ID int64 `json:"ID"` - DisplayName string `json:"DisplayName"` - Creator string `json:"Creator"` - GameID int32 `json:"GameID"` - CreatedAt int64 `json:"CreatedAt"` - UpdatedAt int64 `json:"UpdatedAt"` - Submitter int64 `json:"Submitter"` - AssetID int64 `json:"AssetID"` - AssetVersion int64 `json:"AssetVersion"` - ValidatedAssetID OptInt64 `json:"ValidatedAssetID"` - ValidatedAssetVersion OptInt64 `json:"ValidatedAssetVersion"` - Completed bool `json:"Completed"` - UploadedAssetID OptInt64 `json:"UploadedAssetID"` - StatusID int32 `json:"StatusID"` - StatusMessage string `json:"StatusMessage"` + ID uint64 `json:"ID"` + DisplayName string `json:"DisplayName"` + Creator string `json:"Creator"` + GameID uint32 `json:"GameID"` + CreatedAt uint64 `json:"CreatedAt"` + UpdatedAt uint64 `json:"UpdatedAt"` + Submitter uint64 `json:"Submitter"` + AssetID uint64 `json:"AssetID"` + AssetVersion uint64 `json:"AssetVersion"` + ValidatedAssetID OptUint64 `json:"ValidatedAssetID"` + ValidatedAssetVersion OptUint64 `json:"ValidatedAssetVersion"` + Completed bool `json:"Completed"` + UploadedAssetID OptUint64 `json:"UploadedAssetID"` + StatusID uint32 `json:"StatusID"` + StatusMessage string `json:"StatusMessage"` } // GetID returns the value of ID. -func (s *Submission) GetID() int64 { +func (s *Submission) GetID() uint64 { return s.ID } @@ -1182,42 +1182,42 @@ func (s *Submission) GetCreator() string { } // GetGameID returns the value of GameID. -func (s *Submission) GetGameID() int32 { +func (s *Submission) GetGameID() uint32 { return s.GameID } // GetCreatedAt returns the value of CreatedAt. -func (s *Submission) GetCreatedAt() int64 { +func (s *Submission) GetCreatedAt() uint64 { return s.CreatedAt } // GetUpdatedAt returns the value of UpdatedAt. -func (s *Submission) GetUpdatedAt() int64 { +func (s *Submission) GetUpdatedAt() uint64 { return s.UpdatedAt } // GetSubmitter returns the value of Submitter. -func (s *Submission) GetSubmitter() int64 { +func (s *Submission) GetSubmitter() uint64 { return s.Submitter } // GetAssetID returns the value of AssetID. -func (s *Submission) GetAssetID() int64 { +func (s *Submission) GetAssetID() uint64 { return s.AssetID } // GetAssetVersion returns the value of AssetVersion. -func (s *Submission) GetAssetVersion() int64 { +func (s *Submission) GetAssetVersion() uint64 { return s.AssetVersion } // GetValidatedAssetID returns the value of ValidatedAssetID. -func (s *Submission) GetValidatedAssetID() OptInt64 { +func (s *Submission) GetValidatedAssetID() OptUint64 { return s.ValidatedAssetID } // GetValidatedAssetVersion returns the value of ValidatedAssetVersion. -func (s *Submission) GetValidatedAssetVersion() OptInt64 { +func (s *Submission) GetValidatedAssetVersion() OptUint64 { return s.ValidatedAssetVersion } @@ -1227,12 +1227,12 @@ func (s *Submission) GetCompleted() bool { } // GetUploadedAssetID returns the value of UploadedAssetID. -func (s *Submission) GetUploadedAssetID() OptInt64 { +func (s *Submission) GetUploadedAssetID() OptUint64 { return s.UploadedAssetID } // GetStatusID returns the value of StatusID. -func (s *Submission) GetStatusID() int32 { +func (s *Submission) GetStatusID() uint32 { return s.StatusID } @@ -1242,7 +1242,7 @@ func (s *Submission) GetStatusMessage() string { } // SetID sets the value of ID. -func (s *Submission) SetID(val int64) { +func (s *Submission) SetID(val uint64) { s.ID = val } @@ -1257,42 +1257,42 @@ func (s *Submission) SetCreator(val string) { } // SetGameID sets the value of GameID. -func (s *Submission) SetGameID(val int32) { +func (s *Submission) SetGameID(val uint32) { s.GameID = val } // SetCreatedAt sets the value of CreatedAt. -func (s *Submission) SetCreatedAt(val int64) { +func (s *Submission) SetCreatedAt(val uint64) { s.CreatedAt = val } // SetUpdatedAt sets the value of UpdatedAt. -func (s *Submission) SetUpdatedAt(val int64) { +func (s *Submission) SetUpdatedAt(val uint64) { s.UpdatedAt = val } // SetSubmitter sets the value of Submitter. -func (s *Submission) SetSubmitter(val int64) { +func (s *Submission) SetSubmitter(val uint64) { s.Submitter = val } // SetAssetID sets the value of AssetID. -func (s *Submission) SetAssetID(val int64) { +func (s *Submission) SetAssetID(val uint64) { s.AssetID = val } // SetAssetVersion sets the value of AssetVersion. -func (s *Submission) SetAssetVersion(val int64) { +func (s *Submission) SetAssetVersion(val uint64) { s.AssetVersion = val } // SetValidatedAssetID sets the value of ValidatedAssetID. -func (s *Submission) SetValidatedAssetID(val OptInt64) { +func (s *Submission) SetValidatedAssetID(val OptUint64) { s.ValidatedAssetID = val } // SetValidatedAssetVersion sets the value of ValidatedAssetVersion. -func (s *Submission) SetValidatedAssetVersion(val OptInt64) { +func (s *Submission) SetValidatedAssetVersion(val OptUint64) { s.ValidatedAssetVersion = val } @@ -1302,12 +1302,12 @@ func (s *Submission) SetCompleted(val bool) { } // SetUploadedAssetID sets the value of UploadedAssetID. -func (s *Submission) SetUploadedAssetID(val OptInt64) { +func (s *Submission) SetUploadedAssetID(val OptUint64) { s.UploadedAssetID = val } // SetStatusID sets the value of StatusID. -func (s *Submission) SetStatusID(val int32) { +func (s *Submission) SetStatusID(val uint32) { s.StatusID = val } @@ -1318,27 +1318,27 @@ func (s *Submission) SetStatusMessage(val string) { // Ref: #/components/schemas/SubmissionTriggerCreate type SubmissionTriggerCreate struct { - AssetID int64 `json:"AssetID"` + AssetID uint64 `json:"AssetID"` } // GetAssetID returns the value of AssetID. -func (s *SubmissionTriggerCreate) GetAssetID() int64 { +func (s *SubmissionTriggerCreate) GetAssetID() uint64 { return s.AssetID } // SetAssetID sets the value of AssetID. -func (s *SubmissionTriggerCreate) SetAssetID(val int64) { +func (s *SubmissionTriggerCreate) SetAssetID(val uint64) { s.AssetID = val } // Ref: #/components/schemas/Submissions type Submissions struct { - Total int64 `json:"Total"` + Total uint64 `json:"Total"` Submissions []Submission `json:"Submissions"` } // GetTotal returns the value of Total. -func (s *Submissions) GetTotal() int64 { +func (s *Submissions) GetTotal() uint64 { return s.Total } @@ -1348,7 +1348,7 @@ func (s *Submissions) GetSubmissions() []Submission { } // SetTotal sets the value of Total. -func (s *Submissions) SetTotal(val int64) { +func (s *Submissions) SetTotal(val uint64) { s.Total = val } @@ -1371,13 +1371,13 @@ type UpdateSubmissionModelNoContent struct{} // Ref: #/components/schemas/User type User struct { - UserID int64 `json:"UserID"` + UserID uint64 `json:"UserID"` Username string `json:"Username"` AvatarURL string `json:"AvatarURL"` } // GetUserID returns the value of UserID. -func (s *User) GetUserID() int64 { +func (s *User) GetUserID() uint64 { return s.UserID } @@ -1392,7 +1392,7 @@ func (s *User) GetAvatarURL() string { } // SetUserID sets the value of UserID. -func (s *User) SetUserID(val int64) { +func (s *User) SetUserID(val uint64) { s.UserID = val } diff --git a/pkg/internal/oas_client_gen.go b/pkg/internal/oas_client_gen.go index 3a33e68..a7fcdc0 100644 --- a/pkg/internal/oas_client_gen.go +++ b/pkg/internal/oas_client_gen.go @@ -241,7 +241,7 @@ func (c *Client) sendActionMapfixAccepted(ctx context.Context, params ActionMapf Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.MapfixID)) + return e.EncodeValue(conv.Uint64ToString(params.MapfixID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -350,7 +350,7 @@ func (c *Client) sendActionMapfixSubmitted(ctx context.Context, params ActionMap Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.MapfixID)) + return e.EncodeValue(conv.Uint64ToString(params.MapfixID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -441,7 +441,7 @@ func (c *Client) sendActionMapfixUploaded(ctx context.Context, params ActionMapf Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.MapfixID)) + return e.EncodeValue(conv.Uint64ToString(params.MapfixID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -532,7 +532,7 @@ func (c *Client) sendActionMapfixValidated(ctx context.Context, params ActionMap Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.MapfixID)) + return e.EncodeValue(conv.Uint64ToString(params.MapfixID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -623,7 +623,7 @@ func (c *Client) sendActionOperationFailed(ctx context.Context, params ActionOpe Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int32ToString(params.OperationID)) + return e.EncodeValue(conv.Uint32ToString(params.OperationID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -732,7 +732,7 @@ func (c *Client) sendActionSubmissionAccepted(ctx context.Context, params Action Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) + return e.EncodeValue(conv.Uint64ToString(params.SubmissionID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -841,7 +841,7 @@ func (c *Client) sendActionSubmissionSubmitted(ctx context.Context, params Actio Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) + return e.EncodeValue(conv.Uint64ToString(params.SubmissionID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -932,7 +932,7 @@ func (c *Client) sendActionSubmissionUploaded(ctx context.Context, params Action Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) + return e.EncodeValue(conv.Uint64ToString(params.SubmissionID)) }(); err != nil { 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 { - return e.EncodeValue(conv.Int64ToString(params.UploadedAssetID)) + return e.EncodeValue(conv.Uint64ToString(params.UploadedAssetID)) }); err != nil { return res, errors.Wrap(err, "encode query") } @@ -1041,7 +1041,7 @@ func (c *Client) sendActionSubmissionValidated(ctx context.Context, params Actio Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) + return e.EncodeValue(conv.Uint64ToString(params.SubmissionID)) }(); err != nil { return res, errors.Wrap(err, "encode path") } @@ -1432,7 +1432,7 @@ func (c *Client) sendGetScript(ctx context.Context, params GetScriptParams) (res Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.ScriptID)) + return e.EncodeValue(conv.Uint64ToString(params.ScriptID)) }(); err != nil { 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 { - return e.EncodeValue(conv.Int32ToString(params.Page)) + return e.EncodeValue(conv.Uint32ToString(params.Page)) }); err != nil { 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 { - return e.EncodeValue(conv.Int32ToString(params.Limit)) + return e.EncodeValue(conv.Uint32ToString(params.Limit)) }); err != nil { 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 val, ok := params.ToScriptID.Get(); ok { - return e.EncodeValue(conv.Int64ToString(val)) + return e.EncodeValue(conv.Uint64ToString(val)) } return 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 val, ok := params.Policy.Get(); ok { - return e.EncodeValue(conv.Int32ToString(val)) + return e.EncodeValue(conv.Uint32ToString(val)) } return 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 { - return e.EncodeValue(conv.Int32ToString(params.Page)) + return e.EncodeValue(conv.Uint32ToString(params.Page)) }); err != nil { 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 { - return e.EncodeValue(conv.Int32ToString(params.Limit)) + return e.EncodeValue(conv.Uint32ToString(params.Limit)) }); err != nil { 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 val, ok := params.ResourceType.Get(); ok { - return e.EncodeValue(conv.Int32ToString(val)) + return e.EncodeValue(conv.Uint32ToString(val)) } return 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 val, ok := params.ResourceID.Get(); ok { - return e.EncodeValue(conv.Int64ToString(val)) + return e.EncodeValue(conv.Uint64ToString(val)) } return nil }); err != nil { @@ -1866,7 +1866,7 @@ func (c *Client) sendUpdateMapfixValidatedModel(ctx context.Context, params Upda Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.MapfixID)) + return e.EncodeValue(conv.Uint64ToString(params.MapfixID)) }(); err != nil { 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 { - return e.EncodeValue(conv.Int64ToString(params.ValidatedModelID)) + return e.EncodeValue(conv.Uint64ToString(params.ValidatedModelID)) }); err != nil { 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 { - return e.EncodeValue(conv.Int64ToString(params.ValidatedModelVersion)) + return e.EncodeValue(conv.Uint64ToString(params.ValidatedModelVersion)) }); err != nil { return res, errors.Wrap(err, "encode query") } @@ -1989,7 +1989,7 @@ func (c *Client) sendUpdateSubmissionValidatedModel(ctx context.Context, params Explode: false, }) if err := func() error { - return e.EncodeValue(conv.Int64ToString(params.SubmissionID)) + return e.EncodeValue(conv.Uint64ToString(params.SubmissionID)) }(); err != nil { 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 { - return e.EncodeValue(conv.Int64ToString(params.ValidatedModelID)) + return e.EncodeValue(conv.Uint64ToString(params.ValidatedModelID)) }); err != nil { 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 { - return e.EncodeValue(conv.Int64ToString(params.ValidatedModelVersion)) + return e.EncodeValue(conv.Uint64ToString(params.ValidatedModelVersion)) }); err != nil { return res, errors.Wrap(err, "encode query") } diff --git a/pkg/internal/oas_json_gen.go b/pkg/internal/oas_json_gen.go index 4de742d..8f9a749 100644 --- a/pkg/internal/oas_json_gen.go +++ b/pkg/internal/oas_json_gen.go @@ -23,7 +23,7 @@ func (s *Error) Encode(e *jx.Encoder) { func (s *Error) encodeFields(e *jx.Encoder) { { e.FieldStart("code") - e.Int64(s.Code) + e.UInt64(s.Code) } { e.FieldStart("message") @@ -48,8 +48,8 @@ func (s *Error) Decode(d *jx.Decoder) error { case "code": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.Code = int64(v) + v, err := d.UInt64() + s.Code = uint64(v) if err != nil { return err } @@ -136,11 +136,11 @@ func (s *MapfixCreate) Encode(e *jx.Encoder) { func (s *MapfixCreate) encodeFields(e *jx.Encoder) { { e.FieldStart("OperationID") - e.Int32(s.OperationID) + e.UInt32(s.OperationID) } { e.FieldStart("AssetOwner") - e.Int64(s.AssetOwner) + e.UInt64(s.AssetOwner) } { e.FieldStart("DisplayName") @@ -152,19 +152,19 @@ func (s *MapfixCreate) encodeFields(e *jx.Encoder) { } { e.FieldStart("GameID") - e.Int32(s.GameID) + e.UInt32(s.GameID) } { e.FieldStart("AssetID") - e.Int64(s.AssetID) + e.UInt64(s.AssetID) } { e.FieldStart("AssetVersion") - e.Int64(s.AssetVersion) + e.UInt64(s.AssetVersion) } { 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": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int32() - s.OperationID = int32(v) + v, err := d.UInt32() + s.OperationID = uint32(v) if err != nil { return err } @@ -203,8 +203,8 @@ func (s *MapfixCreate) Decode(d *jx.Decoder) error { case "AssetOwner": requiredBitSet[0] |= 1 << 1 if err := func() error { - v, err := d.Int64() - s.AssetOwner = int64(v) + v, err := d.UInt64() + s.AssetOwner = uint64(v) if err != nil { return err } @@ -239,8 +239,8 @@ func (s *MapfixCreate) Decode(d *jx.Decoder) error { case "GameID": requiredBitSet[0] |= 1 << 4 if err := func() error { - v, err := d.Int32() - s.GameID = int32(v) + v, err := d.UInt32() + s.GameID = uint32(v) if err != nil { return err } @@ -251,8 +251,8 @@ func (s *MapfixCreate) Decode(d *jx.Decoder) error { case "AssetID": requiredBitSet[0] |= 1 << 5 if err := func() error { - v, err := d.Int64() - s.AssetID = int64(v) + v, err := d.UInt64() + s.AssetID = uint64(v) if err != nil { return err } @@ -263,8 +263,8 @@ func (s *MapfixCreate) Decode(d *jx.Decoder) error { case "AssetVersion": requiredBitSet[0] |= 1 << 6 if err := func() error { - v, err := d.Int64() - s.AssetVersion = int64(v) + v, err := d.UInt64() + s.AssetVersion = uint64(v) if err != nil { return err } @@ -275,8 +275,8 @@ func (s *MapfixCreate) Decode(d *jx.Decoder) error { case "TargetAssetID": requiredBitSet[0] |= 1 << 7 if err := func() error { - v, err := d.Int64() - s.TargetAssetID = int64(v) + v, err := d.UInt64() + s.TargetAssetID = uint64(v) if err != nil { return err } @@ -351,7 +351,7 @@ func (s *MapfixID) Encode(e *jx.Encoder) { func (s *MapfixID) encodeFields(e *jx.Encoder) { { 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": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.MapfixID = int64(v) + v, err := d.UInt64() + s.MapfixID = uint64(v) if err != nil { return err } @@ -436,37 +436,37 @@ func (s *MapfixID) UnmarshalJSON(data []byte) error { return s.Decode(d) } -// Encode encodes int64 as json. -func (o OptInt64) Encode(e *jx.Encoder) { +// Encode encodes uint64 as json. +func (o OptUint64) Encode(e *jx.Encoder) { if !o.Set { return } - e.Int64(int64(o.Value)) + e.UInt64(uint64(o.Value)) } -// Decode decodes int64 from json. -func (o *OptInt64) Decode(d *jx.Decoder) error { +// Decode decodes uint64 from json. +func (o *OptUint64) Decode(d *jx.Decoder) error { 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 - v, err := d.Int64() + v, err := d.UInt64() if err != nil { return err } - o.Value = int64(v) + o.Value = uint64(v) return nil } // MarshalJSON implements stdjson.Marshaler. -func (s OptInt64) MarshalJSON() ([]byte, error) { +func (s OptUint64) MarshalJSON() ([]byte, error) { e := jx.Encoder{} s.Encode(&e) return e.Bytes(), nil } // UnmarshalJSON implements stdjson.Unmarshaler. -func (s *OptInt64) UnmarshalJSON(data []byte) error { +func (s *OptUint64) UnmarshalJSON(data []byte) error { d := jx.DecodeBytes(data) return s.Decode(d) } @@ -482,7 +482,7 @@ func (s *Script) Encode(e *jx.Encoder) { func (s *Script) encodeFields(e *jx.Encoder) { { e.FieldStart("ID") - e.Int64(s.ID) + e.UInt64(s.ID) } { e.FieldStart("Name") @@ -498,11 +498,11 @@ func (s *Script) encodeFields(e *jx.Encoder) { } { e.FieldStart("ResourceType") - e.Int32(s.ResourceType) + e.UInt32(s.ResourceType) } { 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": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.ID = int64(v) + v, err := d.UInt64() + s.ID = uint64(v) if err != nil { return err } @@ -575,8 +575,8 @@ func (s *Script) Decode(d *jx.Decoder) error { case "ResourceType": requiredBitSet[0] |= 1 << 4 if err := func() error { - v, err := d.Int32() - s.ResourceType = int32(v) + v, err := d.UInt32() + s.ResourceType = uint32(v) if err != nil { return err } @@ -587,8 +587,8 @@ func (s *Script) Decode(d *jx.Decoder) error { case "ResourceID": requiredBitSet[0] |= 1 << 5 if err := func() error { - v, err := d.Int64() - s.ResourceID = int64(v) + v, err := d.UInt64() + s.ResourceID = uint64(v) if err != nil { return err } @@ -671,7 +671,7 @@ func (s *ScriptCreate) encodeFields(e *jx.Encoder) { } { e.FieldStart("ResourceType") - e.Int32(s.ResourceType) + e.UInt32(s.ResourceType) } { if s.ResourceID.Set { @@ -724,8 +724,8 @@ func (s *ScriptCreate) Decode(d *jx.Decoder) error { case "ResourceType": requiredBitSet[0] |= 1 << 2 if err := func() error { - v, err := d.Int32() - s.ResourceType = int32(v) + v, err := d.UInt32() + s.ResourceType = uint32(v) if err != nil { return err } @@ -810,7 +810,7 @@ func (s *ScriptID) Encode(e *jx.Encoder) { func (s *ScriptID) encodeFields(e *jx.Encoder) { { 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": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.ScriptID = int64(v) + v, err := d.UInt64() + s.ScriptID = uint64(v) if err != nil { return err } @@ -906,7 +906,7 @@ func (s *ScriptPolicy) Encode(e *jx.Encoder) { func (s *ScriptPolicy) encodeFields(e *jx.Encoder) { { e.FieldStart("ID") - e.Int64(s.ID) + e.UInt64(s.ID) } { e.FieldStart("FromScriptHash") @@ -914,11 +914,11 @@ func (s *ScriptPolicy) encodeFields(e *jx.Encoder) { } { e.FieldStart("ToScriptID") - e.Int64(s.ToScriptID) + e.UInt64(s.ToScriptID) } { 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": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.ID = int64(v) + v, err := d.UInt64() + s.ID = uint64(v) if err != nil { return err } @@ -965,8 +965,8 @@ func (s *ScriptPolicy) Decode(d *jx.Decoder) error { case "ToScriptID": requiredBitSet[0] |= 1 << 2 if err := func() error { - v, err := d.Int64() - s.ToScriptID = int64(v) + v, err := d.UInt64() + s.ToScriptID = uint64(v) if err != nil { return err } @@ -977,8 +977,8 @@ func (s *ScriptPolicy) Decode(d *jx.Decoder) error { case "Policy": requiredBitSet[0] |= 1 << 3 if err := func() error { - v, err := d.Int32() - s.Policy = int32(v) + v, err := d.UInt32() + s.Policy = uint32(v) if err != nil { return err } @@ -1053,15 +1053,15 @@ func (s *ScriptPolicyCreate) Encode(e *jx.Encoder) { func (s *ScriptPolicyCreate) encodeFields(e *jx.Encoder) { { e.FieldStart("FromScriptID") - e.Int64(s.FromScriptID) + e.UInt64(s.FromScriptID) } { e.FieldStart("ToScriptID") - e.Int64(s.ToScriptID) + e.UInt64(s.ToScriptID) } { 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": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.FromScriptID = int64(v) + v, err := d.UInt64() + s.FromScriptID = uint64(v) if err != nil { return err } @@ -1095,8 +1095,8 @@ func (s *ScriptPolicyCreate) Decode(d *jx.Decoder) error { case "ToScriptID": requiredBitSet[0] |= 1 << 1 if err := func() error { - v, err := d.Int64() - s.ToScriptID = int64(v) + v, err := d.UInt64() + s.ToScriptID = uint64(v) if err != nil { return err } @@ -1107,8 +1107,8 @@ func (s *ScriptPolicyCreate) Decode(d *jx.Decoder) error { case "Policy": requiredBitSet[0] |= 1 << 2 if err := func() error { - v, err := d.Int32() - s.Policy = int32(v) + v, err := d.UInt32() + s.Policy = uint32(v) if err != nil { return err } @@ -1183,7 +1183,7 @@ func (s *ScriptPolicyID) Encode(e *jx.Encoder) { func (s *ScriptPolicyID) encodeFields(e *jx.Encoder) { { 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": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.ScriptPolicyID = int64(v) + v, err := d.UInt64() + s.ScriptPolicyID = uint64(v) if err != nil { return err } @@ -1279,11 +1279,11 @@ func (s *SubmissionCreate) Encode(e *jx.Encoder) { func (s *SubmissionCreate) encodeFields(e *jx.Encoder) { { e.FieldStart("OperationID") - e.Int32(s.OperationID) + e.UInt32(s.OperationID) } { e.FieldStart("AssetOwner") - e.Int64(s.AssetOwner) + e.UInt64(s.AssetOwner) } { e.FieldStart("DisplayName") @@ -1295,15 +1295,15 @@ func (s *SubmissionCreate) encodeFields(e *jx.Encoder) { } { e.FieldStart("GameID") - e.Int32(s.GameID) + e.UInt32(s.GameID) } { e.FieldStart("AssetID") - e.Int64(s.AssetID) + e.UInt64(s.AssetID) } { 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": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int32() - s.OperationID = int32(v) + v, err := d.UInt32() + s.OperationID = uint32(v) if err != nil { return err } @@ -1341,8 +1341,8 @@ func (s *SubmissionCreate) Decode(d *jx.Decoder) error { case "AssetOwner": requiredBitSet[0] |= 1 << 1 if err := func() error { - v, err := d.Int64() - s.AssetOwner = int64(v) + v, err := d.UInt64() + s.AssetOwner = uint64(v) if err != nil { return err } @@ -1377,8 +1377,8 @@ func (s *SubmissionCreate) Decode(d *jx.Decoder) error { case "GameID": requiredBitSet[0] |= 1 << 4 if err := func() error { - v, err := d.Int32() - s.GameID = int32(v) + v, err := d.UInt32() + s.GameID = uint32(v) if err != nil { return err } @@ -1389,8 +1389,8 @@ func (s *SubmissionCreate) Decode(d *jx.Decoder) error { case "AssetID": requiredBitSet[0] |= 1 << 5 if err := func() error { - v, err := d.Int64() - s.AssetID = int64(v) + v, err := d.UInt64() + s.AssetID = uint64(v) if err != nil { return err } @@ -1401,8 +1401,8 @@ func (s *SubmissionCreate) Decode(d *jx.Decoder) error { case "AssetVersion": requiredBitSet[0] |= 1 << 6 if err := func() error { - v, err := d.Int64() - s.AssetVersion = int64(v) + v, err := d.UInt64() + s.AssetVersion = uint64(v) if err != nil { return err } @@ -1477,7 +1477,7 @@ func (s *SubmissionID) Encode(e *jx.Encoder) { func (s *SubmissionID) encodeFields(e *jx.Encoder) { { 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": requiredBitSet[0] |= 1 << 0 if err := func() error { - v, err := d.Int64() - s.SubmissionID = int64(v) + v, err := d.UInt64() + s.SubmissionID = uint64(v) if err != nil { return err } diff --git a/pkg/internal/oas_parameters_gen.go b/pkg/internal/oas_parameters_gen.go index f564af1..880d9b3 100644 --- a/pkg/internal/oas_parameters_gen.go +++ b/pkg/internal/oas_parameters_gen.go @@ -18,7 +18,7 @@ import ( // ActionMapfixAcceptedParams is parameters of actionMapfixAccepted operation. type ActionMapfixAcceptedParams struct { // The unique identifier for a submission. - MapfixID int64 + MapfixID uint64 StatusMessage string } @@ -28,7 +28,7 @@ func unpackActionMapfixAcceptedParams(packed middleware.Parameters) (params Acti Name: "MapfixID", In: "path", } - params.MapfixID = packed[key].(int64) + params.MapfixID = packed[key].(uint64) } { key := middleware.ParameterKey{ @@ -66,7 +66,7 @@ func decodeActionMapfixAcceptedParams(args [1]string, argsEscaped bool, r *http. return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -162,7 +162,7 @@ func decodeActionMapfixAcceptedParams(args [1]string, argsEscaped bool, r *http. // ActionMapfixSubmittedParams is parameters of actionMapfixSubmitted operation. type ActionMapfixSubmittedParams struct { // The unique identifier for a submission. - MapfixID int64 + MapfixID uint64 } func unpackActionMapfixSubmittedParams(packed middleware.Parameters) (params ActionMapfixSubmittedParams) { @@ -171,7 +171,7 @@ func unpackActionMapfixSubmittedParams(packed middleware.Parameters) (params Act Name: "MapfixID", In: "path", } - params.MapfixID = packed[key].(int64) + params.MapfixID = packed[key].(uint64) } return params } @@ -201,7 +201,7 @@ func decodeActionMapfixSubmittedParams(args [1]string, argsEscaped bool, r *http return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -245,7 +245,7 @@ func decodeActionMapfixSubmittedParams(args [1]string, argsEscaped bool, r *http // ActionMapfixUploadedParams is parameters of actionMapfixUploaded operation. type ActionMapfixUploadedParams struct { // The unique identifier for a submission. - MapfixID int64 + MapfixID uint64 } func unpackActionMapfixUploadedParams(packed middleware.Parameters) (params ActionMapfixUploadedParams) { @@ -254,7 +254,7 @@ func unpackActionMapfixUploadedParams(packed middleware.Parameters) (params Acti Name: "MapfixID", In: "path", } - params.MapfixID = packed[key].(int64) + params.MapfixID = packed[key].(uint64) } return params } @@ -284,7 +284,7 @@ func decodeActionMapfixUploadedParams(args [1]string, argsEscaped bool, r *http. return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -328,7 +328,7 @@ func decodeActionMapfixUploadedParams(args [1]string, argsEscaped bool, r *http. // ActionMapfixValidatedParams is parameters of actionMapfixValidated operation. type ActionMapfixValidatedParams struct { // The unique identifier for a submission. - MapfixID int64 + MapfixID uint64 } func unpackActionMapfixValidatedParams(packed middleware.Parameters) (params ActionMapfixValidatedParams) { @@ -337,7 +337,7 @@ func unpackActionMapfixValidatedParams(packed middleware.Parameters) (params Act Name: "MapfixID", In: "path", } - params.MapfixID = packed[key].(int64) + params.MapfixID = packed[key].(uint64) } return params } @@ -367,7 +367,7 @@ func decodeActionMapfixValidatedParams(args [1]string, argsEscaped bool, r *http return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -411,7 +411,7 @@ func decodeActionMapfixValidatedParams(args [1]string, argsEscaped bool, r *http // ActionOperationFailedParams is parameters of actionOperationFailed operation. type ActionOperationFailedParams struct { // The unique identifier for a long-running operation. - OperationID int32 + OperationID uint32 StatusMessage string } @@ -421,7 +421,7 @@ func unpackActionOperationFailedParams(packed middleware.Parameters) (params Act Name: "OperationID", In: "path", } - params.OperationID = packed[key].(int32) + params.OperationID = packed[key].(uint32) } { key := middleware.ParameterKey{ @@ -459,7 +459,7 @@ func decodeActionOperationFailedParams(args [1]string, argsEscaped bool, r *http return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -555,7 +555,7 @@ func decodeActionOperationFailedParams(args [1]string, argsEscaped bool, r *http // ActionSubmissionAcceptedParams is parameters of actionSubmissionAccepted operation. type ActionSubmissionAcceptedParams struct { // The unique identifier for a submission. - SubmissionID int64 + SubmissionID uint64 StatusMessage string } @@ -565,7 +565,7 @@ func unpackActionSubmissionAcceptedParams(packed middleware.Parameters) (params Name: "SubmissionID", In: "path", } - params.SubmissionID = packed[key].(int64) + params.SubmissionID = packed[key].(uint64) } { key := middleware.ParameterKey{ @@ -603,7 +603,7 @@ func decodeActionSubmissionAcceptedParams(args [1]string, argsEscaped bool, r *h return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -699,7 +699,7 @@ func decodeActionSubmissionAcceptedParams(args [1]string, argsEscaped bool, r *h // ActionSubmissionSubmittedParams is parameters of actionSubmissionSubmitted operation. type ActionSubmissionSubmittedParams struct { // The unique identifier for a submission. - SubmissionID int64 + SubmissionID uint64 } func unpackActionSubmissionSubmittedParams(packed middleware.Parameters) (params ActionSubmissionSubmittedParams) { @@ -708,7 +708,7 @@ func unpackActionSubmissionSubmittedParams(packed middleware.Parameters) (params Name: "SubmissionID", In: "path", } - params.SubmissionID = packed[key].(int64) + params.SubmissionID = packed[key].(uint64) } return params } @@ -738,7 +738,7 @@ func decodeActionSubmissionSubmittedParams(args [1]string, argsEscaped bool, r * return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -782,8 +782,8 @@ func decodeActionSubmissionSubmittedParams(args [1]string, argsEscaped bool, r * // ActionSubmissionUploadedParams is parameters of actionSubmissionUploaded operation. type ActionSubmissionUploadedParams struct { // The unique identifier for a submission. - SubmissionID int64 - UploadedAssetID int64 + SubmissionID uint64 + UploadedAssetID uint64 } func unpackActionSubmissionUploadedParams(packed middleware.Parameters) (params ActionSubmissionUploadedParams) { @@ -792,14 +792,14 @@ func unpackActionSubmissionUploadedParams(packed middleware.Parameters) (params Name: "SubmissionID", In: "path", } - params.SubmissionID = packed[key].(int64) + params.SubmissionID = packed[key].(uint64) } { key := middleware.ParameterKey{ Name: "UploadedAssetID", In: "query", } - params.UploadedAssetID = packed[key].(int64) + params.UploadedAssetID = packed[key].(uint64) } return params } @@ -830,7 +830,7 @@ func decodeActionSubmissionUploadedParams(args [1]string, argsEscaped bool, r *h return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -883,7 +883,7 @@ func decodeActionSubmissionUploadedParams(args [1]string, argsEscaped bool, r *h return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -927,7 +927,7 @@ func decodeActionSubmissionUploadedParams(args [1]string, argsEscaped bool, r *h // ActionSubmissionValidatedParams is parameters of actionSubmissionValidated operation. type ActionSubmissionValidatedParams struct { // The unique identifier for a submission. - SubmissionID int64 + SubmissionID uint64 } func unpackActionSubmissionValidatedParams(packed middleware.Parameters) (params ActionSubmissionValidatedParams) { @@ -936,7 +936,7 @@ func unpackActionSubmissionValidatedParams(packed middleware.Parameters) (params Name: "SubmissionID", In: "path", } - params.SubmissionID = packed[key].(int64) + params.SubmissionID = packed[key].(uint64) } return params } @@ -966,7 +966,7 @@ func decodeActionSubmissionValidatedParams(args [1]string, argsEscaped bool, r * return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -1010,7 +1010,7 @@ func decodeActionSubmissionValidatedParams(args [1]string, argsEscaped bool, r * // GetScriptParams is parameters of getScript operation. type GetScriptParams struct { // The unique identifier for a script. - ScriptID int64 + ScriptID uint64 } func unpackGetScriptParams(packed middleware.Parameters) (params GetScriptParams) { @@ -1019,7 +1019,7 @@ func unpackGetScriptParams(packed middleware.Parameters) (params GetScriptParams Name: "ScriptID", In: "path", } - params.ScriptID = packed[key].(int64) + params.ScriptID = packed[key].(uint64) } return params } @@ -1049,7 +1049,7 @@ func decodeGetScriptParams(args [1]string, argsEscaped bool, r *http.Request) (p return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -1092,11 +1092,11 @@ func decodeGetScriptParams(args [1]string, argsEscaped bool, r *http.Request) (p // ListScriptPolicyParams is parameters of listScriptPolicy operation. type ListScriptPolicyParams struct { - Page int32 - Limit int32 + Page uint32 + Limit uint32 FromScriptHash OptString - ToScriptID OptInt64 - Policy OptInt32 + ToScriptID OptUint64 + Policy OptUint32 } func unpackListScriptPolicyParams(packed middleware.Parameters) (params ListScriptPolicyParams) { @@ -1105,14 +1105,14 @@ func unpackListScriptPolicyParams(packed middleware.Parameters) (params ListScri Name: "Page", In: "query", } - params.Page = packed[key].(int32) + params.Page = packed[key].(uint32) } { key := middleware.ParameterKey{ Name: "Limit", In: "query", } - params.Limit = packed[key].(int32) + params.Limit = packed[key].(uint32) } { key := middleware.ParameterKey{ @@ -1129,7 +1129,7 @@ func unpackListScriptPolicyParams(packed middleware.Parameters) (params ListScri In: "query", } 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", } if v, ok := packed[key]; ok { - params.Policy = v.(OptInt32) + params.Policy = v.(OptUint32) } } return params @@ -1161,7 +1161,7 @@ func decodeListScriptPolicyParams(args [0]string, argsEscaped bool, r *http.Requ return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -1214,7 +1214,7 @@ func decodeListScriptPolicyParams(args [0]string, argsEscaped bool, r *http.Requ return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { 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.DecodeParam(cfg, func(d uri.Decoder) error { - var paramsDotToScriptIDVal int64 + var paramsDotToScriptIDVal uint64 if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { 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.DecodeParam(cfg, func(d uri.Decoder) error { - var paramsDotPolicyVal int32 + var paramsDotPolicyVal uint32 if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -1451,13 +1451,13 @@ func decodeListScriptPolicyParams(args [0]string, argsEscaped bool, r *http.Requ // ListScriptsParams is parameters of listScripts operation. type ListScriptsParams struct { - Page int32 - Limit int32 + Page uint32 + Limit uint32 Hash OptString Name OptString Source OptString - ResourceType OptInt32 - ResourceID OptInt64 + ResourceType OptUint32 + ResourceID OptUint64 } func unpackListScriptsParams(packed middleware.Parameters) (params ListScriptsParams) { @@ -1466,14 +1466,14 @@ func unpackListScriptsParams(packed middleware.Parameters) (params ListScriptsPa Name: "Page", In: "query", } - params.Page = packed[key].(int32) + params.Page = packed[key].(uint32) } { key := middleware.ParameterKey{ Name: "Limit", In: "query", } - params.Limit = packed[key].(int32) + params.Limit = packed[key].(uint32) } { key := middleware.ParameterKey{ @@ -1508,7 +1508,7 @@ func unpackListScriptsParams(packed middleware.Parameters) (params ListScriptsPa In: "query", } 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", } if v, ok := packed[key]; ok { - params.ResourceID = v.(OptInt64) + params.ResourceID = v.(OptUint64) } } return params @@ -1540,7 +1540,7 @@ func decodeListScriptsParams(args [0]string, argsEscaped bool, r *http.Request) return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { return err } @@ -1593,7 +1593,7 @@ func decodeListScriptsParams(args [0]string, argsEscaped bool, r *http.Request) return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { 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.DecodeParam(cfg, func(d uri.Decoder) error { - var paramsDotResourceTypeVal int32 + var paramsDotResourceTypeVal uint32 if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToInt32(val) + c, err := conv.ToUint32(val) if err != nil { 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.DecodeParam(cfg, func(d uri.Decoder) error { - var paramsDotResourceIDVal int64 + var paramsDotResourceIDVal uint64 if err := func() error { val, err := d.DecodeValue() if err != nil { return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -1959,9 +1959,9 @@ func decodeListScriptsParams(args [0]string, argsEscaped bool, r *http.Request) // UpdateMapfixValidatedModelParams is parameters of updateMapfixValidatedModel operation. type UpdateMapfixValidatedModelParams struct { // The unique identifier for a submission. - MapfixID int64 - ValidatedModelID int64 - ValidatedModelVersion int64 + MapfixID uint64 + ValidatedModelID uint64 + ValidatedModelVersion uint64 } func unpackUpdateMapfixValidatedModelParams(packed middleware.Parameters) (params UpdateMapfixValidatedModelParams) { @@ -1970,21 +1970,21 @@ func unpackUpdateMapfixValidatedModelParams(packed middleware.Parameters) (param Name: "MapfixID", In: "path", } - params.MapfixID = packed[key].(int64) + params.MapfixID = packed[key].(uint64) } { key := middleware.ParameterKey{ Name: "ValidatedModelID", In: "query", } - params.ValidatedModelID = packed[key].(int64) + params.ValidatedModelID = packed[key].(uint64) } { key := middleware.ParameterKey{ Name: "ValidatedModelVersion", In: "query", } - params.ValidatedModelVersion = packed[key].(int64) + params.ValidatedModelVersion = packed[key].(uint64) } return params } @@ -2015,7 +2015,7 @@ func decodeUpdateMapfixValidatedModelParams(args [1]string, argsEscaped bool, r return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -2068,7 +2068,7 @@ func decodeUpdateMapfixValidatedModelParams(args [1]string, argsEscaped bool, r return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -2121,7 +2121,7 @@ func decodeUpdateMapfixValidatedModelParams(args [1]string, argsEscaped bool, r return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -2165,9 +2165,9 @@ func decodeUpdateMapfixValidatedModelParams(args [1]string, argsEscaped bool, r // UpdateSubmissionValidatedModelParams is parameters of updateSubmissionValidatedModel operation. type UpdateSubmissionValidatedModelParams struct { // The unique identifier for a submission. - SubmissionID int64 - ValidatedModelID int64 - ValidatedModelVersion int64 + SubmissionID uint64 + ValidatedModelID uint64 + ValidatedModelVersion uint64 } func unpackUpdateSubmissionValidatedModelParams(packed middleware.Parameters) (params UpdateSubmissionValidatedModelParams) { @@ -2176,21 +2176,21 @@ func unpackUpdateSubmissionValidatedModelParams(packed middleware.Parameters) (p Name: "SubmissionID", In: "path", } - params.SubmissionID = packed[key].(int64) + params.SubmissionID = packed[key].(uint64) } { key := middleware.ParameterKey{ Name: "ValidatedModelID", In: "query", } - params.ValidatedModelID = packed[key].(int64) + params.ValidatedModelID = packed[key].(uint64) } { key := middleware.ParameterKey{ Name: "ValidatedModelVersion", In: "query", } - params.ValidatedModelVersion = packed[key].(int64) + params.ValidatedModelVersion = packed[key].(uint64) } return params } @@ -2221,7 +2221,7 @@ func decodeUpdateSubmissionValidatedModelParams(args [1]string, argsEscaped bool return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -2274,7 +2274,7 @@ func decodeUpdateSubmissionValidatedModelParams(args [1]string, argsEscaped bool return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } @@ -2327,7 +2327,7 @@ func decodeUpdateSubmissionValidatedModelParams(args [1]string, argsEscaped bool return err } - c, err := conv.ToInt64(val) + c, err := conv.ToUint64(val) if err != nil { return err } diff --git a/pkg/internal/oas_schemas_gen.go b/pkg/internal/oas_schemas_gen.go index e68e85a..c616e6d 100644 --- a/pkg/internal/oas_schemas_gen.go +++ b/pkg/internal/oas_schemas_gen.go @@ -40,12 +40,12 @@ type ActionSubmissionValidatedNoContent struct{} // Represents error object. // Ref: #/components/schemas/Error type Error struct { - Code int64 `json:"code"` + Code uint64 `json:"code"` Message string `json:"message"` } // GetCode returns the value of Code. -func (s *Error) GetCode() int64 { +func (s *Error) GetCode() uint64 { return s.Code } @@ -55,7 +55,7 @@ func (s *Error) GetMessage() string { } // SetCode sets the value of Code. -func (s *Error) SetCode(val int64) { +func (s *Error) SetCode(val uint64) { s.Code = val } @@ -92,23 +92,23 @@ func (s *ErrorStatusCode) SetResponse(val Error) { // Ref: #/components/schemas/MapfixCreate type MapfixCreate struct { - OperationID int32 `json:"OperationID"` - AssetOwner int64 `json:"AssetOwner"` + OperationID uint32 `json:"OperationID"` + AssetOwner uint64 `json:"AssetOwner"` DisplayName string `json:"DisplayName"` Creator string `json:"Creator"` - GameID int32 `json:"GameID"` - AssetID int64 `json:"AssetID"` - AssetVersion int64 `json:"AssetVersion"` - TargetAssetID int64 `json:"TargetAssetID"` + GameID uint32 `json:"GameID"` + AssetID uint64 `json:"AssetID"` + AssetVersion uint64 `json:"AssetVersion"` + TargetAssetID uint64 `json:"TargetAssetID"` } // GetOperationID returns the value of OperationID. -func (s *MapfixCreate) GetOperationID() int32 { +func (s *MapfixCreate) GetOperationID() uint32 { return s.OperationID } // GetAssetOwner returns the value of AssetOwner. -func (s *MapfixCreate) GetAssetOwner() int64 { +func (s *MapfixCreate) GetAssetOwner() uint64 { return s.AssetOwner } @@ -123,32 +123,32 @@ func (s *MapfixCreate) GetCreator() string { } // GetGameID returns the value of GameID. -func (s *MapfixCreate) GetGameID() int32 { +func (s *MapfixCreate) GetGameID() uint32 { return s.GameID } // GetAssetID returns the value of AssetID. -func (s *MapfixCreate) GetAssetID() int64 { +func (s *MapfixCreate) GetAssetID() uint64 { return s.AssetID } // GetAssetVersion returns the value of AssetVersion. -func (s *MapfixCreate) GetAssetVersion() int64 { +func (s *MapfixCreate) GetAssetVersion() uint64 { return s.AssetVersion } // GetTargetAssetID returns the value of TargetAssetID. -func (s *MapfixCreate) GetTargetAssetID() int64 { +func (s *MapfixCreate) GetTargetAssetID() uint64 { return s.TargetAssetID } // SetOperationID sets the value of OperationID. -func (s *MapfixCreate) SetOperationID(val int32) { +func (s *MapfixCreate) SetOperationID(val uint32) { s.OperationID = val } // SetAssetOwner sets the value of AssetOwner. -func (s *MapfixCreate) SetAssetOwner(val int64) { +func (s *MapfixCreate) SetAssetOwner(val uint64) { s.AssetOwner = val } @@ -163,132 +163,40 @@ func (s *MapfixCreate) SetCreator(val string) { } // SetGameID sets the value of GameID. -func (s *MapfixCreate) SetGameID(val int32) { +func (s *MapfixCreate) SetGameID(val uint32) { s.GameID = val } // SetAssetID sets the value of AssetID. -func (s *MapfixCreate) SetAssetID(val int64) { +func (s *MapfixCreate) SetAssetID(val uint64) { s.AssetID = val } // SetAssetVersion sets the value of AssetVersion. -func (s *MapfixCreate) SetAssetVersion(val int64) { +func (s *MapfixCreate) SetAssetVersion(val uint64) { s.AssetVersion = val } // SetTargetAssetID sets the value of TargetAssetID. -func (s *MapfixCreate) SetTargetAssetID(val int64) { +func (s *MapfixCreate) SetTargetAssetID(val uint64) { s.TargetAssetID = val } // Ref: #/components/schemas/MapfixID type MapfixID struct { - MapfixID int64 `json:"MapfixID"` + MapfixID uint64 `json:"MapfixID"` } // GetMapfixID returns the value of MapfixID. -func (s *MapfixID) GetMapfixID() int64 { +func (s *MapfixID) GetMapfixID() uint64 { return s.MapfixID } // SetMapfixID sets the value of MapfixID. -func (s *MapfixID) SetMapfixID(val int64) { +func (s *MapfixID) SetMapfixID(val uint64) { 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. func NewOptString(v string) OptString { return OptString{ @@ -335,18 +243,110 @@ func (o OptString) Or(d string) string { 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 type Script struct { - ID int64 `json:"ID"` + ID uint64 `json:"ID"` Name string `json:"Name"` Hash string `json:"Hash"` Source string `json:"Source"` - ResourceType int32 `json:"ResourceType"` - ResourceID int64 `json:"ResourceID"` + ResourceType uint32 `json:"ResourceType"` + ResourceID uint64 `json:"ResourceID"` } // GetID returns the value of ID. -func (s *Script) GetID() int64 { +func (s *Script) GetID() uint64 { return s.ID } @@ -366,17 +366,17 @@ func (s *Script) GetSource() string { } // GetResourceType returns the value of ResourceType. -func (s *Script) GetResourceType() int32 { +func (s *Script) GetResourceType() uint32 { return s.ResourceType } // GetResourceID returns the value of ResourceID. -func (s *Script) GetResourceID() int64 { +func (s *Script) GetResourceID() uint64 { return s.ResourceID } // SetID sets the value of ID. -func (s *Script) SetID(val int64) { +func (s *Script) SetID(val uint64) { s.ID = val } @@ -396,21 +396,21 @@ func (s *Script) SetSource(val string) { } // SetResourceType sets the value of ResourceType. -func (s *Script) SetResourceType(val int32) { +func (s *Script) SetResourceType(val uint32) { s.ResourceType = val } // SetResourceID sets the value of ResourceID. -func (s *Script) SetResourceID(val int64) { +func (s *Script) SetResourceID(val uint64) { s.ResourceID = val } // Ref: #/components/schemas/ScriptCreate type ScriptCreate struct { - Name string `json:"Name"` - Source string `json:"Source"` - ResourceType int32 `json:"ResourceType"` - ResourceID OptInt64 `json:"ResourceID"` + Name string `json:"Name"` + Source string `json:"Source"` + ResourceType uint32 `json:"ResourceType"` + ResourceID OptUint64 `json:"ResourceID"` } // GetName returns the value of Name. @@ -424,12 +424,12 @@ func (s *ScriptCreate) GetSource() string { } // GetResourceType returns the value of ResourceType. -func (s *ScriptCreate) GetResourceType() int32 { +func (s *ScriptCreate) GetResourceType() uint32 { return s.ResourceType } // GetResourceID returns the value of ResourceID. -func (s *ScriptCreate) GetResourceID() OptInt64 { +func (s *ScriptCreate) GetResourceID() OptUint64 { return s.ResourceID } @@ -444,40 +444,40 @@ func (s *ScriptCreate) SetSource(val string) { } // SetResourceType sets the value of ResourceType. -func (s *ScriptCreate) SetResourceType(val int32) { +func (s *ScriptCreate) SetResourceType(val uint32) { s.ResourceType = val } // SetResourceID sets the value of ResourceID. -func (s *ScriptCreate) SetResourceID(val OptInt64) { +func (s *ScriptCreate) SetResourceID(val OptUint64) { s.ResourceID = val } // Ref: #/components/schemas/ScriptID type ScriptID struct { - ScriptID int64 `json:"ScriptID"` + ScriptID uint64 `json:"ScriptID"` } // GetScriptID returns the value of ScriptID. -func (s *ScriptID) GetScriptID() int64 { +func (s *ScriptID) GetScriptID() uint64 { return s.ScriptID } // SetScriptID sets the value of ScriptID. -func (s *ScriptID) SetScriptID(val int64) { +func (s *ScriptID) SetScriptID(val uint64) { s.ScriptID = val } // Ref: #/components/schemas/ScriptPolicy type ScriptPolicy struct { - ID int64 `json:"ID"` + ID uint64 `json:"ID"` FromScriptHash string `json:"FromScriptHash"` - ToScriptID int64 `json:"ToScriptID"` - Policy int32 `json:"Policy"` + ToScriptID uint64 `json:"ToScriptID"` + Policy uint32 `json:"Policy"` } // GetID returns the value of ID. -func (s *ScriptPolicy) GetID() int64 { +func (s *ScriptPolicy) GetID() uint64 { return s.ID } @@ -487,17 +487,17 @@ func (s *ScriptPolicy) GetFromScriptHash() string { } // GetToScriptID returns the value of ToScriptID. -func (s *ScriptPolicy) GetToScriptID() int64 { +func (s *ScriptPolicy) GetToScriptID() uint64 { return s.ToScriptID } // GetPolicy returns the value of Policy. -func (s *ScriptPolicy) GetPolicy() int32 { +func (s *ScriptPolicy) GetPolicy() uint32 { return s.Policy } // SetID sets the value of ID. -func (s *ScriptPolicy) SetID(val int64) { +func (s *ScriptPolicy) SetID(val uint64) { s.ID = val } @@ -507,85 +507,85 @@ func (s *ScriptPolicy) SetFromScriptHash(val string) { } // SetToScriptID sets the value of ToScriptID. -func (s *ScriptPolicy) SetToScriptID(val int64) { +func (s *ScriptPolicy) SetToScriptID(val uint64) { s.ToScriptID = val } // SetPolicy sets the value of Policy. -func (s *ScriptPolicy) SetPolicy(val int32) { +func (s *ScriptPolicy) SetPolicy(val uint32) { s.Policy = val } // Ref: #/components/schemas/ScriptPolicyCreate type ScriptPolicyCreate struct { - FromScriptID int64 `json:"FromScriptID"` - ToScriptID int64 `json:"ToScriptID"` - Policy int32 `json:"Policy"` + FromScriptID uint64 `json:"FromScriptID"` + ToScriptID uint64 `json:"ToScriptID"` + Policy uint32 `json:"Policy"` } // GetFromScriptID returns the value of FromScriptID. -func (s *ScriptPolicyCreate) GetFromScriptID() int64 { +func (s *ScriptPolicyCreate) GetFromScriptID() uint64 { return s.FromScriptID } // GetToScriptID returns the value of ToScriptID. -func (s *ScriptPolicyCreate) GetToScriptID() int64 { +func (s *ScriptPolicyCreate) GetToScriptID() uint64 { return s.ToScriptID } // GetPolicy returns the value of Policy. -func (s *ScriptPolicyCreate) GetPolicy() int32 { +func (s *ScriptPolicyCreate) GetPolicy() uint32 { return s.Policy } // SetFromScriptID sets the value of FromScriptID. -func (s *ScriptPolicyCreate) SetFromScriptID(val int64) { +func (s *ScriptPolicyCreate) SetFromScriptID(val uint64) { s.FromScriptID = val } // SetToScriptID sets the value of ToScriptID. -func (s *ScriptPolicyCreate) SetToScriptID(val int64) { +func (s *ScriptPolicyCreate) SetToScriptID(val uint64) { s.ToScriptID = val } // SetPolicy sets the value of Policy. -func (s *ScriptPolicyCreate) SetPolicy(val int32) { +func (s *ScriptPolicyCreate) SetPolicy(val uint32) { s.Policy = val } // Ref: #/components/schemas/ScriptPolicyID type ScriptPolicyID struct { - ScriptPolicyID int64 `json:"ScriptPolicyID"` + ScriptPolicyID uint64 `json:"ScriptPolicyID"` } // GetScriptPolicyID returns the value of ScriptPolicyID. -func (s *ScriptPolicyID) GetScriptPolicyID() int64 { +func (s *ScriptPolicyID) GetScriptPolicyID() uint64 { return s.ScriptPolicyID } // SetScriptPolicyID sets the value of ScriptPolicyID. -func (s *ScriptPolicyID) SetScriptPolicyID(val int64) { +func (s *ScriptPolicyID) SetScriptPolicyID(val uint64) { s.ScriptPolicyID = val } // Ref: #/components/schemas/SubmissionCreate type SubmissionCreate struct { - OperationID int32 `json:"OperationID"` - AssetOwner int64 `json:"AssetOwner"` + OperationID uint32 `json:"OperationID"` + AssetOwner uint64 `json:"AssetOwner"` DisplayName string `json:"DisplayName"` Creator string `json:"Creator"` - GameID int32 `json:"GameID"` - AssetID int64 `json:"AssetID"` - AssetVersion int64 `json:"AssetVersion"` + GameID uint32 `json:"GameID"` + AssetID uint64 `json:"AssetID"` + AssetVersion uint64 `json:"AssetVersion"` } // GetOperationID returns the value of OperationID. -func (s *SubmissionCreate) GetOperationID() int32 { +func (s *SubmissionCreate) GetOperationID() uint32 { return s.OperationID } // GetAssetOwner returns the value of AssetOwner. -func (s *SubmissionCreate) GetAssetOwner() int64 { +func (s *SubmissionCreate) GetAssetOwner() uint64 { return s.AssetOwner } @@ -600,27 +600,27 @@ func (s *SubmissionCreate) GetCreator() string { } // GetGameID returns the value of GameID. -func (s *SubmissionCreate) GetGameID() int32 { +func (s *SubmissionCreate) GetGameID() uint32 { return s.GameID } // GetAssetID returns the value of AssetID. -func (s *SubmissionCreate) GetAssetID() int64 { +func (s *SubmissionCreate) GetAssetID() uint64 { return s.AssetID } // GetAssetVersion returns the value of AssetVersion. -func (s *SubmissionCreate) GetAssetVersion() int64 { +func (s *SubmissionCreate) GetAssetVersion() uint64 { return s.AssetVersion } // SetOperationID sets the value of OperationID. -func (s *SubmissionCreate) SetOperationID(val int32) { +func (s *SubmissionCreate) SetOperationID(val uint32) { s.OperationID = val } // SetAssetOwner sets the value of AssetOwner. -func (s *SubmissionCreate) SetAssetOwner(val int64) { +func (s *SubmissionCreate) SetAssetOwner(val uint64) { s.AssetOwner = val } @@ -635,32 +635,32 @@ func (s *SubmissionCreate) SetCreator(val string) { } // SetGameID sets the value of GameID. -func (s *SubmissionCreate) SetGameID(val int32) { +func (s *SubmissionCreate) SetGameID(val uint32) { s.GameID = val } // SetAssetID sets the value of AssetID. -func (s *SubmissionCreate) SetAssetID(val int64) { +func (s *SubmissionCreate) SetAssetID(val uint64) { s.AssetID = val } // SetAssetVersion sets the value of AssetVersion. -func (s *SubmissionCreate) SetAssetVersion(val int64) { +func (s *SubmissionCreate) SetAssetVersion(val uint64) { s.AssetVersion = val } // Ref: #/components/schemas/SubmissionID type SubmissionID struct { - SubmissionID int64 `json:"SubmissionID"` + SubmissionID uint64 `json:"SubmissionID"` } // GetSubmissionID returns the value of SubmissionID. -func (s *SubmissionID) GetSubmissionID() int64 { +func (s *SubmissionID) GetSubmissionID() uint64 { return s.SubmissionID } // SetSubmissionID sets the value of SubmissionID. -func (s *SubmissionID) SetSubmissionID(val int64) { +func (s *SubmissionID) SetSubmissionID(val uint64) { s.SubmissionID = val }