Skip to main content

allOf override of nested array items with oneOf

GET 

/allof-array-items-oneof-override

Regression coverage for issue #1218.

A schema extends a base via allOf and overrides a nested array's items with a oneOf of subtypes that each include the base's properties. Prior to the fix, the shared base properties (id, type, geometry) rendered twice — once at the array-item level and once inside each oneOf branch.

Schema:

type: object
allOf:
- $ref: '#/components/schemas/FeatureCollectionBase'
- type: object
properties:
features:
items:
oneOf:
- $ref: '#/components/schemas/PointFeature'
- $ref: '#/components/schemas/PolygonFeature'

Responses

A custom feature collection