MCPcopy Create free account
hub / github.com/ampproject/amphtml / UnmarshalJSON

Method UnmarshalJSON

validator/validator.pb.go:680–687  ·  view source on GitHub ↗

Deprecated: Do not use.

(b []byte)

Source from the content-addressed store, hash-verified

678
679// Deprecated: Do not use.
680func (x *ValidationError_Severity) UnmarshalJSON(b []byte) error {
681 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
682 if err != nil {
683 return err
684 }
685 *x = ValidationError_Severity(num)
686 return nil
687}
688
689// Deprecated: Use ValidationError_Severity.Descriptor instead.
690func (ValidationError_Severity) EnumDescriptor() ([]byte, []int) {

Callers

nothing calls this directly

Calls 2

DescriptorMethod · 0.95
ValidationError_SeverityTypeAlias · 0.85

Tested by

no test coverage detected