Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate model classes from .yaml files #10

Open
dsilhavy opened this issue Jan 19, 2023 · 2 comments
Open

Generate model classes from .yaml files #10

dsilhavy opened this issue Jan 19, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@dsilhavy
Copy link
Contributor

Feature description
TS26.512 contains OpenAPI .yaml file definitions. Check if we can use them to automatically generate model classes such as https://github.com/5G-MAG/rt-5gms-media-stream-handler/blob/development/app/src/main/java/com/example/a5gms_mediastreamhandler/network/ServiceAccessInformation.kt

@dsilhavy dsilhavy added the enhancement New feature or request label Jan 19, 2023
@rjb1000
Copy link

rjb1000 commented Jan 19, 2023

TS 26.512 provides OpenAPI YAML files for M1 and M5 only (i.e. there is no formal IDL for the M6 and M7 client APIs yet). But you should be able to autogenerate code based on the definition of ServiceAccesInformationResource in M5_ServiceAccessInformation.yaml, for example.

Recommend you take a look at the OpenAPI Generator tool. We have successfully used this to autogenerate C code for the 5GMS AF and Python code for the 5GMS AS. I see it also claims to produce Kotlin code.

@rjb1000
Copy link

rjb1000 commented Jan 19, 2023

Out of interest, why would the Media Stream Handler want to inspect the Service Access Information?

(This data structure should never leak outside the Media Session Handler in the 5GMS Client.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants