Merge pull request 'codec: add yaml support' (#387) from codec-yaml into v3

Reviewed-on: #387
This commit is contained in:
Василий Толстов 2024-12-23 18:39:03 +03:00
commit a2893cb8d4

View File

@ -20,6 +20,16 @@ func (m *Frame) UnmarshalJSON(data []byte) error {
return m.Unmarshal(data) return m.Unmarshal(data)
} }
// MarshalYAML returns frame data
func (m *Frame) MarshalYAML() ([]byte, error) {
return m.Marshal()
}
// UnmarshalYAML set frame data
func (m *Frame) UnmarshalYAML(data []byte) error {
return m.Unmarshal(data)
}
// ProtoMessage noop func // ProtoMessage noop func
func (m *Frame) ProtoMessage() {} func (m *Frame) ProtoMessage() {}