MCPcopy Index your code
hub / github.com/dataease/SQLBot / stringifyObjectErrors

Function stringifyObjectErrors

frontend/public/swagger-ui-bundle.js:37054–37068  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

37052 })
37053 }
37054 }
37055 const stringifyObjectErrors = (s) =>
37056 s.map((s) => {
37057 const o = void 0 !== s.propKey ? s.propKey : s.index
37058 let i = 'string' == typeof s ? s : 'string' == typeof s.error ? s.error : null
37059 if (!o && i) return i
37060 let a = s.error,
37061 u = `/${s.propKey}`
37062 for (; 'object' == typeof a; ) {
37063 const s = void 0 !== a.propKey ? a.propKey : a.index
37064 if (void 0 === s) break
37065 if (((u += `/${s}`), !a.error)) break
37066 a = a.error
37067 }
37068 return `${u}: ${a}`
37069 })
37070 class JsonSchema_object extends Re.PureComponent {
37071 constructor() {

Callers 1

renderMethod · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected