Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
Chore/add l3 roles (#86)
Browse files Browse the repository at this point in the history
* Add l3 roles

* 5.0.3
  • Loading branch information
mattdean-digicatapult authored Mar 21, 2023
1 parent a94b8fd commit 2ca187d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ The `inputs` field is an array of token `id`s that identifies the tokens to be c
The `outputs` field is an array of objects that describe tokens to be created by running this process. To destroy tokens without creating any new ones simply pass an empty array. Each output must reference a `roles` object containing a (key, value) pair for each role associated with the new token. The value is the `AccountId` for the role. At minimum, a token requires the default `Owner` role to be set. The following role keys are accepted:

```json
["Owner", "Customer", "AdditiveManufacturer", "Laboratory", "Buyer", "Supplier", "Reviewer"]
["Owner", "Customer", "AdditiveManufacturer", "Laboratory", "Buyer", "Supplier", "Reviewer", "Optimiser", "MemberA", "MemberB"]
```

Each output must also reference a `metadata` object containing a (key, value) pair for each metadata item associated with the new token. The following metadata value types are accepted:
Expand Down
3 changes: 3 additions & 0 deletions app/api-v3/api-doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ const apiDoc = {
Buyer: { $ref: '#/components/schemas/AccountId' },
Supplier: { $ref: '#/components/schemas/AccountId' },
Reviewer: { $ref: '#/components/schemas/AccountId' },
Optimiser: { $ref: '#/components/schemas/AccountId' },
MemberA: { $ref: '#/components/schemas/AccountId' },
MemberB: { $ref: '#/components/schemas/AccountId' },
},
additionalProperties: false,
required: ['Owner'],
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dscp-api",
"version": "5.0.2",
"version": "5.0.3",
"description": "DSCP API",
"type": "module",
"repository": {
Expand Down

0 comments on commit 2ca187d

Please sign in to comment.