MCPcopy Create free account
hub / github.com/bytebase/bytebase / refName

Function refName

frontend/scripts/generate_openapi_index.js:23–27  ·  view source on GitHub ↗
(ref)

Source from the content-addressed store, hash-verified

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

Callers 1

extractPropertyInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected