Skip to content

DereferencedSchemaContext

mattpolzin edited this page Jun 11, 2021 · 4 revisions

DereferencedSchemaContext

A SchemaContext type that guarantees its schema and examples are inlined instead of referenced.

@dynamicMemberLookup
public struct DereferencedSchemaContext: Equatable 

Inheritance

Equatable

Properties

underlyingSchemaContext

The original OpenAPI.Parameter.SchemaContext prior to being dereferenced.

public let underlyingSchemaContext: OpenAPI.Parameter.SchemaContext

schema

The dereferenced schema.

public let schema: DereferencedJSONSchema

examples

The dereferenced examples (if defined).

public let examples: OrderedDictionary<String, OpenAPI.Example>?

example

The dereferenced example (if defined).

public let example: AnyCodable?

This will expose the first example in the examples property if that is defined. OpenAPI also allows defining a single example which results in this property being non-nil while the examples property is nil.

Types
Protocols
Global Functions
Extensions
Clone this wiki locally