I'm trying to create a TMF622 product ordering API, using a Java server generated from the r19 Swagger specification.
However, I'm confused by the behaviour of the generated server. When I try and create a product order, I'm forced by validation to specify IDs on the product order items. I find this surprising, as (unless I'm mistaken) the order items and their corresponding IDs will only be created as part of the order itself.
Instead, what I would expect is something akin to a
ProductOrderCreate object for the items, where the object doesn't have an ID. In other words,
I would expect a
ProductOrderCreate to have a list of product order items, of type
ProductOrderItemCreate, and for the API to return a
ProductOrder with a list of product order items of type
ProductOrderItem, all of which have IDs.
Can someone explain the intended usage here? Should I have to supply the product order IDs? Or is this validation incorrect?
------------------------------
Ben R
TDC
------------------------------