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
An API call to add or edit a path fails with HTTP status code 400 - bad request. The JSON included in the HTTP POST API call was based on the MediatMTX OpenAPI JSON definition (version 1.0.0). When the posted JSON is amended so that the path maxReaders property is set to 0 instead of 0.0, the API call succeeds. It looks like the OpenAPI JSON definition should define maxReaders as an integer instead of a number.
Describe how to replicate the issue
Start the server.
Add or edit a path using the OpenAPI interface. This was done using a C# proxy generated in Visual Studio from the downloaded OpenAPI definition JSON file (version 1.0.0) but can be replicated using Postman with the path maxReaders property set to 0.0.
The API returns 400 - Bad Request.
Perform step 2 again but set the path maxReaders property to 0.
The API returns 200 - OK.
Did you attach the server logs?
No.
Did you attach a network dump?
No.
The text was updated successfully, but these errors were encountered:
This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.
Which version are you using?
v1.0.0
Which operating system are you using?
Describe the issue
An API call to add or edit a path fails with HTTP status code 400 - bad request. The JSON included in the HTTP POST API call was based on the MediatMTX OpenAPI JSON definition (version 1.0.0). When the posted JSON is amended so that the path maxReaders property is set to 0 instead of 0.0, the API call succeeds. It looks like the OpenAPI JSON definition should define maxReaders as an integer instead of a number.
Describe how to replicate the issue
Did you attach the server logs?
No.
Did you attach a network dump?
No.
The text was updated successfully, but these errors were encountered: