Comments (4)
I still think this needs some clarification. codemirror-json-schema provides codemirror extensions to be used as part of codemirror based editors. It doesn't handle anything related to data or event submission. It sounds like you need to raise this issue with codemirror itself? Perhaps there's more relevant help there as this doesn't sound related to codemirror-json-schema
from codemirror-json-schema.
Could you clarify your question? Maybe illustrate with an example?
from codemirror-json-schema.
Could you clarify your question? Maybe illustrate with an example?
Sorry, there was an issue with my previous problem description. What I meant was to call the method of the component to prevent event submission. I can verify the error now, but I cannot prevent the submission of data. I saw the doValidate method in the source code, but it was not exported
from codemirror-json-schema.
perhaps you are looking for something to validate data with your json schema for other purposes? there are many libraries, including ajv and json schema library which we use to validate runtime data. we just provide a codemirror mode that implements such tools.
for example, there is a react hook json forms library, and many similar libraries for other frameworks!
from codemirror-json-schema.
Related Issues (20)
- Export JSONValidation from ./json-validation.js
- Don't mention root object improvement
- When the schema has required fields, unexpanded {} will not trigger validation, expanded {} can trigger validation HOT 8
- The cursor behavior is inconsistent when typing in different positions
- export YAML functionalities HOT 8
- fix hover formatting
- fix highlighting in demo
- Autocomplete Ctrl+space HOT 2
- Lots of generated static js files after updating to 0.7.8 HOT 2
- JSON CODE MIRROR
- Schéma
- JSON tree structure and autocomplete not working properly
- Autocomplete for schema with conditions not working HOT 1
- getHoverTexts doesn't receive schema's description for tree structure
- I get an error when validating using a recursive JSON schema HOT 1
- The library ignores conditional schema structure HOT 1
- Issue with curly braces in default HOT 4
- Error validation HOT 2
- unexpanded {} will not trigger validation, expanded {} can trigger validation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codemirror-json-schema.