This repository has been archived on 2025-02-01. You can view files and clone it, but cannot push or open issues or pull requests.
eve-goclient/models/get_characters_character_id_skills_o_k_body.go

75 lines
1.8 KiB
Go

// Code generated by go-swagger; DO NOT EDIT.
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/swag"
)
// GetCharactersCharacterIDSkillsOKBody get_characters_character_id_skills_ok
//
// 200 ok object
// swagger:model getCharactersCharacterIdSkillsOKBody
type GetCharactersCharacterIDSkillsOKBody struct {
// skills
Skills GetCharactersCharacterIDSkillsOKBodySkills `json:"skills"`
// get_characters_character_id_skills_total_sp
//
// total_sp integer
TotalSp int64 `json:"total_sp,omitempty"`
}
/* polymorph getCharactersCharacterIdSkillsOKBody skills false */
/* polymorph getCharactersCharacterIdSkillsOKBody total_sp false */
// Validate validates this get characters character Id skills o k body
func (m *GetCharactersCharacterIDSkillsOKBody) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateSkills(formats); err != nil {
// prop
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *GetCharactersCharacterIDSkillsOKBody) validateSkills(formats strfmt.Registry) error {
if swag.IsZero(m.Skills) { // not required
return nil
}
return nil
}
// MarshalBinary interface implementation
func (m *GetCharactersCharacterIDSkillsOKBody) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *GetCharactersCharacterIDSkillsOKBody) UnmarshalBinary(b []byte) error {
var res GetCharactersCharacterIDSkillsOKBody
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}