Skip to content
This repository was archived by the owner on Feb 13, 2026. It is now read-only.
This repository was archived by the owner on Feb 13, 2026. It is now read-only.

Investigate the possibility of execution order related issues in the recursion of element type combination #14

@ufukty

Description

@ufukty
{
  "combination-1st-degree": [ // works
    { "a": true },
    { "b": true }
  ],
  "combination-2nd-degree": [ // works
    { "a": { "x": true } },
    { "b": { "y": true } }
  ],
  "combination-3rd-degree": [ // works
    { "o": { "a": { "x": true } } },
    { "p": { "b": { "y": true } } }
  ],
  "any": [ // doesn't work
    { "a": { "x": true } },
    { "a": { "y": true } }
  ]
}

gonfique v2.0.0-pre-alpha-11-g5e534d7 produces

// exported for any
type Any []any

// exported for combination-1st-degree
type Combination1stDegree []struct {
  A bool `yaml:"a"`
  B bool `yaml:"b"`
}

// exported for combination-2nd-degree
type Combination2ndDegree []struct {
  A struct {
    X bool `yaml:"x"`
  } `yaml:"a"`
  B struct {
    Y bool `yaml:"y"`
  } `yaml:"b"`
}

// exported for combination-3rd-degree
type Combination3rdDegree []struct {
  O struct {
    A struct {
      X bool `yaml:"x"`
    } `yaml:"a"`
  } `yaml:"o"`
  P struct {
    B struct {
      Y bool `yaml:"y"`
    } `yaml:"b"`
  } `yaml:"p"`
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions