Is your feature request related to a problem? Please describe.
$ref is already modeled through the special reference implementation, but $anchor is still missing from IOpenApiSchema. That prevents anchored JSON Schema 2020-12 schemas from being represented explicitly in the typed model.
Describe the solution you'd like
Add first-class support for the JSON Schema 2020-12 $anchor keyword on IOpenApiSchema and the related schema implementations.
This should include the interface, OpenApiSchema, OpenApiSchemaReference, constants, reader/deserializer support, and 3.1+/3.2 serialization behavior.
Describe alternatives you've considered
$anchor can currently only be preserved as an unrecognized keyword, which does not provide a typed object model surface.
Additional context
This issue is intentionally scoped to $anchor only. $ref is already handled separately by the reference model.
Is your feature request related to a problem? Please describe.
$refis already modeled through the special reference implementation, but$anchoris still missing fromIOpenApiSchema. That prevents anchored JSON Schema 2020-12 schemas from being represented explicitly in the typed model.Describe the solution you'd like
Add first-class support for the JSON Schema 2020-12
$anchorkeyword onIOpenApiSchemaand the related schema implementations.This should include the interface,
OpenApiSchema,OpenApiSchemaReference, constants, reader/deserializer support, and 3.1+/3.2 serialization behavior.Describe alternatives you've considered
$anchorcan currently only be preserved as an unrecognized keyword, which does not provide a typed object model surface.Additional context
This issue is intentionally scoped to
$anchoronly.$refis already handled separately by the reference model.