anyOf in OpenAPI 3.0
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?
anyOf: - 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.
SmartBear Documentation Team Lead
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️