5G-MAG / rt-5gms-application-function

5G Media Streaming - Application Function
https://www.5g-mag.com/streaming
Other
11 stars 6 forks source link

Enhancement: surface parse errors more comprehensively throughout the AF #131

Open davidjwbbc opened 8 months ago

davidjwbbc commented 8 months ago

Description

When the OpenAPI code templates were updated we introduced an "out" parameter which returns the parse error reason string. Where the OpenAPI model interfaces are directly used by the M1/M5 API this reason is now reported, but where the parsing is buried within other functions (dynamic-policy, network-assistance-session, etc.) this error reason is not surfaced back to the API response.

Design

Add a const char **parse_err parameter to all functions which perform any parsing or validation of JSON to return any parse error reason strings back up to the API handling so that it can be returned as part of the ProblemDetails description.