(ref)
| 21 | // Extract the last segment of a $ref string. |
| 22 | // "#/components/schemas/bytebase.v1.Foo" -> "bytebase.v1.Foo" |
| 23 | function refName(ref) { |
| 24 | if (!ref) return ""; |
| 25 | const parts = ref.split("/"); |
| 26 | return parts[parts.length - 1]; |
| 27 | } |
| 28 | |
| 29 | function isObjectSchema(schemaDef) { |
| 30 | return ( |
no outgoing calls
no test coverage detected