Skip to content

Support JSON Schema $anchor on IOpenApiSchema #2879

@baywet

Description

@baywet

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.

Metadata

Metadata

Assignees

Labels

type:enhancementEnhancement request targeting an existing experience

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions