ajv-validator / ajv-validator/ajv

serialize is not a function

未關閉
#1,989 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
installation missing info
主要語言
TypeScript
星號
14.8k
分支
1k
PR 合併指標
30 天內沒有已合併 PR

描述

**What version of Ajv are you using? Does the issue happen if you use the latest version?**
6.12.5

**Ajv options object**

```javascript

meta: {
$schema: 'http://json-schema.org/draft-07/schema#',
},
$data: true,
allErrors: true,
jsonPointers: true,
}

```

**JSON Schema**

```json

```

**Sample data**

```json

```

**Your code**

```javascript
const defaultOptions = {
meta: {
$schema: 'http://json-schema.org/draft-07/schema#',
},
$data: true,
allErrors: true,
jsonPointers: true,
};
const ajv = new Ajv({
...defaultOptions,
});
```

**Validation result, data AFTER validation, error messages**

```

```

**What results did you expect?**

expect to init an ajv object

**Are you going to resolve the issue?**
throw error "serialize is not a function"
I set a debug point, it seems to be a string, not a function
![image](https://user-images.githubusercontent.com/16400128/169526077-11520c5f-a153-42ed-ac46-b242027eae1f.png)

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。