Giter Club home page Giter Club logo

Comments (5)

AWhetter avatar AWhetter commented on June 26, 2024

Actually even if I include that remote schema, DefImpact still isn't created.

from generate.

AWhetter avatar AWhetter commented on June 26, 2024

I eventually got this to work by moving the definition of baseMetricV2 and baseMatricV3 to top level definitions, and def_impact references those definitions. So it appears that nested structs are what is not created.

from generate.

bhearsum avatar bhearsum commented on June 26, 2024

I can reproduce this with https://raw.githubusercontent.com/mozilla-releng/balrog/main/src/auslib/blobs/schemas/apprelease-v4.yml. Neither the fileUrls nor platforms structs get created with useful contents. Instead, I have:

// FileUrls Key/value pairs where the key is a platform name (aka Build Target) and the values are the platform specific details.
type FileUrls struct {
}

// Platforms Key/value pairs whose keys are the names of platforms (aka Build Targets) and values are platform-specific update details.
type Platforms struct {
}

from generate.

ls-emilio-assuncao avatar ls-emilio-assuncao commented on June 26, 2024

I don't think this is an intended use-case of this tool -- what is possible however, is to write a go generate script that more or less tailors the logic in https://github.com/a-h/generate/blob/master/cmd/schema-generate/main.go with the added step of pulling nested definitions when needed. This is what I'll be doing.

from generate.

andrewpollock avatar andrewpollock commented on June 26, 2024

I've just encountered the exact same use case as @AWhetter today, and @ls-emilio-assuncao I was wondering if you have anything you can share about how you resolved your need?

from generate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.