TS 26.512: Discrepancy between tables and YAML for properties marked as read-only #102
Labels
3GPP Rel-16
Issues relating to 3GPP Release 16 specifications.
3GPP Rel-17
Issues relating to 3GPP Release 17 specifications.
3GPP TS 26.512
Issues relating to SA4's "5G Media Streaming (5GMS); Protocols" specification.
5GMS Content Hosting
5GMS Dynamic Policies
5GMS Edge Applications
5GMS Metrics Reporting
5GMS Network Assistance
Adopted
Improvement
Milestone
Description
Issue #88 dealt with the discrepancy between Table 7.9.3.1-1 and the OpenAPI YAML in Annex C.3.8 with respect to some fields being marked as read-only, or described as being assigned by the 5GMS AF, in the Table but not marked as
readOnly: true
in the YAML. This becomes a problem with automatically generated code when the property is also a mandatory field, as the generated code will insist on the property being present in a request when it should not be present.There are several other instances of properties being marked read-only in the Tables but not marked as such in the OpenAPI YAML definitions in the Annexes.
The following is a table of all the instances where a property is marked as read-only in a Table but not in the YAML.
/components/schemas/
Suggested solution
Add the
readOnly: true
flag to all YAML properties where the same property is marked as read-only in the Data model Tables or noted that it is assigned by the 5GMS AF.For types specified directly in the YAML, the addition of the
readOnly: true
will be sufficient, for example:...would become...
For properties which reference a type defined elsewhere, where the the addition of the
readOnly: true
requires that the reference be placed in anallOf
oranyOf
section, for example:...would become...
Additional context
See Issue #88 for the same change applied to the PolicyTemplates data model for TS 26.512 v17.6.0.
The text was updated successfully, but these errors were encountered: