Skip to content

Commit

Permalink
Remove hash from manifest (because it's in manifest.definition)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasMahe committed Apr 16, 2019
1 parent 05dfa94 commit da21f67
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion commands/marketplace_publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ func (c *marketplacePublishCmd) runE(cmd *cobra.Command, args []string) error {
pretty.Progress("Publishing service on the marketplace...", func() {
if tx, err = c.e.PreparePublishServiceVersion(provider.MarketplaceManifestServiceData{
Definition: c.service.Definition,
Hash: c.service.Definition.Hash,
HashVersion: marketplaceServiceHashVersion,
Readme: readme,
Deployment: deployment,
Expand Down
1 change: 0 additions & 1 deletion commands/provider/marketplace_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ type MarketplaceDeployedSource struct {
type MarketplaceManifestServiceData struct {
Definition *definition.Service `json:"definition"`
Readme string `json:"readme,omitempty"`
Hash string `json:"hash"`
HashVersion string `json:"hashVersion"`
Deployment MarketplaceDeployedSource `json:"deployment"`
}
Expand Down
2 changes: 0 additions & 2 deletions systemservices/marketplace/mesg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ tasks:
service: &manifestServiceData
type: Object
object:
hash:
type: String
hashVersion:
type: String
deployment:
Expand Down
3 changes: 1 addition & 2 deletions systemservices/marketplace/src/types/manifest.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
export interface Manifest {
version: '1'
service: {
hash: string
hashVersion: '1'
deployment: {
type: 'ipfs'|'http'|'https'
source: string
}
definition: any,
definition: any, // TODO: add ts definition or json schema validation
readme?: string
}
}
4 changes: 0 additions & 4 deletions systemservices/marketplace/src/types/schema/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
],
"type": "object"
},
"hash": {
"type": "string"
},
"hashVersion": {
"enum": [
"1"
Expand All @@ -41,7 +38,6 @@
"required": [
"definition",
"deployment",
"hash",
"hashVersion"
],
"type": "object"
Expand Down

0 comments on commit da21f67

Please sign in to comment.