Comments (4)
Decision
@dataclass_json
@dataclass
class YouTubeSearchListItemSnippedThumbnails:
default: Optional[YouTubeSearchListItemSnippedThumbnailsThumbnail] = None
medium: Optional[YouTubeSearchListItemSnippedThumbnailsThumbnail] = None
high: Optional[YouTubeSearchListItemSnippedThumbnailsThumbnail] = None
standard: Optional[YouTubeSearchListItemSnippedThumbnailsThumbnail] = None
maxres: Optional[YouTubeSearchListItemSnippedThumbnailsThumbnail] = None
from dataclasses-json.
Are the types in Dict not supported?
@dataclass_json
@dataclass
class YouTubeVideosListItemLocalization:
title: str = ''
description: str = ''
@dataclass_json
@dataclass
class YouTubeVideosListItem:
localizations: Optional[Dict[str, YouTubeVideosListItemLocalization]] = None
As a result, the usual dictionary
{'en': {'title': 'E75 Use Air Purifier to make BBQ and Hotpot in Office | Ms Yeah', 'description': 'Please give it a big like and subscribe my channel.'}}
{'ru': {'title': 'СтопХам-Предательство', 'description': 'В этом выпуске нет рекламы \[email protected] по коммерческим вопросам.\n#СтопХамМск #МнеВсеМожно #ЕзжуГдеХочу'}}
{'en': {'title': '12 Creative Last Minute Halloween Food and Decor Ideas', 'description': 'Halloween is not just a playful time to play dress up, the food and decorations also play a major part of it! We came up with a bunch of ideas to spice up your upcoming monster gathering! From edible fingers to earthworms, your guests will be amazed by these fun and creative snacks!\n\nMore Recipes? - Visit Hungry Panda: https://www.youtube.com/channel/UCnibMCELqsPpt-fIFkWenSg\n\n0:14 Stabbed Muffins\n1:25 Edible Fingers\n2:15 Bloody Cheesecake\n3:45 Guacamole Vomit\n4:24 Delicious Earthworms\n4:50 Pumpkins in Minions Disguise\n5:34 Tasty Brains on Toast\n7:08 Creepy Eyeball Box \n7:43 Edible Cat Litter Box\n9:11 Deadly Marshmallows\n9:43 The Skull within the Glass\n10:11 Fruity Monsters\n\nTop Crafty Panda Playlists:\nHome Decor DIY Ideas: https://www.youtube.com/watch?v=H8j3hIWU3Ns&list=PL_hNADyE5fYC3t6UBrvikJc_A2XtPS8Ui\nDIY Clothes & Other Fashion Hacks: https://www.youtube.com/watch?v=nTe8ay5VRVE&list=PL_hNADyE5fYAKpOcDFeW1kEg1LjIw9yl5\nSchool Hacks: https://www.youtube.com/watch?v=if7LI5T-p9U&list=PL_hNADyE5fYDQgsxox4wZLft0F-zaAXLp\n\nSubscribe to Crafty Panda channel: https://www.youtube.com/channel/UC03R...\nLike us on Facebook: https://www.facebook.com/craftypanda\nVisit Bored Panda website: https://www.boredpanda.com\nVisit Bored Panda Store: https://shop.boredpanda.com\nDownload Crafty Panda Animated Stickers: https://itunes.apple.com/us/app/bored...\n\nLove the music we used in this video? We find our music on EpidemicSound: https://bit.ly/2JcUlBa\n\nFor sponsored content contact us at [email protected]\n\nIf you enjoyed this video you might also like: https://youtu.be/wTY3qFqloPA\n\n#DIY #Halloween #HalloweenDecor'}}
from dataclasses-json.
Hi, I'm sorry I wasn't able to fix this issue sooner. The latest release fixes the issue with working with dictionaries
from dataclasses-json.
Thanks.
from dataclasses-json.
Related Issues (20)
- [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
- [BUG] Getting `UserWarning` for defining an attribute with type `dict[str, bytes] | None`
- decoding optional decimal fields
- Parse JSON without modifying the dataclass HOT 1
- [BUG] SNAKE LetterCase conversion adding extra underscores for numeric parts HOT 1
- [BUG] SNAKE LetterCase conversion adding extra underscores for numeric parts
- [BUG] decorator @validates_schema not working when schema loads
- [FEATURE] Raise ValidationError if JSON doesn't match any of the types in Union
- [BUG] dataclass with generic dataclass field is not loaded correctly HOT 3
- [FEATURE] Flag for skipping private fields in export HOT 1
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.