Skip to content

Commit d3eba36

Browse files
authored
[prdoc] Support multiple audiences (paritytech#3990)
Closes paritytech#3986 --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
1 parent 03e9dd7 commit d3eba36

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

docs/sdk/src/reference_docs/frame_tokens.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
//! [`fungible::Inspect`](`frame_support::traits::fungible::Inspect`) is not some arcane knowledge
8888
//! that you have to know by heart or memorize. One can simply look at the list of the implementors
8989
//! of any trait in the Rust Doc to find all implementors (e.g.
90-
//! <https://paritytech.github.io/polkadot-sdk/master/frame/traits/tokens/fungible/trait.Mutate.html#implementors>),
90+
//! <https://paritytech.github.io/polkadot-sdk/master/frame_support/traits/tokens/fungible/trait.Mutate.html#implementors>),
9191
//! or use the `rust-analyzer` `Implementations` action.
9292
//!
9393
//! ## Fungible Token Traits in FRAME

prdoc/schema_user.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@
9898
"$defs": {
9999
"audience": {
100100
"description": "You may pick one or more audiences and address those users with appropriate documentation, information and warning related to the PR.",
101+
"oneOf": [
102+
{ "$ref": "#/$defs/audience_id" },
103+
{ "$ref": "#/$defs/audience_ids" }
104+
]
105+
},
106+
"audience_id": {
101107
"oneOf": [
102108
{"const": "Node Dev",
103109
"title": "Node Dev",
@@ -116,6 +122,13 @@
116122
"description": "Anyone using the runtime. This can be a token holder or a dev writing a front end for a chain."}
117123
]
118124
},
125+
"audience_ids": {
126+
"type": "array",
127+
"items": {
128+
"$ref": "#/$defs/audience_id"
129+
},
130+
"minItems": 2
131+
},
119132
"crate": {
120133
"type": "object",
121134
"description": "You have the option here to provide a hint about a crate that has changed to help with the publishing of crates.",
@@ -209,7 +222,11 @@
209222
"description": "Description of the change",
210223
"type": "string"
211224
}
212-
}
225+
},
226+
"required": [
227+
"audience",
228+
"description"
229+
]
213230
},
214231
"array_of_strings": {
215232
"description": "An array of strings that can be empty",

0 commit comments

Comments
 (0)