use a real id, not all zeroes
This commit is contained in:
@@ -15,7 +15,7 @@ type Ranking struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Movie struct {
|
type Movie struct {
|
||||||
ID bson.ObjectID `bson:"_id" json:"_id"`
|
ID bson.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
|
||||||
ImdbID string `bson:"imdb_id" json:"imdb_id" validate:"required"`
|
ImdbID string `bson:"imdb_id" json:"imdb_id" validate:"required"`
|
||||||
ReleaseYear int `bson:"release_year" json:"release_year" validate:"required"` // how to get this to be a numeric value that is four digits starting with 19?
|
ReleaseYear int `bson:"release_year" json:"release_year" validate:"required"` // how to get this to be a numeric value that is four digits starting with 19?
|
||||||
Title string `bson:"title" json:"title" validate:"required,min=2,max=500"`
|
Title string `bson:"title" json:"title" validate:"required,min=2,max=500"`
|
||||||
|
|||||||
Reference in New Issue
Block a user