allOf with additionalProperties false on every member
GET/allof-strict-additional-properties
NSwag and Swashbuckle emit additionalProperties: false on every
object schema by default. Combined with allOf composition this
defines a JSON-Schema-unsatisfiable shape (each member rejects the
other's properties as "additional"), and strict allof-merge
implementations collapse the result to no properties — leaving the
rendered schema blank.
Regression coverage for https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/issues/1119: the docs renderer should union the properties across siblings the same way Redoc and Swagger UI do.
Schema:
allOf:
- type: object
additionalProperties: false
properties:
ContinuationToken: { type: string, nullable: true }
title: ResponseBase
- type: object
additionalProperties: false
properties:
Items:
type: array
items:
allOf:
- type: object
additionalProperties: false
properties:
Guid: { type: string, format: uuid }
Revision: { type: integer, format: int64 }
- type: object
additionalProperties: false
required: [Name]
properties:
Name: { type: string, nullable: true }
Code: { type: string, nullable: true }
title: ItemsWrap
Responses
- 200
Successful response