-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested structs are not created #67
Comments
Actually even if I include that remote schema, DefImpact still isn't created. |
I eventually got this to work by moving the definition of baseMetricV2 and baseMatricV3 to top level definitions, and |
I can reproduce this with https://raw.githubusercontent.com/mozilla-releng/balrog/main/src/auslib/blobs/schemas/apprelease-v4.yml. Neither the
|
I don't think this is an intended use-case of this tool -- what is possible however, is to write a |
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? |
I'm new to go so I apologise for the lack of details here, but I'm trying to convert https://csrc.nist.gov/schema/nvd/feed/1.1/nvd_cve_feed_json_1.1.schema to go structs. It references https://csrc.nist.gov/schema/nvd/feed/1.1/CVE_JSON_4.0_min_1.1.schema.
I've downloaded both and I'm running using
~/go/bin/schema-generate ~/Downloads/CVE_JSON_4.0_min_1.1.schema.json ~/Downloads/nvd_cve_feed_json_1.1.schema.json
.The output file cannot be compiled, and fails with
./structs.go:52:11: undefined: DefImpact
.def_impact
references another remote schema which I haven't included, so I think it's failing to report that it's missing another schema?The text was updated successfully, but these errors were encountered: