Giter Site home page Giter Site logo

Comments (4)

 avatar commented on June 20, 2024

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.

 avatar commented on June 20, 2024

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.

lidatong avatar lidatong commented on June 20, 2024

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.

 avatar commented on June 20, 2024

Thanks.

from dataclasses-json.

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.