Skip to content

Commit

Permalink
WIP3
Browse files Browse the repository at this point in the history
  • Loading branch information
Saliou Diallo committed Sep 8, 2022
1 parent de99e74 commit a4ed2f0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@audius/sdk",
"version": "1.0.1-beta.1",
"version": "1.0.1-beta.2",
"audius": {
"releaseSHA": "b2033d58ac5a15ed1fd1d6d3298f06541aa78b5e"
},
Expand Down
27 changes: 26 additions & 1 deletion libs/src/services/schemaValidator/schemas/trackSchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,15 @@
"type": ["object", "null"],
"$ref": "#/definitions/RemixOf",
"default": null
},
"is_premium": {
"type": "boolean",
"default": false
},
"premium_conditions": {
"type": ["object", "null"],
"$ref": "#/definitions/PremiumConditions",
"default": null
}
},
"required": [
Expand All @@ -137,7 +146,9 @@
"stem_of",
"tags",
"title",
"track_segments"
"track_segments",
"is_premium",
"premium_conditions"
],
"title": "Track"
},
Expand Down Expand Up @@ -262,6 +273,20 @@
"maxLength": 46,
"pattern": "^Qm[a-zA-Z0-9]{44}$",
"title": "CID"
},
"PremiumConditions": {
"type": "object",
"additionalProperties": false,
"properties": {
"nft-collection": {
"type": "string"
}
},
"required": [
"nft-collection"
],
"$comment": "Once we allow other conditions, we need to update the required property to [] as users will determine what conditions they're gating their content on; the conditions won't necessarily include 'nft-collection'.",
"title": "PremiumConditions"
}
}
}

0 comments on commit a4ed2f0

Please sign in to comment.