Skip to content

Commit

Permalink
Add titles for the oneOf variants.
Browse files Browse the repository at this point in the history
  • Loading branch information
LawnGnome committed Aug 30, 2020
1 parent 5d436d4 commit 81e49c8
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 54 deletions.
52 changes: 25 additions & 27 deletions schema/campaign_spec.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,36 +182,34 @@
"description": "A single flag to control the publishing state for the entire campaign."
},
{
"oneOf": [
{
"type": "object",
"description": "Only repositories that match patterns in this array will be published.",
"additionalProperties": false,
"required": ["only"],
"properties": {
"only": {
"type": "array",
"items": {
"type": "string"
}
}
"type": "object",
"title": "PublishedOnly",
"description": "Only repositories that match patterns in this array will be published.",
"additionalProperties": false,
"required": ["only"],
"properties": {
"only": {
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "object",
"description": "Only repositories that do NOT match patterns in this array will be published.",
"additionalProperties": false,
"required": ["except"],
"properties": {
"except": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"title": "PublishedExcept",
"description": "Only repositories that do NOT match patterns in this array will be published.",
"additionalProperties": false,
"required": ["except"],
"properties": {
"except": {
"type": "array",
"items": {
"type": "string"
}
}
]
}
}
]
}
Expand Down
52 changes: 25 additions & 27 deletions schema/campaign_spec_stringdata.go

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

0 comments on commit 81e49c8

Please sign in to comment.