Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
544164d
Changes for release 18 upgrade
gab-arrobo May 8, 2026
16ee4aa
Upgrade module version to `v2`
gab-arrobo May 8, 2026
40fb8d0
Address Copilot's comments
gab-arrobo May 8, 2026
7f33705
Address Copilot's comments
gab-arrobo May 9, 2026
d6f4859
Address Copilot's comments
gab-arrobo May 11, 2026
77df9f3
Address scorecard-analysis permission
gab-arrobo May 11, 2026
4d20436
Address Copilot's comments
gab-arrobo May 11, 2026
6fa3b2f
Address review comments
gab-arrobo May 12, 2026
d16f410
Update "unimplemented" message
gab-arrobo May 12, 2026
7cadbad
Update path as per 3GPP specs and fix issue in NRF component
gab-arrobo May 13, 2026
141b579
Grammar cleanup
gab-arrobo May 13, 2026
38aeede
Address Copilot's comments
gab-arrobo May 13, 2026
85fab37
Address Copilot's comments
gab-arrobo May 13, 2026
ec904e1
Address Copilot's comments
gab-arrobo May 13, 2026
bf0d2f1
Address Copilot's comments
gab-arrobo May 13, 2026
aacd6fe
Address Copilot's comments
gab-arrobo May 13, 2026
03429c4
Address Copilot's comments
gab-arrobo May 13, 2026
8f4dc22
Address Copilot's comments
gab-arrobo May 13, 2026
36bcefa
Address Copilot's comments
gab-arrobo May 13, 2026
8c136f6
Address Copilot's comments
gab-arrobo May 13, 2026
522fe67
Address Copilot's comments
gab-arrobo May 13, 2026
9b16636
Address Copilot's comments
gab-arrobo May 13, 2026
ea05692
Address Copilot's comments
gab-arrobo May 13, 2026
5b8c481
Address lint issue
gab-arrobo May 13, 2026
d2531d6
Address review comments
gab-arrobo May 14, 2026
1637ab7
Address Copilot's comments
gab-arrobo May 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ updates:
time: "21:00"
timezone: "America/Los_Angeles"

# - package-ecosystem: "gomod"
# directory: "/"
# schedule:
# interval: "weekly"
# day: "thursday"
# time: "21:00"
# timezone: "America/Los_Angeles"
# groups:
# opentelemetry:
# patterns:
# - "go.opentelemetry.io/otel*"
# omec-project:
# patterns:
# - "github.com/omec-project/*"
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
day: "thursday"
time: "21:00"
timezone: "America/Los_Angeles"
groups:
opentelemetry:
patterns:
- "go.opentelemetry.io/otel*"
omec-project:
patterns:
- "github.com/omec-project/*"

- package-ecosystem: github-actions
directory: /
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ jobs:
artifact-metadata: read
attestations: read
checks: read
code-quality: read
contents: read
deployments: read
discussions: read
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.4-dev
3.0.0
75 changes: 34 additions & 41 deletions communication/api_individual_subscription_document.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
// Copyright (c) 2026 Intel Corporation
// Copyright 2019 free5GC.org
//
// SPDX-License-Identifier: Apache-2.0
//

