Skip to content

Failing codegen on Any #528

Description

@delaneyj
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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low: Not priority right now

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions