1
0
mirror of synced 2025-12-23 11:54:18 -05:00
Files
docs/tests/helpers/schemas/release-notes-schema.js
Sarah Schneider b7f48ea2c1 Support GHAE internal-only semantic versioning (#29178)
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
2022-09-22 08:26:58 +02:00

60 lines
1.0 KiB
JavaScript

const section = {
anyOf: [
{
type: 'array',
items: { type: 'string' },
minItems: 1,
},
{
type: 'object',
properties: {
heading: {
type: 'string',
required: true,
},
notes: {
type: 'array',
items: { type: 'string' },
required: true,
minItems: 1,
},
},
},
],
}
export default {
properties: {
intro: {
type: 'string',
},
date: {
type: 'string',
format: 'date',
required: true,
},
release_candidate: {
type: 'boolean',
default: false,
},
deprecated: {
type: 'boolean',
default: false,
},
sections: {
required: true,
type: 'object',
minProperties: 1,
properties: [
'bugs',
'known_issues',
'features',
'changes',
'deprecations',
'security_fixes',
'backups',
].reduce((prev, curr) => ({ ...prev, [curr]: section }), {}),
},
},
}