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
Bug Report: Missing Minimum Property in OpenAPI Generation
Describe the Bug
The -Minimum and -Maximum parameters are not converted to the appropriate properties in the OpenAPI specification when the value is 0.
Steps To Reproduce
Run the following PowerShell command:
New-PodeOANumberProperty-Name 'Progress'-Description 'The async operation percentage progress'-Minimum 0-Maximum 100
This generates the following OpenAPI YAML:
Progress:
type: numberdescription: The async operation percentage progressmaximum: 100
The minimum property is missing in the generated YAML.
Expected Behavior
The generated OpenAPI YAML should include both the minimum and maximum properties when they are specified, even if the value is 0. The corrected YAML should look like this:
Progress:
type: numberdescription: The async operation percentage progressminimum: 0maximum: 100
The text was updated successfully, but these errors were encountered:
mdaneri
changed the title
-Minimum and -Maximum parameter are not converted to the appropriate property on OpenAPI when the value is 0
Missing Minimum and Maximum Property in OpenAPI Generation
Jul 24, 2024
Bug Report: Missing Minimum Property in OpenAPI Generation
Describe the Bug
The
-Minimum
and-Maximum
parameters are not converted to the appropriate properties in the OpenAPI specification when the value is 0.Steps To Reproduce
Run the following PowerShell command:
This generates the following OpenAPI YAML:
The
minimum
property is missing in the generated YAML.Expected Behavior
The generated OpenAPI YAML should include both the
minimum
andmaximum
properties when they are specified, even if the value is 0. The corrected YAML should look like this:The text was updated successfully, but these errors were encountered: