Co-authored-by: Peter Bengtsson <mail@peterbe.com> Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
20 lines
711 B
JavaScript
20 lines
711 B
JavaScript
import { schema } from '../../../lib/frontmatter.js'
|
|
|
|
// Copy the properties from the frontmatter schema.
|
|
const featureVersions = {
|
|
properties: {
|
|
versions: Object.assign({}, schema.properties.versions),
|
|
},
|
|
}
|
|
|
|
// Remove the feature versions properties.
|
|
// We don't want to allow features within features! We just want pure versioning.
|
|
delete featureVersions.properties.versions.properties.feature
|
|
|
|
// Call it invalid if any properties other than version properties are found.
|
|
featureVersions.additionalProperties = false
|
|
// TODO - UNCOMMENT THE FOLLOWING LINE WHEN GHAE IS UPDATED WITH SEMVER VERSIONING
|
|
// featureVersions.properties.versions.additionalProperties = false
|
|
|
|
export default featureVersions
|