-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.yaml
72 lines (72 loc) · 1.53 KB
/
schema.yaml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
$id: >-
https://raw.githubusercontent.com/billwanjohi/minizinc-input-data-schema/main/schema.yaml
$schema: "http://json-schema.org/draft-07/schema"
additionalProperties: false
default: {}
description: Known good data schema for minizinc
examples:
- Customers:
- e: Customer A
- e: Customer B
- e: Customer C
distances:
- - 1
- 2
- 3
- - 4
- 5
- 6
n: 2
patterns:
- set:
- 1
- 3
- 5
- set:
- 2
- 4
- 6
patternProperties:
# https://www.minizinc.org/doc-2.5.5/en/modelling.html#defblock-0
^(in|intersect|not|subset|superset|union)$:
type: "null"
"^[a-zA-Z][a-zA-Z0-9_]*$":
anyOf:
- additionalItems: false
items:
type: array
type: array
- additionalItems: false
items:
type: integer
type: array
- additionalItems: false
items:
additionalProperties: false
properties:
e:
type: string
required:
- e
type: object
title: enum
type: array
- additionalItems: false
items:
additionalProperties: false
properties:
set:
additionalItems: false
type: array
required:
- set
type: object
title: set
type: array
- type: boolean
- type: integer
- type: string
required: []
title: The root schema
type: object