Skip to content

Commit 582029f

Browse files
committed
Fix merge of #574 and #585
1 parent a5d2d89 commit 582029f

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

spec/data-model/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,19 +111,20 @@ interface CatchallKey {
111111

112112
Each `Pattern` contains a linear sequence of text and placeholders corresponding to potential output of a message.
113113

114-
Each element of the `Pattern` MUST either be a non-empty string or an `Expression` object.
114+
Each element of the `Pattern` MUST either be a non-empty string, an `Expression`, or a `Markup` object.
115115
String values represent literal _text_.
116116
String values include all processing of the underlying _text_ values,
117117
including escape sequence processing.
118-
`Expression` values wrap each of the _expression_ shapes.
118+
`Expression` wraps each of the potential _expression_ shapes.
119+
`Markup` wraps each of the potential _markup_ shapes.
119120

120121
Implementations MUST NOT rely on the set of `Expression` and
121122
`Markup` interfaces defined in this document being exhaustive.
122123
Future versions of this specification might define additional
123124
expressions or markup.
124125

125126
```ts
126-
type Pattern = Array<string | Expression>;
127+
type Pattern = Array<string | Expression | Markup>;
127128

128129
type Expression =
129130
| LiteralExpression

spec/data-model/message.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,11 @@
146146
"pattern": {
147147
"type": "array",
148148
"items": {
149-
"oneOf": [{ "type": "string" }, { "$ref": "#/$defs/expression" }]
149+
"oneOf": [
150+
{ "type": "string" },
151+
{ "$ref": "#/$defs/expression" },
152+
{ "$ref": "#/$defs/markup" }
153+
]
150154
}
151155
},
152156

0 commit comments

Comments
 (0)