apidocs: fix compatibility with OpenAPI 3.0 (#5210)

double-precision numbers are now represented as double.
This commit is contained in:
Omar Ferro 2025-11-22 23:05:08 +01:00 committed by GitHub
parent 697211332a
commit e168d2f3f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 20 deletions

View file

@ -171,7 +171,7 @@ func TestAPIDocs(t *testing.T) {
content2.Properties[js] = openAPIProperty{Type: "integer", Format: "int64"}
case sf.Type == reflect.TypeOf(float64(0)):
content2.Properties[js] = openAPIProperty{Type: "number", Format: "float64"}
content2.Properties[js] = openAPIProperty{Type: "number", Format: "double"}
case sf.Type == reflect.TypeOf(false):
content2.Properties[js] = openAPIProperty{Type: "boolean"}