File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -137,11 +137,17 @@ def validate_operation(cls, values: dict):
137137
138138
139139class AtomicOperationRequest (BaseModel ):
140- operations : List [AtomicOperation ] = Field (alias = "atomic:operations" )
140+ operations : List [AtomicOperation ] = Field (
141+ alias = "atomic:operations" ,
142+ min_length = 1 ,
143+ )
141144
142145
143146class AtomicResult (BaseModel ):
144- data : Optional [dict ] = Field (default = None , description = "the “primary data” resulting from the operation." )
147+ data : Optional [dict ] = Field (
148+ default = None ,
149+ description = "the “primary data” resulting from the operation." ,
150+ )
145151 meta : Optional [dict ] = Field (
146152 default = None ,
147153 description = "a meta object that contains non-standard meta-information about the result." ,
@@ -153,4 +159,7 @@ class AtomicResultResponse(BaseModel):
153159 https://jsonapi.org/ext/atomic/#auto-id-responses-4
154160 """
155161
156- results : List [AtomicResult ] = Field (alias = "atomic:results" )
162+ results : List [AtomicResult ] = Field (
163+ alias = "atomic:results" ,
164+ min_length = 1 ,
165+ )
You can’t perform that action at this time.
0 commit comments