codemirror-json-schema
Version:
Codemirror 6 extensions that provide full JSONSchema support for `@codemirror/lang-json` and `codemirror-json5`
56 lines (30 loc) • 1.1 kB
Markdown
[codemirror-json-schema](../README.md) / JSONValidationOptions
# Interface: JSONValidationOptions
## Table of contents
### Properties
- [formatError](JSONValidationOptions.md#formaterror)
- [jsonParser](JSONValidationOptions.md#jsonparser)
- [mode](JSONValidationOptions.md#mode)
## Properties
### formatError
• `Optional` **formatError**: (`error`: `JsonError`) => `string`
#### Type declaration
▸ (`error`): `string`
##### Parameters
| Name | Type |
| :------ | :---------- |
| `error` | `JsonError` |
##### Returns
`string`
#### Defined in
[features/validation.ts:30](https://github.com/jsonnext/codemirror-json-schema/blob/aa27ad7/src/features/validation.ts#L30)
---
### jsonParser
• `Optional` **jsonParser**: `DocumentParser`
#### Defined in
[features/validation.ts:31](https://github.com/jsonnext/codemirror-json-schema/blob/aa27ad7/src/features/validation.ts#L31)
---
### mode
• `Optional` **mode**: `JSONMode`
#### Defined in
[features/validation.ts:29](https://github.com/jsonnext/codemirror-json-schema/blob/aa27ad7/src/features/validation.ts#L29)