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
Describe the bug NoneProperty.build and FileProperty.builddo have logic to detect if a default other than None was provided for a null property, or if any default was provided for a binary string—and we do have unit tests for those. However, in reality NoneProperty.build and FileProperty.build do not actually get called, because property_from_data just calls the initializers directly instead. Therefore if you do something like this, the default is simply ignored.
Desktop (please complete the following information):
OS: any
Python Version: any
openapi-python-client version: 0.21.6
The text was updated successfully, but these errors were encountered:
eli-bl
changed the title
Minor schema validation error: doesn't complain about non-null default for null type
Minor schema validation error: doesn't complain about invalid default for null and file types
Nov 8, 2024
Describe the bug
NoneProperty.build
andFileProperty.build
do have logic to detect if a default other than None was provided for a null property, or if any default was provided for a binary string—and we do have unit tests for those. However, in realityNoneProperty.build
andFileProperty.build
do not actually get called, becauseproperty_from_data
just calls the initializers directly instead. Therefore if you do something like this, the default is simply ignored.OpenAPI Spec File
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: