Giter Site home page Giter Site logo

Comments (4)

imolorhe avatar imolorhe commented on June 24, 2024 1

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.

imolorhe avatar imolorhe commented on June 24, 2024

Could you clarify your question? Maybe illustrate with an example?

from codemirror-json-schema.

mlj18293180341 avatar mlj18293180341 commented on June 24, 2024

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.

acao avatar acao commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.