oapi-codegen icon indicating copy to clipboard operation
oapi-codegen copied to clipboard

oapi-codegen complains of a discriminator being set when merging allOf schemas

Open cosnicolaou opened this issue 3 years ago • 0 comments

The checks in mergeOpenapiSchemas complain if a discriminator is set for any of the schemas being merged. It seems that this should be allowed when merging allOfs (eg. an allOf that contains a one/anyOf with a discriminator). Currently mergeOpenapiSchemas is only called for allOf schemas.

cosnicolaou avatar Dec 12 '22 20:12 cosnicolaou