Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

fix: byteprefix union representation AST form fix #370

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions schemas/schema-schema.ipldsch
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,7 @@ type UnionRepresentation_Inline struct {
## byteprefix is an invalid representation for any union that contains a type
## that does not have a bytes representation.
##
type UnionRepresentation_BytePrefix struct {
discriminantTable {TypeName:Int}
}
type UnionRepresentation_BytePrefix {TypeName:Int}

## TypeStruct describes a type which has a group of fields of varying Type.
## Each field has a name, which is used to access its value, similarly to
Expand Down
16 changes: 3 additions & 13 deletions schemas/schema-schema.ipldsch.json
Original file line number Diff line number Diff line change
Expand Up @@ -355,19 +355,9 @@
}
},
"UnionRepresentation_BytePrefix": {
"kind": "struct",
"fields": {
"discriminantTable": {
"type": {
"kind": "map",
"keyType": "TypeName",
"valueType": "Int"
}
}
},
"representation": {
"map": {}
}
"kind": "map",
"keyType": "TypeName",
"valueType": "Int"
},
"TypeStruct": {
"kind": "struct",
Expand Down