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 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

◆ 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/core/openapi/include/sourcemeta/core/openapi.h