Giter Site home page Giter Site logo

Validation of local models about derby-ar HOT 3 OPEN

cjblomqvist avatar cjblomqvist commented on September 21, 2024
Validation of local models

from derby-ar.

Comments (3)

cjblomqvist avatar cjblomqvist commented on September 21, 2024

Even further, to enable using the same schema (or a part of another DB-schema), this needs to be easily available somehow on the original schema so it can easily be copied (referenced) to the local model's schema.

from derby-ar.

cjblomqvist avatar cjblomqvist commented on September 21, 2024

Local validation is now dealt with in derby-validator ( https://github.com/BBWeb/derby-validator ). That lib can easily be modified to accept (or even sniff up) rules from a model (i.e. declaratively defined schemas to a specific collection). Server-side (i.e. real validation) and model layer validation still remains though.

from derby-ar.

cjblomqvist avatar cjblomqvist commented on September 21, 2024

And with local validation in my previous comment I mean when doing a copy into the view model/scoped component model and before applying that data to the model. There's still no connection to declaratively define a schema (it doesn't currently work) and thus derby-validator does not yet automatically sniff up the schema to validate against. However, that might be enough to cover all validation except for the "proper" server-side validation inside of share (which should only validate that the user is not side-stepping the code).

from derby-ar.

Related Issues (3)

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.