Skip to content

Commit

Permalink
typescript: export function getData (for ajv-errors)
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Mar 27, 2021
1 parent 21bc816 commit fa18fca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/compile/validate/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,10 @@ function keywordCode(

const JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/
const RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/
function getData($data: string, {dataLevel, dataNames, dataPathArr}: SchemaCxt): Code | number {
export function getData(
$data: string,
{dataLevel, dataNames, dataPathArr}: SchemaCxt
): Code | number {
let jsonPointer
let data: Code
if ($data === "") return N.rootData
Expand Down

0 comments on commit fa18fca

Please sign in to comment.