We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
At the moment, given the following files, conversion will succeed:
build.json
{ "name": "zine", "version": "0.0.1" "dependencies": { "foo": { "Remote": { "url": "https", "hash": "aaa" } }, "bar": { "Local": { "path": "/usr" } } } }
build.ziggy-schema
root = Project struct Project { name: bytes, version: bytes, dependencies: map[Remote | Local], } struct Remote { url: bytes, hash: bytes, } struct Local { path: bytes, }
Result:
{ .name = "zine", .version = "0.0.1", .dependencies = { "foo": Remote { .url = "https", .hash = "aaa", }, "bar": Local { .path = "/usr", }, }, }
The goal is to also make the following JSON files succeed at importing:
Shape matching:
{ "name": "zine", "version": "0.0.1" "dependencies": { "foo": { "url": "https", "hash": "aaa" }, "bar": { "path": "/usr" } } }
type field:
type
{ "name": "zine", "version": "0.0.1" "dependencies": { "foo": { "type": "Remote", "url": "https", "hash": "aaa" }, "bar": { "type": "Local", "path": "/usr" } } }
The text was updated successfully, but these errors were encountered:
ziggy convert
No branches or pull requests
At the moment, given the following files, conversion will succeed:
build.json
build.ziggy-schema
Result:
The goal is to also make the following JSON files succeed at importing:
Shape matching:
type
field:The text was updated successfully, but these errors were encountered: