Coder Social home page Coder Social logo

Extending resource dicts. about eve HOT 7 CLOSED

pyeve avatar pyeve commented on May 22, 2024
Extending resource dicts.

from eve.

Comments (7)

nicolaiarocci avatar nicolaiarocci commented on May 22, 2024

Thanks for this.

Given the schema-less nature of MongoDB this would make sense. However I wonder how a SQL data layer would handle this feature. I guess that an API maintainer using a SQL backend would just ignore the feature. Also, if there's a SQL backend Eve could ignore/disallow the setting. Thoughts?

PS: currently we don't have a SQL data-layer, but one day I'd love to have one, maybe contributed by someone else. Some basic infrastructure is in place already.

from eve.

nicolaiarocci avatar nicolaiarocci commented on May 22, 2024

Drats. Wrong commit reference ;-)

from eve.

LarryEitel avatar LarryEitel commented on May 22, 2024

Here are some things I am doing with 'eve' schemas. This is a work-in-progress. Comments/suggestions are welcome.

from eve.

nicolaiarocci avatar nicolaiarocci commented on May 22, 2024

I have a prototype which is sort of working now. I'd use another keyword, maybe source or even datasource instead of collection, to be more db engine-agnostic. What do you think?

from eve.

LarryEitel avatar LarryEitel commented on May 22, 2024

That sounds good. I am trying to cram on a project where I have yet again embarked on a refactoring of code. This time using your library. The biggest challenge I see for me is the ability to extend vs assimilate your project. I appreciate the subtle updates to your cerberus library. I was debating whether I would need to abandon that in favor of schematics. Your latest enhancements enabled me to move forward. I still need to resolve how to decorate endpoints for auth/security. ANY thoughts would be appreciated.

from eve.

nicolaiarocci avatar nicolaiarocci commented on May 22, 2024

Schematics is more feature rich, mature and complex than Cerberus. I know because I contributed to it, even if only a tiny bit. I also contributed to Validiction, another interesting alternative that you might want to check out. After evaluating and contributing to several solutions I decided to write my own, not because the others were missing features (the contrary might be true actually), but because I felt that I wouldn't feel comfortable relying on 3rd party codebases for such a fundamental feature as validation (at that time Schematics was called DictShield. Since then the tool has seen heavy refactoring, and quite the change of focus). Both Cerberus and Eve are so young. I intend to leave Cerberus as light as possible, I don't see it becoming a Schematics competitor (not anytime soon however).

On authorization, frankly I haven't been focusing on it. I know, it sounds crazy, but I first want to add more essential features to the core, and there's so much to do. Surely people will want to implement their own auth, but Eve will support auth natively one day. This being said, I think that decorators are a good way to go (Adam, Eve's closed-source progenitor, implements auth via decorators).

PS: default values for resource items are coming, I think it was you who asked about them on the Cerberus repo? If so, would you please open a ticket here? Closing tickets makes me a happy dev :)

from eve.

nicolaiarocci avatar nicolaiarocci commented on May 22, 2024

b15bbc9

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.