Comments (5)
For example, generate Angular forms from JSON schema http://schemaform.io/
from kinto.
Unlike Daybed, I propose that each user owns the schema of the collection.
Especially because the schema endpoint will probably be a resource :)
I don't quite get this. How is that different from daybed? I would propose anyone who can create a collection can also create a schema.
from kinto.
Is the schema using the resource code of Cliquet ? If so, how do avoid overlap of stored collections ? We could use underscores prefix, and prevent public collections to have a name that starts with underscore :)
I think this is handled by the "bucket" concept.
What happen to existing data when schema is changed ? Probably ignore and wait for next PUT or PATCH ?
That's a good question. I believe in this case it should be possible to iterate on all the records and apply a function to them, maybe?
What happen when records are shared between users ? Do we let other users records crash our application when fetching shared records ? We could probably run client-side validation using JSON schema on shared records.
In case we download data from somewhere, we assume it's already validated by the server, so I don't get where the problem lies here?
Do we want to provide a collection of custom formats or even types ? I'm thinking of recurrent needs for uuid4, geohash, GeoJSON objects, phone, postal codes...
I think we should do that but would need to explore the json schema spec further to understand better how to do that.
Also, I think json schema has one big problem: its complexity. It doesn't seem to be simple to use it. As such, we could probably provide a way to create schema in an easy way, which would then map to the standard?
from kinto.
Unlike Daybed, I propose that each user owns the schema of the collection.
Especially because the schema endpoint will probably be a resource :)I don't quite get this. How is that different from daybed? I would propose anyone who can create a collection can also create a schema.
Unlike Daybed, the collections are not global. It means that as a user, I can associate a schema to my todo
collection, even if someone else already had set a different schema for her own todo collection.
Is the schema using the resource code of Cliquet ? If so, how do avoid overlap of stored
collections ? We could use underscores prefix, and prevent public collections to have a name that
starts with underscore :)I think this is handled by the "bucket" concept.
Nope, what I meant with this was mozilla-services/cliquet#243.
And that the schema endpoint is built using the cliquet.ressource.BaseRessource
class (CRUD).
What happen when records are shared between users ? Do we let other users records crash our
application when fetching shared records ? We could probably run client-side validation using JSON
schema on shared records.In case we download data from somewhere, we assume it's already validated by the server, so I
don't get where the problem lies here?
I was wondering what happens if two users have a different schema for the same collection name.
Also, I think json schema has one big problem: its complexity. It doesn't seem to be simple to use it.
As such, we could probably provide a way to create schema in an easy way, which would then
map to the standard?
I wouldn't go that way. Maybe if it's too complex, then we can imagine a WYSIWYG JSON schema builder ?
from kinto.
Unlike Daybed, the collections are not global. It means that as a user, I can associate a schema to my todo collection, even if someone else already had set a different schema for her own todo collection.
Then we agree :-) However, the notion of "own" differs a little: with buckets, a resource can have multiple owners.
Gotcha about how we should store the schemas. This should be handled by mozilla-services/cliquet#243 then.
I was wondering what happens if two users have a different schema for the same collection name.
We need some kind of namespacing here (and I believe this is achieved through buckets). Like on github: leplatrem/cliquet differs from ametaireau/cliquet.
I wouldn't go that way. Maybe if it's too complex, then we can imagine a WYSIWYG JSON schema builder ?
I don't know the json schema spec well enough to make a call, but it seems that it would be harder to do it that way than allowing a simpler format.
from kinto.
Related Issues (20)
- Deprecate the `quotas` plugin
- Migrate authn/authz to security policies of Pyramid 2 HOT 2
- sentry raven lib is deprecated HOT 4
- Kinto automatically create non existing collection HOT 2
- Responsible disclosure policy HOT 1
- Replace current Kinto Admin setup with `kinto-admin` git submodule HOT 1
- Replace `psycopg2` with `psycopg2-binary`?
- id missing in the payload for the endpoint POST /accounts HOT 7
- Last modified field in collection is incorrect HOT 7
- Either don't send email notification or only selectively notify about changes to nimbus-desktop-experiments
- Wait until database starts before starting Kinto in Docker Compose HOT 2
- Replace `raven` by `sentry-python`
- Custom Certificate for OpenId / urllib3? HOT 1
- Add support for SQLAlchemy >=2.0
- Drop support for Python 3.7? HOT 1
- HTTP 500 on create bucket error":"Internal Server Error" HOT 2
- Performance for plural endpoints is suboptimal
- Kinto does now show permissions if you have `write` access on the parent object HOT 1
- Allow for an opt-in feature to show resource owners
- Demo does not work
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 kinto.