Skip to content

Commit 81e49c8

Browse files
committed
Add titles for the oneOf variants.
1 parent 5d436d4 commit 81e49c8

File tree

2 files changed

+50
-54
lines changed

2 files changed

+50
-54
lines changed

schema/campaign_spec.schema.json

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -182,36 +182,34 @@
182182
"description": "A single flag to control the publishing state for the entire campaign."
183183
},
184184
{
185-
"oneOf": [
186-
{
187-
"type": "object",
188-
"description": "Only repositories that match patterns in this array will be published.",
189-
"additionalProperties": false,
190-
"required": ["only"],
191-
"properties": {
192-
"only": {
193-
"type": "array",
194-
"items": {
195-
"type": "string"
196-
}
197-
}
185+
"type": "object",
186+
"title": "PublishedOnly",
187+
"description": "Only repositories that match patterns in this array will be published.",
188+
"additionalProperties": false,
189+
"required": ["only"],
190+
"properties": {
191+
"only": {
192+
"type": "array",
193+
"items": {
194+
"type": "string"
198195
}
199-
},
200-
{
201-
"type": "object",
202-
"description": "Only repositories that do NOT match patterns in this array will be published.",
203-
"additionalProperties": false,
204-
"required": ["except"],
205-
"properties": {
206-
"except": {
207-
"type": "array",
208-
"items": {
209-
"type": "string"
210-
}
211-
}
196+
}
197+
}
198+
},
199+
{
200+
"type": "object",
201+
"title": "PublishedExcept",
202+
"description": "Only repositories that do NOT match patterns in this array will be published.",
203+
"additionalProperties": false,
204+
"required": ["except"],
205+
"properties": {
206+
"except": {
207+
"type": "array",
208+
"items": {
209+
"type": "string"
212210
}
213211
}
214-
]
212+
}
215213
}
216214
]
217215
}

schema/campaign_spec_stringdata.go

Lines changed: 25 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)