I am facing issue on defining the AnyOf in YAML Open API 3.0 version.
Please enter the weight information for line item. Either a
netValue or grossValue must be provided for the line item.
description: Please enter the net weight value
description: Please enter the gross weight value
I am facing issue on anyOf which keep mentioned need to be an object for the netValue and grossValue.
What is the best way for me to proceed?
- required: [netValue]
- required: [grossValue]
Note that "anyOf" means either or both properties should be present. If just one of these properties should be present (i.e. they are musually exclusive), use "oneOf" instead.