allOf enum narrowing is not reflected in schema rendering
Author: verdie-gCreated Aug 24, 2026Updated Aug 24, 2026
Labelsbugpackage: @scalar/api-referenceschema
What happens?
When an object schema uses allOf to narrow an inherited property enum, Scalar does not clearly display the effective narrowed constraint.
In this example, PrincipalResourceIdentifier.type can only be "principals" because both allOf branches apply. However, Scalar presents the array item as a generic resource identifier and does not clearly surface that only "principals" is accepted.
What did you expect to happen?
Scalar should resolve the intersection of the two type constraints and clearly show that PrincipalResourceIdentifier.type only accepts "principals".
The rendered schema should not suggest that the broader ResourceIdentifier.type enum values are valid for this derived schema.
OpenAPI Document
Source: scalar/scalar