Skip to content

[BUG] [Swift6] Map type with $ref'd additionalProperties resolves to [String: Dictionary] #23666

@winrid

Description

@winrid

A nested map property whose additionalProperties is a $ref to an aliased map schema produces [String: Dictionary] (no generic args, doesn't compile in Swift 6) instead of the resolved type.

StringMap:
  type: object
  additionalProperties: { type: string }
EmailTemplate:
  properties:
    translationOverridesByLocale:
      type: object
      additionalProperties:
        $ref: '#/components/schemas/StringMap'

Expected [String: [String: String]]. Working on a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions