You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# if you want to extra configuration to the generated schemas
48
+
# extra_config_dict={
49
+
# 'title': 'EventCustomTitle',
50
+
# 'populate_by_name': True
51
+
# }
52
+
),
46
53
)
47
54
48
55
api = NinjaExtraAPI()
@@ -79,6 +86,7 @@ The `ModelConfig` is a Pydantic schema designed for validating and configuring t
79
86
-`depth`: The depth for nesting schema generation.
80
87
-`read_only_fields`: A list of fields to be excluded when generating input schemas for create, update, and patch operations.
81
88
-`write_only_fields`: A list of fields to be excluded when generating output schemas for find_one and list operations.
89
+
-`extra_config_dict`: A dictionary of extra configuration to be added to the generated schemas. Options must be valid Pydantic configuration options.
82
90
-**pagination**: A requisite for the model `list/GET` operation to prevent sending `100_000` items at once in a request. The pagination configuration mandates a `ModelPagination` Pydantic schema object for setup. Options encompass:
83
91
-`klass`: The pagination class of type `PaginationBase`. The default is `PageNumberPaginationExtra`.
84
92
-`paginator_kwargs`: A dictionary value for `PaginationBase` initialization. The default is None.
@@ -305,8 +313,10 @@ class EventModelController(ModelControllerBase):
0 commit comments