From da44bbd18ad7757647c491011bf96d251a1465a7 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Fri, 20 Aug 2021 10:13:41 +0200 Subject: [PATCH] api: normalize entity names --- apidocs/openapi.yaml | 12 ++++++------ internal/core/rtmp_conn.go | 4 ++-- internal/core/rtsp_session.go | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apidocs/openapi.yaml b/apidocs/openapi.yaml index 0481f620..585bb4cb 100644 --- a/apidocs/openapi.yaml +++ b/apidocs/openapi.yaml @@ -202,7 +202,7 @@ components: properties: type: type: string - enum: [rtspsession] + enum: [rtspSession] id: type: string @@ -211,7 +211,7 @@ components: properties: type: type: string - enum: [rtspssession] + enum: [rtspsSession] id: type: string @@ -220,7 +220,7 @@ components: properties: type: type: string - enum: [rtmpconn] + enum: [rtmpConn] id: type: string @@ -243,7 +243,7 @@ components: properties: type: type: string - enum: [rtspsession] + enum: [rtspSession] id: type: string @@ -252,7 +252,7 @@ components: properties: type: type: string - enum: [rtspssession] + enum: [rtspsSession] id: type: string @@ -261,7 +261,7 @@ components: properties: type: type: string - enum: [rtmpconn] + enum: [rtmpConn] id: type: string diff --git a/internal/core/rtmp_conn.go b/internal/core/rtmp_conn.go index 93c6dc49..4687f308 100644 --- a/internal/core/rtmp_conn.go +++ b/internal/core/rtmp_conn.go @@ -548,7 +548,7 @@ func (c *rtmpConn) OnReaderAPIDescribe() interface{} { return struct { Type string `json:"type"` ID string `json:"id"` - }{"rtmpconn", c.id} + }{"rtmpConn", c.id} } // OnSourceAPIDescribe implements source. @@ -556,7 +556,7 @@ func (c *rtmpConn) OnSourceAPIDescribe() interface{} { return struct { Type string `json:"type"` ID string `json:"id"` - }{"rtmpconn", c.id} + }{"rtmpConn", c.id} } // OnPublisherAccepted implements publisher. diff --git a/internal/core/rtsp_session.go b/internal/core/rtsp_session.go index 49f73ee2..cbfa5288 100644 --- a/internal/core/rtsp_session.go +++ b/internal/core/rtsp_session.go @@ -352,7 +352,7 @@ func (s *rtspSession) OnReaderAPIDescribe() interface{} { return struct { Type string `json:"type"` ID string `json:"id"` - }{"rtspsession", s.id} + }{"rtspSession", s.id} } // OnSourceAPIDescribe implements source. @@ -360,7 +360,7 @@ func (s *rtspSession) OnSourceAPIDescribe() interface{} { return struct { Type string `json:"type"` ID string `json:"id"` - }{"rtspsession", s.id} + }{"rtspSession", s.id} } // OnPublisherAccepted implements publisher.