Sourcemeta Core 0.0.0
Loading...
Searching...
No Matches
sourcemeta::core::OpenAPIFrame::Discriminator Struct Reference

Public Attributes

Pointer origin
 Where the mapping value sits, as a pointer from the root of the document.
JSON::String destination
 Where it points, resolved and canonicalised.
JSON::String scope
bool by_name {false}
bool dangling {false}

Detailed Description

Where a Discriminator Object names a schema, by the name of a component or by URI. OpenAPI Specification 3.1.1, Section 4.3 lists the URI form of a mapping among the fields that connect the documents of a description, and Section 4.3.3 lists the name form among the connections it makes by name, so either way one of these is a place the description reaches for

Member Data Documentation

◆ by_name

bool sourcemeta::core::OpenAPIFrame::Discriminator::by_name {false}

Whether it named that schema by the name of a component rather than by a URI reference. Section 4.8.25 calls a value that holds up as either of those ambiguous and leaves the choice to the implementation, so this is the reading framing settled on. Nothing else here reports it, as a name and a fragment that name the one component resolve alike

◆ dangling

bool sourcemeta::core::OpenAPIFrame::Discriminator::dangling {false}

Whether that destination is no schema the frame holds, which counts a position that the schemas record without a schema of its own as nowhere to land

◆ scope

JSON::String sourcemeta::core::OpenAPIFrame::Discriminator::scope

What it resolved against, which is the nearest identifier an enclosing schema declares for the URI form, and the description itself for the name form


The documentation for this struct was generated from the following file:
  • /__w/core/core/src/spec/openapi/include/sourcemeta/core/openapi.h