Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schemaless fields #143

Open
beregond opened this issue Feb 28, 2021 · 0 comments
Open

Schemaless fields #143

beregond opened this issue Feb 28, 2021 · 0 comments
Projects

Comments

@beregond
Copy link
Collaborator

We need schemaless fields that can handle non-strict json data - lets imagine we are trying to handle 3rd party api that was not designed with jsonmodels first - such api may behave in a way that cannot be handled with models - for example json object with variant names (like list of tags) or list that can contain both scalars and objects (and lists and anything you can write with json).

Although we should keep the mindset 'jsonmodels first can make you data sane' - we should be able to handle more generic cases.

There are some questions for this:

  • how to handle such data? New fields, or option for current ones?
  • should we able to allow mixed fields? Like list field that holds scalars and objects - from which (json objects that can be parsed to given (python) model are in fact casted and the rest is left? (That would be complicated)
  • how to handle data that is schemaless from the root of document? This would be case where we have model, or just scalar, or null - should we even handle such cases?
@beregond beregond created this issue from a note in development (To do) Feb 28, 2021
@beregond beregond mentioned this issue Mar 14, 2021
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant