open-api-spex / open_api_spex

Open API Specifications for Elixir Plug applications
Mozilla Public License 2.0
681 stars 177 forks source link

Examples for anyOf generate by example/1 are broken #580

Open cometeer opened 7 months ago

cometeer commented 7 months ago

This problem was fixed for example/2 in this commit but still persists for example/1

The output of example/1 for anyOf schemas produces a union of all types in the array possibly leading to an example that does not validate against the schema.