nameFromRef does the reverse of toRef: it returns the type name from its JSON Schema reference.
(ref string)
| 710 | // nameFromRef does the reverse of toRef: it returns the type name from its |
| 711 | // JSON Schema reference. |
| 712 | func nameFromRef(ref string) string { |
| 713 | elems := strings.Split(ref, "/") |
| 714 | return elems[len(elems)-1] |
| 715 | } |
no outgoing calls
no test coverage detected