/* * Solidarity Mobility API * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * API version: 1.0.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi type PassengerTripRequest struct { User User `json:"user"` Preferences Preferences `json:"preferences,omitempty"` } // AssertPassengerTripRequestRequired checks if the required fields are not zero-ed func AssertPassengerTripRequestRequired(obj PassengerTripRequest) error { elements := map[string]interface{}{ "user": obj.User, } for name, el := range elements { if isZero := IsZeroValue(el); isZero { return &RequiredError{Field: name} } } if err := AssertUserRequired(obj.User); err != nil { return err } if err := AssertPreferencesRequired(obj.Preferences); err != nil { return err } return nil } // AssertPassengerTripRequestConstraints checks if the values respects the defined constraints func AssertPassengerTripRequestConstraints(obj PassengerTripRequest) error { return nil }