Commit a3534405 authored by M. Hamza's avatar M. Hamza
Browse files

fix response of v2xMsgSub in meep-vis

parent 5c5f2817
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -25,9 +25,9 @@ package server

type SubscriptionCommon struct {
	// URI selected by the service consumer, to receive notifications on the subscribed RNIS information. This shall be included in the request and response.
	SubscriptionType   string                            `json:"subscriptionType"`
	CallbackReference  string                            `json:"callbackReference,omitempty"`
	FilterCriteria     *V2xMsgSubscriptionFilterCriteria `json:"filterCriteria"`
	WebsockNotifConfig *WebsockNotifConfig               `json:"websockNotifConfig,omitempty"`
	FilterCriteria     *V2xMsgSubscriptionFilterCriteria `json:"filterCriteria"`
	ExpiryDeadline     *TimeStamp                        `json:"expiryDeadline,omitempty"`
	SubscriptionType   string                            `json:"subscriptionType"`
}
+2 −0
Original line number Diff line number Diff line
@@ -771,6 +771,8 @@ func subscriptionsPost(w http.ResponseWriter, r *http.Request) {
			return
		}

		v2xSubscription.Links = link

		// Validating mandatory parameters provided in the request body
		if v2xSubscription.SubscriptionType == "" {
			log.Error("Mandatory SubscriptionType parameter should be present")