Giter Site home page Giter Site logo

schema validation less strict about eve HOT 8 CLOSED

pyeve avatar pyeve commented on July 4, 2024
schema validation less strict

from eve.

Comments (8)

nicolaiarocci avatar nicolaiarocci commented on July 4, 2024

Hello!

If you're aiming for a read-only API you don't need to provide a schema at all (see http://python-eve.org/quickstart.html#a-minimal-application). A schema is needed only for data validation and usually you don't want clients to inject unknown fields in your document. What is your use case? - thanks!

from eve.

hluz avatar hluz commented on July 4, 2024

One case I see it could be good is during the development cycle. It would avoid having to bounce eve every time a dev needs to add a new field to collection...

from eve.

chronidev avatar chronidev commented on July 4, 2024

hi,

My use case, it 's to store information about various system. Some information follow a schema, others depend on plugins installed on these systems.

Don't have all normalized information was the reason for me to use mongodb.

from eve.

nicolaiarocci avatar nicolaiarocci commented on July 4, 2024

Totally makes sense. Planned.

from eve.

chronidev avatar chronidev commented on July 4, 2024

If you have not already worked on, I will try to work on this week end. Maybe, some changes on Cerberus will be necessaries.

from eve.

nicolaiarocci avatar nicolaiarocci commented on July 4, 2024

Haven't looked at it yet. Feel free to experiment.

from eve.

nicolaiarocci avatar nicolaiarocci commented on July 4, 2024

So I guess that an option to allow unknown field/value pairs would be ideal, right?

from eve.

chronidev avatar chronidev commented on July 4, 2024

Yes it's great.

On 18 avr. 2013, at 09:18, Nicola Iarocci [email protected] wrote:

So I guess that an option to allow unknown field/value pairs would be ideal, right?


Reply to this email directly or view it on GitHub.

from eve.

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.