Skip to content

Commit c8d9604

Browse files
committed
fix: allow required fields list to be specified as empty
Refs: #651
1 parent a0b1bb7 commit c8d9604

File tree

1 file changed

+1
-1
lines changed
  • openapi_python_client/schema/openapi_schema_pydantic

1 file changed

+1
-1
lines changed

openapi_python_client/schema/openapi_schema_pydantic/schema.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Schema(BaseModel):
3434
uniqueItems: Optional[bool] = None
3535
maxProperties: Optional[int] = Field(default=None, ge=0)
3636
minProperties: Optional[int] = Field(default=None, ge=0)
37-
required: Optional[List[str]] = Field(default=None, min_length=1)
37+
required: Optional[List[str]] = Field(default=None)
3838
enum: Union[None, List[Any]] = Field(default=None, min_length=1)
3939
const: Union[None, StrictStr, StrictInt, StrictFloat, StrictBool] = None
4040
type: Union[DataType, List[DataType], None] = Field(default=None)

0 commit comments

Comments
 (0)