Hi Jonathan,
thanks a lot for your reply!
We find multiple schemata in allOfs in many V5 APIs, for instance in TMF 622.
Here is an example from TMF 622:
AgreementRef:
type: object
description: >-
Agreement reference. An agreement represents a contract or arrangement, either written or
verbal and sometimes enforceable by law, such as a service level agreement or a customer
price agreement. An agreement involves a number of other business entities, such as
products, services, and resources and/or their specifications.
allOf:
- $ref: '#/components/schemas/Extensible'
- $ref: '#/components/schemas/EntityRef'
- $ref: '#/components/schemas/Reference'
discriminator:
propertyName: '@type'
mapping:
AgreementRef: '#/components/schemas/AgreementRef'
We are using Open API Code Generator for Java, version 6.2.1 (see https://github.com/OpenAPITools/openapi-generator).
Thanks again!
Georg
------------------------------
Georg Röver
1&1 Versatel GmbH
------------------------------
Original Message:
Sent: Feb 20, 2023 10:28
From: Jonathan Goldberg
Subject: TMF Version 5: Multiple schemata in allOf tags
Which API are you referring to, Georg, or is it a problem you have encountered in all v5 APIs?
Is this a problem in the specific codegen tool you are using? Perhaps try another tool for code generation?
------------------------------
Jonathan Goldberg
Amdocs Management Limited
Any opinions and statements made by me on this forum are purely personal, and do not necessarily reflect the position of the TM Forum or my employer.
------------------------------