Title: Pydantic for domain models? · Issue #91 · cosmicpython/code · GitHub
Open Graph Title: Pydantic for domain models? · Issue #91 · cosmicpython/code
X Title: Pydantic for domain models? · Issue #91 · cosmicpython/code
Description: Hello. I really liked this book, it gives a fresh (for me) perspective at coding a web application, and it looks fantastic, very well written, not too difficult to understand. I finished the part 1 a couple of hours ago, it turned my per...
Open Graph Description: Hello. I really liked this book, it gives a fresh (for me) perspective at coding a web application, and it looks fantastic, very well written, not too difficult to understand. I finished the part 1...
X Description: Hello. I really liked this book, it gives a fresh (for me) perspective at coding a web application, and it looks fantastic, very well written, not too difficult to understand. I finished the part 1...
Opengraph URL: https://github.com/cosmicpython/code/issues/91
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pydantic for domain models?","articleBody":"Hello. I really liked this book, it gives a fresh (for me) perspective at coding a web application, and it looks fantastic, very well written, not too difficult to understand. I finished the part 1 a couple of hours ago, it turned my perspective upside down, and I decided to give my new knowledge a try, just writing a small web service. And I encountered a problem: if I want to use pydantic to write my domain models, when I apply the SQLAlchemy mapper on them, the models stop working, they simply throw error at initializing. I really love pydantic, but I also ain't sure it's worth implementing smth like in django appendix just because I wanna use pydantic insteadof dataclasses and just classes. \r\n\r\nThe error:\r\nAttributeError: 'User' object has no attribute '__pydantic_private__'. Did you mean: '__pydantic_complete__'?","author":{"url":"https://github.com/drforse","@type":"Person","name":"drforse"},"datePublished":"2024-10-07T03:52:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/91/code/issues/91"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b2fb73a9-4b2a-7175-434c-b0bba86465f3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B7E0:14F335:DF6D549:12242E8B:6977079F |
| html-safe-nonce | efb192b136e1bad1b574e9544119bda0127ebabe4921ec5973a7e7bedd64583e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0UwOjE0RjMzNTpERjZENTQ5OjEyMjQyRThCOjY5NzcwNzlGIiwidmlzaXRvcl9pZCI6IjQ2MjA3MjcxNTgyODMxMTAzMDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e98db0d379f8d0decad7dbcf423d921e6fa1991179a13e987664146310f57d06 |
| hovercard-subject-tag | issue:2569226174 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cosmicpython/code/91/issue_layout |
| twitter:image | https://opengraph.githubassets.com/02faa6c4ab521306257c5234178d229fb45a8b42eeba5f4f5566e564c915b4c2/cosmicpython/code/issues/91 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/02faa6c4ab521306257c5234178d229fb45a8b42eeba5f4f5566e564c915b4c2/cosmicpython/code/issues/91 |
| og:image:alt | Hello. I really liked this book, it gives a fresh (for me) perspective at coding a web application, and it looks fantastic, very well written, not too difficult to understand. I finished the part 1... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | drforse |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| turbo-cache-control | no-preview |
| go-import | github.com/cosmicpython/code git https://github.com/cosmicpython/code.git |
| octolytics-dimension-user_id | 47350834 |
| octolytics-dimension-user_login | cosmicpython |
| octolytics-dimension-repository_id | 169221290 |
| octolytics-dimension-repository_nwo | cosmicpython/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 169221290 |
| octolytics-dimension-repository_network_root_nwo | cosmicpython/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width