Skip to content

Instantly share code, notes, and snippets.

@kohsuke
Created December 1, 2016 23:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kohsuke/74f8a22b0a82472903f92f46db4d2c58 to your computer and use it in GitHub Desktop.
Save kohsuke/74f8a22b0a82472903f92f46db4d2c58 to your computer and use it in GitHub Desktop.
{
"run" : {
"number": null,
"displayName": null,
"action": [
"testResult" : null
]
}
}
-> run[number,displayName,action[testResult]]
=============================
// module X
Model.define(Run,{
"number": null
})
=============================
// module Y
Model.define(Run,{
"displayName": null,
"action": [
"_class" : ">TestResultAction",
"testResult" : null
]
})
=============================
// module Z
Model.define(Run,{
"action": [
"_class" : ">GitBuildData",
"commit" : null
]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment