File tree Expand file tree Collapse file tree 2 files changed +16
-19
lines changed Expand file tree Collapse file tree 2 files changed +16
-19
lines changed Original file line number Diff line number Diff line change @@ -109,19 +109,19 @@ interface CatchallKey {
109109
110110## Patterns
111111
112- Each ` Pattern ` represents a linear sequence, without selectors.
113- Each element of the ` body ` array MUST either be a non-empty string or an ` Expression ` object.
114- String values represent literal _ text_ ,
115- while ` Expression ` wraps each of the potential _ expression_ shapes.
116- The ` body ` strings are the "cooked" _ text_ values, i.e. escape sequences are processed.
112+ Each ` Pattern ` contains a linear sequence of text and placeholders corresponding to potential output of a message.
113+
114+ Each element of the ` Pattern ` MUST either be a non-empty string or an ` Expression ` object.
115+ String values represent literal _ text_ .
116+ String values include all processing of the underlying _ text_ values,
117+ including escape sequence processing.
118+ ` Expression ` values wrap each of the _ expression_ shapes.
117119
118120Implementations MUST NOT rely on the set of ` Expression ` interfaces being exhaustive,
119121as future versions of this specification MAY define additional expressions.
120122
121123``` ts
122- interface Pattern {
123- body: Array <string | Expression >;
124- }
124+ type Pattern = Array <string | Expression >;
125125
126126type Expression = LiteralExpression | VariableExpression | FunctionExpression |
127127 UnsupportedExpression ;
Original file line number Diff line number Diff line change 2727 "properties" : {
2828 "name" : { "type" : " string" },
2929 "value" : {
30- "oneOf" : [{ "$ref" : " #/$defs/literal" }, { "$ref" : " #/$defs/variable" }]
30+ "oneOf" : [
31+ { "$ref" : " #/$defs/literal" },
32+ { "$ref" : " #/$defs/variable" }
33+ ]
3134 }
3235 },
3336 "required" : [" name" , " value" ]
104107 },
105108
106109 "pattern" : {
107- "type" : " object" ,
108- "properties" : {
109- "body" : {
110- "type" : " array" ,
111- "items" : {
112- "oneOf" : [{ "type" : " string" }, { "$ref" : " #/$defs/expression" }]
113- }
114- }
115- },
116- "required" : [" body" ]
110+ "type" : " array" ,
111+ "items" : {
112+ "oneOf" : [{ "type" : " string" }, { "$ref" : " #/$defs/expression" }]
113+ }
117114 },
118115
119116 "input-declaration" : {
You can’t perform that action at this time.
0 commit comments