deps: Update thema, use CUE fork (#60496)

* deps: Update thema, use CUE fork

* Remove superfluous openapi-codegen output

* Update thema again to catch cuetsy changes

* Rerun codegen with latest

* Latest thema, removes cuetsy update

* Latest of cuetsy

* Update type usage

* One last cuetsy rollback

* Update playlist summary tests

* More lint fixes

* Remove TS veneer changes for VariableHide

Co-authored-by: Clarity-89 <homes89@ukr.net>
This commit is contained in:
sam boyer
2022-12-22 07:20:02 -05:00
committed by GitHub
co-authored by Clarity-89
parent 9d64e7cedc
commit b8253ac3b9
15 changed files with 695 additions and 937 deletions
+9 -7
View File
@@ -62,15 +62,17 @@ func (j *jennytypego) JennyName() string {
}
func (j *jennytypego) Generate(lin thema.Lineage) (*codejen.File, error) {
b, err := gocode.GenerateTypesOpenAPI(lin.Latest(), &gocode.TypeConfigOpenAPI{
ApplyFuncs: []astutil.ApplyFunc{
codegen.PrefixReplacer("Plugindef", "PluginDef"),
},
f, err := codegen.GoTypesJenny{ApplyFuncs: []astutil.ApplyFunc{
codegen.PrefixReplacer("Plugindef", "PluginDef"),
}}.Generate(codegen.SchemaForGen{
Name: "PluginDef",
Schema: lin.Latest(),
IsGroup: false,
})
if err != nil {
return nil, err
if f != nil {
f.RelativePath = filepath.Join(dirPlugindef, f.RelativePath)
}
return codejen.NewFile(filepath.Join(dirPlugindef, "plugindef_types_gen.go"), b, j), nil
return f, err
}
// one-off jenny for plugindef go bindings