Skip to content

Failing codegen on Any #528

Open
Open
@delaneyj

Description

ts, err := ipld.LoadSchemaBytes([]byte(`

type Foo struct {
    a Int
    b Int
    c String
}

type Bar struct {
    d Bytes
    e Bool
}

type Baz union {
    | Foo "foo"
    | Bar "bar"
} representation keyed
	`))

	if err != nil {
		log.Fatal(err)
	}

	gengo.Generate("xxx", "pkgname", *ts, &gengo.AdjunctCfg{})

Panics at...

panic: add more type switches here :), failed at type Any
  1. I would think Generate should error, not panic.
    2, Is the generator in a good state or is it not up to date with the current state of IPLD? I noticed the CLI tool was archived.

Metadata

Assignees

No one assigned

    Labels

    P3Low: Not priority right now

    Type

    No type

    Projects

    • Status

      🗄️ Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions