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: github.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:d5b50112-3872-5895-ab45-037bfaca7c96 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B16C:18E686:665541:8D5413:697753E5 |
| html-safe-nonce | 6e70e4445b5d211d18b17340e6771871ac5e5c38c272982ae274dea4c99fbde5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTZDOjE4RTY4Njo2NjU1NDE6OEQ1NDEzOjY5Nzc1M0U1IiwidmlzaXRvcl9pZCI6Ijc0MDA2MDk2ODUwOTYwNTk4NzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8ba19b39888268523298a530ef3fbae00d097f0db52c460a2807117a5f286a33 |
| 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 | 3310064f35a62c06a4024ba37f41c06836f39376a095c2dfd2c4b693c34965be |
| 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 | 67d5f8d1d53c3cc4f49fc3bb8029933c3dc219e6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width