feat(assessment): watermark the task text of real attempts

This commit is contained in:
shira committed 2026-10-11 10:44:30 +03:00
1 parent 24b64d698a
commit c975a0d506
57 files changed
+2429 -92

No files matched your search

@@ -17,26 +17,27 @@ import (
)
var regexMap = map[string]ogenregex.Regexp{
"\\S": ogenregex.MustCompile("\\S"),
"^(/([^~/]|~[01])*)*$": ogenregex.MustCompile("^(/([^~/]|~[01])*)*$"),
"^/[A-Za-z0-9/_-]{0,255}$": ogenregex.MustCompile("^/[A-Za-z0-9/_-]{0,255}$"),
"^@[A-Za-z0-9_]{5,32}$": ogenregex.MustCompile("^@[A-Za-z0-9_]{5,32}$"),
"^SC-[0-9]{4}-[0-9]{6,10}$": ogenregex.MustCompile("^SC-[0-9]{4}-[0-9]{6,10}$"),
"^[0-9]{4}-(0[1-9]|1[0-2])$": ogenregex.MustCompile("^[0-9]{4}-(0[1-9]|1[0-2])$"),
"^[0-9]{6}$": ogenregex.MustCompile("^[0-9]{6}$"),
"^[A-Za-z0-9._-]+$": ogenregex.MustCompile("^[A-Za-z0-9._-]+$"),
"^[A-Za-z0-9._:-]+$": ogenregex.MustCompile("^[A-Za-z0-9._:-]+$"),
"^[A-Za-z0-9_-]+$": ogenregex.MustCompile("^[A-Za-z0-9_-]+$"),
"^[a-z0-9][a-z0-9_.+#-]*$": ogenregex.MustCompile("^[a-z0-9][a-z0-9_.+#-]*$"),
"^[a-z0-9_+-]+$": ogenregex.MustCompile("^[a-z0-9_+-]+$"),
"^[a-z0-9_]+$": ogenregex.MustCompile("^[a-z0-9_]+$"),
"^[a-z][a-z0-9_]*$": ogenregex.MustCompile("^[a-z][a-z0-9_]*$"),
"^\\+[1-9][0-9]{6,14}$": ogenregex.MustCompile("^\\+[1-9][0-9]{6,14}$"),
"^\\S(?:.*\\S)?$": ogenregex.MustCompile("^\\S(?:.*\\S)?$"),
"^\\S(?:[^\\n\\r]*\\S)?$": ogenregex.MustCompile("^\\S(?:[^\\n\\r]*\\S)?$"),
"^__Host-lincodex_session=": ogenregex.MustCompile("^__Host-lincodex_session="),
"^cv1_[A-Za-z0-9_-]{43}$": ogenregex.MustCompile("^cv1_[A-Za-z0-9_-]{43}$"),
"^https://[^\\s/?#@]+(?:[/?#][^\\s]*)?$": ogenregex.MustCompile("^https://[^\\s/?#@]+(?:[/?#][^\\s]*)?$"),
"\\S": ogenregex.MustCompile("\\S"),
"^(/([^~/]|~[01])*)*$": ogenregex.MustCompile("^(/([^~/]|~[01])*)*$"),
"^/[A-Za-z0-9/_-]{0,255}$": ogenregex.MustCompile("^/[A-Za-z0-9/_-]{0,255}$"),
"^@[A-Za-z0-9_]{5,32}$": ogenregex.MustCompile("^@[A-Za-z0-9_]{5,32}$"),
"^SC-[0-9]{4}-[0-9]{6,10}$": ogenregex.MustCompile("^SC-[0-9]{4}-[0-9]{6,10}$"),
"^[0-9A-HJKMNP-TV-Z]{5}-?[0-9A-HJKMNP-TV-Z]{5}$": ogenregex.MustCompile("^[0-9A-HJKMNP-TV-Z]{5}-?[0-9A-HJKMNP-TV-Z]{5}$"),
"^[0-9]{4}-(0[1-9]|1[0-2])$": ogenregex.MustCompile("^[0-9]{4}-(0[1-9]|1[0-2])$"),
"^[0-9]{6}$": ogenregex.MustCompile("^[0-9]{6}$"),
"^[A-Za-z0-9._-]+$": ogenregex.MustCompile("^[A-Za-z0-9._-]+$"),
"^[A-Za-z0-9._:-]+$": ogenregex.MustCompile("^[A-Za-z0-9._:-]+$"),
"^[A-Za-z0-9_-]+$": ogenregex.MustCompile("^[A-Za-z0-9_-]+$"),
"^[a-z0-9][a-z0-9_.+#-]*$": ogenregex.MustCompile("^[a-z0-9][a-z0-9_.+#-]*$"),
"^[a-z0-9_+-]+$": ogenregex.MustCompile("^[a-z0-9_+-]+$"),
"^[a-z0-9_]+$": ogenregex.MustCompile("^[a-z0-9_]+$"),
"^[a-z][a-z0-9_]*$": ogenregex.MustCompile("^[a-z][a-z0-9_]*$"),
"^\\+[1-9][0-9]{6,14}$": ogenregex.MustCompile("^\\+[1-9][0-9]{6,14}$"),
"^\\S(?:.*\\S)?$": ogenregex.MustCompile("^\\S(?:.*\\S)?$"),
"^\\S(?:[^\\n\\r]*\\S)?$": ogenregex.MustCompile("^\\S(?:[^\\n\\r]*\\S)?$"),
"^__Host-lincodex_session=": ogenregex.MustCompile("^__Host-lincodex_session="),
"^cv1_[A-Za-z0-9_-]{43}$": ogenregex.MustCompile("^cv1_[A-Za-z0-9_-]{43}$"),
"^https://[^\\s/?#@]+(?:[/?#][^\\s]*)?$": ogenregex.MustCompile("^https://[^\\s/?#@]+(?:[/?#][^\\s]*)?$"),
"^https://github\\.com/[A-Za-z0-9](?:[A-Za-z0-9-]{0,38})/[A-Za-z0-9._-]{1,100}/?$": ogenregex.MustCompile("^https://github\\.com/[A-Za-z0-9](?:[A-Za-z0-9-]{0,38})/[A-Za-z0-9._-]{1,100}/?$"),
}
var (
@@ -1496,6 +1496,12 @@ func (s AssessmentAttempt) encodeFields(e *jx.Encoder) {
}
e.ArrEnd()
}
{
if s.Watermark.Set {
e.FieldStart("watermark")
s.Watermark.Encode(e)
}
}
}
case AssessmentCorrectiveAttemptAssessmentAttempt:
e.FieldStart("kind")
@@ -1574,6 +1580,12 @@ func (s AssessmentAttempt) encodeFields(e *jx.Encoder) {
}
e.ArrEnd()
}
{
if s.Watermark.Set {
e.FieldStart("watermark")
s.Watermark.Encode(e)
}
}
}
case AssessmentExpressAttemptAssessmentAttempt:
e.FieldStart("kind")
@@ -1652,6 +1664,12 @@ func (s AssessmentAttempt) encodeFields(e *jx.Encoder) {
}
e.ArrEnd()
}
{
if s.Watermark.Set {
e.FieldStart("watermark")
s.Watermark.Encode(e)
}
}
}
}
}
@@ -2712,9 +2730,15 @@ func (s *AssessmentCorrectiveAttempt) encodeFields(e *jx.Encoder) {
}
e.ArrEnd()
}
{
if s.Watermark.Set {
e.FieldStart("watermark")
s.Watermark.Encode(e)
}
}
}
var jsonFieldsNameOfAssessmentCorrectiveAttempt = [18]string{
var jsonFieldsNameOfAssessmentCorrectiveAttempt = [19]string{
0: "id",
1: "version",
2: "specialization",
@@ -2733,6 +2757,7 @@ var jsonFieldsNameOfAssessmentCorrectiveAttempt = [18]string{
15: "progress",
16: "current_item",
17: "practices",
18: "watermark",
}
// Decode decodes AssessmentCorrectiveAttempt from json.
@@ -2934,6 +2959,16 @@ func (s *AssessmentCorrectiveAttempt) Decode(d *jx.Decoder) error {
}(); err != nil {
return errors.Wrap(err, "decode field \"practices\"")
}
case "watermark":
if err := func() error {
s.Watermark.Reset()
if err := s.Watermark.Decode(d); err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrap(err, "decode field \"watermark\"")
}
default:
return errors.Errorf("unexpected field %q", k)
}
@@ -4031,9 +4066,15 @@ func (s *AssessmentExpressAttempt) encodeFields(e *jx.Encoder) {
}
e.ArrEnd()
}
{
if s.Watermark.Set {
e.FieldStart("watermark")
s.Watermark.Encode(e)
}
}
}
var jsonFieldsNameOfAssessmentExpressAttempt = [18]string{
var jsonFieldsNameOfAssessmentExpressAttempt = [19]string{
0: "id",
1: "version",
2: "specialization",
@@ -4052,6 +4093,7 @@ var jsonFieldsNameOfAssessmentExpressAttempt = [18]string{
15: "progress",
16: "current_item",
17: "practices",
18: "watermark",
}
// Decode decodes AssessmentExpressAttempt from json.
@@ -4253,6 +4295,16 @@ func (s *AssessmentExpressAttempt) Decode(d *jx.Decoder) error {
}(); err != nil {
return errors.Wrap(err, "decode field \"practices\"")
}
case "watermark":
if err := func() error {
s.Watermark.Reset()
if err := s.Watermark.Decode(d); err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrap(err, "decode field \"watermark\"")
}
default:
return errors.Errorf("unexpected field %q", k)
}
@@ -7488,9 +7540,15 @@ func (s *AssessmentQualifiedAttempt) encodeFields(e *jx.Encoder) {
}
e.ArrEnd()
}
{
if s.Watermark.Set {
e.FieldStart("watermark")
s.Watermark.Encode(e)
}
}
}
var jsonFieldsNameOfAssessmentQualifiedAttempt = [18]string{
var jsonFieldsNameOfAssessmentQualifiedAttempt = [19]string{
0: "id",
1: "version",
2: "specialization",
@@ -7509,6 +7567,7 @@ var jsonFieldsNameOfAssessmentQualifiedAttempt = [18]string{
15: "progress",
16: "current_item",
17: "practices",
18: "watermark",
}
// Decode decodes AssessmentQualifiedAttempt from json.
@@ -7710,6 +7769,16 @@ func (s *AssessmentQualifiedAttempt) Decode(d *jx.Decoder) error {
}(); err != nil {
return errors.Wrap(err, "decode field \"practices\"")
}
case "watermark":
if err := func() error {
s.Watermark.Reset()
if err := s.Watermark.Decode(d); err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrap(err, "decode field \"watermark\"")
}
default:
return errors.Errorf("unexpected field %q", k)
}
@@ -10838,6 +10907,102 @@ func (s *AssessmentVersions) UnmarshalJSON(data []byte) error {
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *AssessmentWatermark) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields encodes fields.
func (s *AssessmentWatermark) encodeFields(e *jx.Encoder) {
{
e.FieldStart("code")
e.Str(s.Code)
}
}
var jsonFieldsNameOfAssessmentWatermark = [1]string{
0: "code",
}
// Decode decodes AssessmentWatermark from json.
func (s *AssessmentWatermark) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode AssessmentWatermark to nil")
}
var requiredBitSet [1]uint8
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
case "code":
requiredBitSet[0] |= 1 << 0
if err := func() error {
v, err := d.Str()
s.Code = string(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrap(err, "decode field \"code\"")
}
default:
return errors.Errorf("unexpected field %q", k)
}
return nil
}); err != nil {
return errors.Wrap(err, "decode AssessmentWatermark")
}
// Validate required fields.
var failures []validate.FieldError
for i, mask := range [1]uint8{
0b00000001,
} {
if result := (requiredBitSet[i] & mask) ^ mask; result != 0 {
// Mask only required fields and check equality to mask using XOR.
//
// If XOR result is not zero, result is not equal to expected, so some fields are missed.
// Bits of fields which would be set are actually bits of missed fields.
missed := bits.OnesCount8(result)
for bitN := 0; bitN < missed; bitN++ {
bitIdx := bits.TrailingZeros8(result)
fieldIdx := i*8 + bitIdx
var name string
if fieldIdx < len(jsonFieldsNameOfAssessmentWatermark) {
name = jsonFieldsNameOfAssessmentWatermark[fieldIdx]
} else {
name = strconv.Itoa(fieldIdx)
}
failures = append(failures, validate.FieldError{
Name: name,
Error: validate.ErrFieldRequired,
})
// Reset bit.
result &^= 1 << bitIdx
}
}
}
if len(failures) > 0 {
return &validate.Error{Fields: failures}
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s *AssessmentWatermark) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *AssessmentWatermark) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *BasicScore) Encode(e *jx.Encoder) {
e.ObjStart()
@@ -43534,6 +43699,39 @@ func (s *OptAssessmentCategoryDecisionView) UnmarshalJSON(data []byte) error {
return s.Decode(d)
}
// Encode encodes AssessmentWatermark as json.
func (o OptAssessmentWatermark) Encode(e *jx.Encoder) {
if !o.Set {
return
}
o.Value.Encode(e)
}
// Decode decodes AssessmentWatermark from json.
func (o *OptAssessmentWatermark) Decode(d *jx.Decoder) error {
if o == nil {
return errors.New("invalid: unable to decode OptAssessmentWatermark to nil")
}
o.Set = true
if err := o.Value.Decode(d); err != nil {
return err
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s OptAssessmentWatermark) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *OptAssessmentWatermark) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode encodes CandidateSalaryCompatibility as json.
func (o OptCandidateSalaryCompatibility) Encode(e *jx.Encoder) {
if !o.Set {
@@ -1387,7 +1387,8 @@ type AssessmentCorrectiveAttempt struct {
// otherwise.
CurrentItem NilAssessmentItem `json:"current_item"`
// Practices in the order assigned by the mode policy. The list exposes verdicts only after submission.
Practices []AssessmentPractice `json:"practices"`
Practices []AssessmentPractice `json:"practices"`
Watermark OptAssessmentWatermark `json:"watermark"`
}
// GetID returns the value of ID.
@@ -1480,6 +1481,11 @@ func (s *AssessmentCorrectiveAttempt) GetPractices() []AssessmentPractice {
return s.Practices
}
// GetWatermark returns the value of Watermark.
func (s *AssessmentCorrectiveAttempt) GetWatermark() OptAssessmentWatermark {
return s.Watermark
}
// SetID sets the value of ID.
func (s *AssessmentCorrectiveAttempt) SetID(val uuid.UUID) {
s.ID = val
@@ -1570,6 +1576,11 @@ func (s *AssessmentCorrectiveAttempt) SetPractices(val []AssessmentPractice) {
s.Practices = val
}
// SetWatermark sets the value of Watermark.
func (s *AssessmentCorrectiveAttempt) SetWatermark(val OptAssessmentWatermark) {
s.Watermark = val
}
// Start a corrective real assessment at a lower target grade in the chain rooted at root_attempt_id.
// The server validates that this grade is strictly below the preceding grade and that the chain
// remains within its existing deadline and quota. chain_deadline is derived from the root attempt and
@@ -2172,7 +2183,8 @@ type AssessmentExpressAttempt struct {
// otherwise.
CurrentItem NilAssessmentItem `json:"current_item"`
// Practices in the order assigned by the mode policy. The list exposes verdicts only after submission.
Practices []AssessmentPractice `json:"practices"`
Practices []AssessmentPractice `json:"practices"`
Watermark OptAssessmentWatermark `json:"watermark"`
}
// GetID returns the value of ID.
@@ -2265,6 +2277,11 @@ func (s *AssessmentExpressAttempt) GetPractices() []AssessmentPractice {
return s.Practices
}
// GetWatermark returns the value of Watermark.
func (s *AssessmentExpressAttempt) GetWatermark() OptAssessmentWatermark {
return s.Watermark
}
// SetID sets the value of ID.
func (s *AssessmentExpressAttempt) SetID(val uuid.UUID) {
s.ID = val
@@ -2355,6 +2372,11 @@ func (s *AssessmentExpressAttempt) SetPractices(val []AssessmentPractice) {
s.Practices = val
}
// SetWatermark sets the value of Watermark.
func (s *AssessmentExpressAttempt) SetWatermark(val OptAssessmentWatermark) {
s.Watermark = val
}
// Explicitly start the short training run. It has no specialization or target grade, uses its separate
// demo policy, and does not consume a real-assessment attempt.
// Ref: #/components/schemas/AssessmentExpressAttemptCreate
@@ -4003,7 +4025,8 @@ type AssessmentQualifiedAttempt struct {
// otherwise.
CurrentItem NilAssessmentItem `json:"current_item"`
// Practices in the order assigned by the mode policy. The list exposes verdicts only after submission.
Practices []AssessmentPractice `json:"practices"`
Practices []AssessmentPractice `json:"practices"`
Watermark OptAssessmentWatermark `json:"watermark"`
}
// GetID returns the value of ID.
@@ -4096,6 +4119,11 @@ func (s *AssessmentQualifiedAttempt) GetPractices() []AssessmentPractice {
return s.Practices
}
// GetWatermark returns the value of Watermark.
func (s *AssessmentQualifiedAttempt) GetWatermark() OptAssessmentWatermark {
return s.Watermark
}
// SetID sets the value of ID.
func (s *AssessmentQualifiedAttempt) SetID(val uuid.UUID) {
s.ID = val
@@ -4186,6 +4214,11 @@ func (s *AssessmentQualifiedAttempt) SetPractices(val []AssessmentPractice) {
s.Practices = val
}
// SetWatermark sets the value of Watermark.
func (s *AssessmentQualifiedAttempt) SetWatermark(val OptAssessmentWatermark) {
s.Watermark = val
}
// Start a real assessment for a specialization and target grade, with the task language. The candidate
// comes from the session. The server chooses demo_basic or adaptive and fixes the policy, bank, and
// algorithm versions. Unknown fields such as `mode`, `seed`, or `score` are rejected.
@@ -5611,6 +5644,30 @@ func (s *AssessmentVersions) SetAlgorithmVersion(val AssessmentVersionLabel) {
s.AlgorithmVersion = val
}
// Visible mark of a real attempt. The client shows `code` with the current time as a faint tile over
// the task screen, so that a screenshot or a photo of the screen can be traced back to the attempt by
// an operator. The code is a keyed pseudonym derived on the server: it carries no name, contact, or
// identifier of the account, and it cannot be computed without the server secret. The task text of
// such an attempt also carries an invisible mark and interchangeable wordings chosen by the same
// secret; they change neither the meaning of a task nor its reference answer, and the client keeps the
// invisible characters out of the accessibility tree. Training runs (`demo_express`) carry no
// watermark. It is evidence for a manual review and an appeal, never an automatic decision.
// Ref: #/components/schemas/AssessmentWatermark
type AssessmentWatermark struct {
// Two groups of five symbols of Crockford base32, such as `7K3QD-9XM2T`.
Code string `json:"code"`
}
// GetCode returns the value of Code.
func (s *AssessmentWatermark) GetCode() string {
return s.Code
}
// SetCode sets the value of Code.
func (s *AssessmentWatermark) SetCode(val string) {
s.Code = val
}
// Raw score of a demo_basic attempt and the pass mark of the recorded basic grading policy. The pass
// mark comes from that policy version and never from the handler.
// Ref: #/components/schemas/BasicScore
@@ -21811,6 +21868,52 @@ func (o OptAssessmentCategoryDecisionView) Or(d AssessmentCategoryDecisionView)
return d
}
// NewOptAssessmentWatermark returns new OptAssessmentWatermark with value set to v.
func NewOptAssessmentWatermark(v AssessmentWatermark) OptAssessmentWatermark {
return OptAssessmentWatermark{
Value: v,
Set: true,
}
}
// OptAssessmentWatermark is optional AssessmentWatermark.
type OptAssessmentWatermark struct {
Value AssessmentWatermark
Set bool
}
// IsSet returns true if OptAssessmentWatermark was set.
func (o OptAssessmentWatermark) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptAssessmentWatermark) Reset() {
var v AssessmentWatermark
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptAssessmentWatermark) SetTo(v AssessmentWatermark) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptAssessmentWatermark) Get() (v AssessmentWatermark, 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 OptAssessmentWatermark) Or(d AssessmentWatermark) AssessmentWatermark {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptCandidateSalaryCompatibility returns new OptCandidateSalaryCompatibility with value set to v.
func NewOptCandidateSalaryCompatibility(v CandidateSalaryCompatibility) OptCandidateSalaryCompatibility {
return OptCandidateSalaryCompatibility{
@@ -1186,6 +1186,24 @@ func (s *AssessmentCorrectiveAttempt) Validate() error {
Error: err,
})
}
if err := func() error {
if value, ok := s.Watermark.Get(); ok {
if err := func() error {
if err := value.Validate(); err != nil {
return err
}
return nil
}(); err != nil {
return err
}
}
return nil
}(); err != nil {
failures = append(failures, validate.FieldError{
Name: "watermark",
Error: err,
})
}
if len(failures) > 0 {
return &validate.Error{Fields: failures}
}
@@ -1954,6 +1972,24 @@ func (s *AssessmentExpressAttempt) Validate() error {
Error: err,
})
}
if err := func() error {
if value, ok := s.Watermark.Get(); ok {
if err := func() error {
if err := value.Validate(); err != nil {
return err
}
return nil
}(); err != nil {
return err
}
}
return nil
}(); err != nil {
failures = append(failures, validate.FieldError{
Name: "watermark",
Error: err,
})
}
if len(failures) > 0 {
return &validate.Error{Fields: failures}
}
@@ -3460,6 +3496,24 @@ func (s *AssessmentQualifiedAttempt) Validate() error {
Error: err,
})
}
if err := func() error {
if value, ok := s.Watermark.Get(); ok {
if err := func() error {
if err := value.Validate(); err != nil {
return err
}
return nil
}(); err != nil {
return err
}
}
return nil
}(); err != nil {
failures = append(failures, validate.FieldError{
Name: "watermark",
Error: err,
})
}
if len(failures) > 0 {
return &validate.Error{Fields: failures}
}
@@ -4735,6 +4789,41 @@ func (s *AssessmentVersions) Validate() error {
return nil
}
func (s *AssessmentWatermark) Validate() error {
if s == nil {
return validate.ErrNilPointer
}
var failures []validate.FieldError
if err := func() error {
if err := (validate.String{
MinLength: 10,
MinLengthSet: true,
MaxLength: 11,
MaxLengthSet: true,
Email: false,
Hostname: false,
Regex: regexMap["^[0-9A-HJKMNP-TV-Z]{5}-?[0-9A-HJKMNP-TV-Z]{5}$"],
MinNumeric: 0,
MinNumericSet: false,
MaxNumeric: 0,
MaxNumericSet: false,
}).Validate(string(s.Code)); err != nil {
return errors.Wrap(err, "string")
}
return nil
}(); err != nil {
failures = append(failures, validate.FieldError{
Name: "code",
Error: err,
})
}
if len(failures) > 0 {
return &validate.Error{Fields: failures}
}
return nil
}
func (s *BasicScore) Validate() error {
if s == nil {
return validate.ErrNilPointer