(data []byte, ref *string, v any)
| 131 | } |
| 132 | |
| 133 | func unmarshalJSONRef(data []byte, ref *string, v any) error { |
| 134 | refs := &refs{} |
| 135 | if err := json.Unmarshal(data, refs); err == nil { |
| 136 | if len(refs.Ref) > 0 { |
| 137 | *ref = refs.Ref |
| 138 | return nil |
| 139 | } |
| 140 | } |
| 141 | return json.Unmarshal(data, v) |
| 142 | } |
| 143 | |
| 144 | func marshalYAMLRef(ref string, v any) (any, error) { |
| 145 | if len(ref) > 0 { |
no outgoing calls
no test coverage detected