summaryrefslogtreecommitdiffstats
path: root/releases/schema.yaml
blob: f84c87093442d8039005ef40322fc4b6a9c4ff98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
##############################################################################
# Copyright (c) 2018 Linux Foundation and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
---
$schema: 'http://json-schema.org/schema#'
$id: 'https://github.com/opnfv/releng/blob/master/releases/schema.yaml'

additionalProperties: false

required:
  - 'project'
  - 'project-type'

properties:
  project:
    type: 'string'
  release-model:
    type: 'string'
    enum: ['stable', 'non-release']
  project-type:
    type: 'string'
    enum: ['installer', 'testing', 'feature', 'tools', 'infra']
  upstream:
    type: 'string'
  releases:
    type: 'array'
    items:
      type: 'object'
      properties:
        version:
          type: 'string'
          # Matches semantic versioning (X.Y.Z)
          pattern: '^opnfv-([0-9]+\.){2}[0-9]+$'
        location:
          type: 'object'
      required: ['version', 'location']
      additionalProperties: false
  branches:
    type: 'array'
    items:
      type: 'object'
      properties:
        name:
          type: 'string'
          pattern: '^stable/[a-z0-9.]+$'
        location:
          type: 'object'
      required: ['name', 'location']
      additionalProperties: false
  release-notes:
    type: 'string'
    format: 'uri'