mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
api: add tunnel and profile to RTSP conns and sessions (#4985)
This commit is contained in:
parent
890d4272cd
commit
558d1c3818
8 changed files with 54 additions and 6 deletions
|
|
@ -157,6 +157,12 @@ func TestAPIDocs(t *testing.T) {
|
|||
case sf.Type == reflect.TypeOf(""):
|
||||
content2.Properties[js] = openAPIProperty{Type: "string"}
|
||||
|
||||
case sf.Type == reflect.PointerTo(reflect.TypeOf("")):
|
||||
content2.Properties[js] = openAPIProperty{
|
||||
Type: "string",
|
||||
Nullable: true,
|
||||
}
|
||||
|
||||
case sf.Type == reflect.TypeOf(int(0)):
|
||||
content2.Properties[js] = openAPIProperty{Type: "integer", Format: "int64"}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue