Skip to content

Revisit structure at runtime of allOf/oneOf/anyOf #29

Open
@czechboy0

Description

@czechboy0

Structure at runtime of allOf/oneOf/anyOf - today, we use nesting of structs to represent the nested schemas.

Could be represented as a single flattened struct that conforms to multiple protocols, one for each nested type, or some other way.

Things to keep in mind:

  • lack of nested protocols in Swift
  • cost of using existentials vs concrete types

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/usabilityUsability of generated code, ergonomics.status/needs-designNeeds further discussion and a concrete proposal.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions