3 ideas? #151
Replies: 2 comments 3 replies
-
Love the idea of a functional fluent helper!!! I also really wanted to do Schema Decorators, have just prioritized other stuff. Honestly, kind of on the fence about default models, not completely opposed to it. For Decorators I was kind of thinking about using either a union type OR a new method |
Beta Was this translation helpful? Give feedback.
-
Love the idea of Schema DTOs. And also allow a define method, for messier schemas. E.g. deeply nested schemas and schemas with long descriptions. (P.S. using schema descriptions as mini prompts is low key amazing!) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Yo! I have
twothree ideas and wanted to share them to get thoughts:Default Model
Would there be interest in a PR to the
PrismManager
class that passes in an optionaldefault_model
param to the factory methods?Fluent helper
which would just be something like this under the hood:
Schema Decorators
I love the builder style around making schemas. Perhaps decorators like this would be possible to create schema definitions as DTOs:
Just off the top of my head it looks like this could potentially require a union type for the withSchema method but just an idea.
Beta Was this translation helpful? Give feedback.
All reactions