mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
apidocs: fix compatibility with OpenAPI 3.0 (#5210)
double-precision numbers are now represented as double.
This commit is contained in:
parent
697211332a
commit
e168d2f3f4
2 changed files with 20 additions and 20 deletions
|
|
@ -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"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue