Changed native/response types to conform recommendations from README

This commit is contained in:
Max Cherry
2017-11-13 20:27:09 +02:00
parent e6947c4358
commit 8fc864bd69
3 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ type Asset struct {
// int
// Description:
// Unique asset ID, assigned by exchange, must match one of the asset IDs in request.
ID int `json:"id"`
ID int64 `json:"id"`
// Field:
// required
@@ -28,7 +28,7 @@ type Asset struct {
// 0
// Description:
// Set to 1 if asset is required. (bidder requires it to be displayed).
Required int `json:"required,omitempty"`
Required int8 `json:"required,omitempty"`
// Field:
// title
+2 -2
View File
@@ -23,7 +23,7 @@ type Image struct {
// int
// Description:
// Width of the image in pixels
W int `json:"w,omitempty"`
W uint64 `json:"w,omitempty"`
// Field:
// h
@@ -33,7 +33,7 @@ type Image struct {
// int
// Description:
// Height of the image in pixels
H int `json:"h,omitempty"`
H uint64 `json:"h,omitempty"`
// Field:
// ext
+2
View File
@@ -10,6 +10,8 @@ type Response struct {
// optional
// Type:
// string
// Default:
// 1.1
// Description:
// Version of the Native Markup version in use.
Ver string `json:"ver,omitempty"`