Comments (3)
What's the error?
from dataclasses-json.
What's the error?
/home/denisvlah/anaconda3/lib/python3.7/site-packages/dataclasses_json/mm.py:70: UserWarning: Unknown type <enum 'NodeType'> at Node.type: <enum 'NodeType'> It's advised to pass the correct marshmallow type to mm_field
.
warnings.warn(f"Unknown type {type_} at {cls.name}.{field.name}: {field.type} "
Traceback (most recent call last):
File "/home/denisvlah/Desktop/Forcive_Ingestion/lzilla/forcive_ml_py/json_test.py", line 20, in
print(Node.schema().dump(o))
File "/home/denisvlah/anaconda3/lib/python3.7/site-packages/dataclasses_json/api.py", line 76, in schema
Schema = build_schema(cls, DataClassJsonMixin, infer_missing, partial)
File "/home/denisvlah/anaconda3/lib/python3.7/site-packages/dataclasses_json/mm.py", line 113, in build_schema
schema_ = schema(cls, mixin, infer_missing)
File "/home/denisvlah/anaconda3/lib/python3.7/site-packages/dataclasses_json/mm.py", line 98, in schema
t = build_type(type_, options, mixin, field, cls)
File "/home/denisvlah/anaconda3/lib/python3.7/site-packages/dataclasses_json/mm.py", line 73, in build_type
return inner(type_, options)
File "/home/denisvlah/anaconda3/lib/python3.7/site-packages/dataclasses_json/mm.py", line 72, in inner
return field.Field(**options)
AttributeError: 'Field' object has no attribute 'Field'
from dataclasses-json.
Closing due to fix thanks to @FaraSeer
from dataclasses-json.
Related Issues (20)
- [BUG] "Supported types" documentation is not up to date HOT 1
- [FEATURE] V1 - Type coercions feature
- [BUG] PyPI release broken due to GH changes to env protection HOT 16
- [BUG] Type hinting HOT 1
- [FEATURE] Use existing marshmallow schema
- [BUG] from_json of class with attribute of list of types which inherit basic types results in wrong result HOT 3
- [BUG] Dataclass.from_json with Union type fields infers missing fields and fails in the wrong spot HOT 1
- [minimal-repro-testcase] from v0.5.12 on, tuple fields get truncated HOT 5
- [BUG] No way to default explicit nulls/Nones to a value
- [BUG] Numpy decode issue...
- [BUG] 0.6.2 changes CatchAll behavior in unexpected ways HOT 2
- [FEATURE] Omitting undefined Optional field when serializing HOT 2
- [BUG] Nested tuple with union of tuple does not deserialize correctly HOT 7
- [BUG] Nullable fields are not showing up when deserializing with field(default=None, metadata=config(exclude=lambda x: x is None)) HOT 4
- [BUG] Generic Collections fields - not respecting `default_factory` `field` specifications
- [BUG] new key "dataclass_json_config": null HOT 1
- AttributeError: 'list' object has no attribute 'keys' HOT 3
- [BUG] Decoding incompatible with Freezegun
- AttributeError: 'list' object has no attribute 'items' HOT 1
- [BUG] encoders / decoders don't apply to list / dict of the class
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 dataclasses-json.