/*
* Namf_Communication
*
* AMF Communication Service
*
* API version: 1.0.0
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
Namf_Communication

AMF Communication Service.
© 2024, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC).
All rights reserved.

API version: 1.3.0-alpha.6

Authors: Aether SD-Core team
Contact: dev@lists.aetherproject.org

Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/

package communication

Expand All @@ -20,36 +25,30 @@ import (
"github.com/gin-gonic/gin"
"github.com/omec-project/amf/logger"
"github.com/omec-project/amf/producer"
"github.com/omec-project/openapi"
"github.com/omec-project/openapi/models"
"github.com/omec-project/openapi/v2"
"github.com/omec-project/openapi/v2/models"
"github.com/omec-project/openapi/v2/utils"
"github.com/omec-project/util/httpwrapper"
)

// AMFStatusChangeSubscribeModify - Namf_Communication AMF Status Change Subscribe Modify service Operation
// Put /subscriptions/:subscriptionId
// Namf_Communication AMF Status Change Subscribe Modify service Operation
func HTTPAMFStatusChangeSubscribeModify(c *gin.Context) {
var subscriptionData models.SubscriptionData
logger.CommLog.Infoln("Handle Put /subscriptions/:subscriptionId")
var subscriptionData models.SubscriptionDataAmf

requestBody, err := c.GetRawData()
if err != nil {
logger.CommLog.Errorf("Get Request Body error: %+v", err)
problemDetail := models.ProblemDetails{
Title: "System failure",
Status: http.StatusInternalServerError,
Detail: err.Error(),
Cause: "SYSTEM_FAILURE",
}
logger.CommLog.Errorf("get Request Body error: %+v", err)
problemDetail := utils.ProblemDetailsSystemFailure(err.Error())
c.JSON(http.StatusInternalServerError, problemDetail)
return
}

err = openapi.Deserialize(&subscriptionData, requestBody, "application/json")
err = openapi.Decode(&subscriptionData, requestBody, "application/json")
if err != nil {
problemDetail := "[Request Body] " + err.Error()
rsp := models.ProblemDetails{
Title: "Malformed request syntax",
Status: http.StatusBadRequest,
Detail: problemDetail,
}
rsp := utils.ProblemDetailsMalformedRequestSyntax(problemDetail)
logger.CommLog.Errorln(problemDetail)
c.JSON(http.StatusBadRequest, rsp)
return
Expand All @@ -60,37 +59,31 @@ func HTTPAMFStatusChangeSubscribeModify(c *gin.Context) {

rsp := producer.HandleAMFStatusChangeSubscribeModify(req)

responseBody, err := openapi.Serialize(rsp.Body, "application/json")
responseBody, err := openapi.SetBody(rsp.Body, "application/json")
if err != nil {
logger.CommLog.Errorln(err)
problemDetails := models.ProblemDetails{
Status: http.StatusInternalServerError,
Cause: "SYSTEM_FAILURE",
Detail: err.Error(),
}
problemDetails := utils.ProblemDetailsSystemFailure(err.Error())
c.JSON(http.StatusInternalServerError, problemDetails)
} else {
c.Data(rsp.Status, "application/json", responseBody)
c.Data(rsp.Status, "application/json", responseBody.Bytes())
}
}

// AMFStatusChangeUnSubscribe - Namf_Communication AMF Status Change UnSubscribe service Operation
// Delete /subscriptions/:subscriptionId
// Namf_Communication AMF Status Change UnSubscribe service Operation
func HTTPAMFStatusChangeUnSubscribe(c *gin.Context) {
logger.CommLog.Infoln("Handle Delete /subscriptions/:subscriptionId")
req := httpwrapper.NewRequest(c.Request, nil)
req.Params["subscriptionId"] = c.Params.ByName("subscriptionId")

rsp := producer.HandleAMFStatusChangeUnSubscribeRequest(req)

responseBody, err := openapi.Serialize(rsp.Body, "application/json")
responseBody, err := openapi.SetBody(rsp.Body, "application/json")
if err != nil {
logger.CommLog.Errorln(err)
problemDetails := models.ProblemDetails{
Status: http.StatusInternalServerError,
Cause: "SYSTEM_FAILURE",
Detail: err.Error(),
}
problemDetails := utils.ProblemDetailsSystemFailure(err.Error())
c.JSON(http.StatusInternalServerError, problemDetails)
} else {
c.Data(rsp.Status, "application/json", responseBody)
c.Data(rsp.Status, "application/json", responseBody.Bytes())
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Copyright (c) 2026 Intel Corporation
// SPDX-License-Identifier: Apache-2.0

/*
Namf_Communication

AMF Communication Service.
© 2024, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC).
All rights reserved.

API version: 1.3.0-alpha.6

Authors: Aether SD-Core team
Contact: dev@lists.aetherproject.org

Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/

package communication

import (
"github.com/gin-gonic/gin"
"github.com/omec-project/amf/logger"
)

// Post /:$request.body#/amfStatusUri
// Amf Status Change Notify service Operation
func HTTPAmfStatusChangeNotify(c *gin.Context) {
detail := "Handle Post /:$request.body#/amfStatusUri is not implemented"
logger.CommLog.Warnln(detail)
writeNotImplementedProblem(c, detail)
}
Loading
Loading