summaryrefslogtreecommitdiffstats
path: root/javatoscachecker/checker/src/test/resources/spec/node_types/node_type_with_hierarchy.yaml
blob: b095297b92409d2c7dc533a9afe9ac14999afdbe (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
tosca_definitions_version: tosca_simple_yaml_1_1

metadata:
  outcome: "success"
 
node_types:
  org.onap.tosca.checker.Appliance:
    properties:
      brand:
        type: string
        required: true
      color:
        type: string
        required: true
      warrantyDuration:
        type: string
        required: true
      price:
        type: float
        required: true
      power_type:
        type: string
        default: "electric"
        constraints:
          - valid_values: ["electric", "gas"]

  org.onap.tosca.checker.Dishwasher:
    derived_from: org.onap.tosca.checker.Appliance
    properties:
      waterFiltration:
        type: boolean
        required: false
        default: false
      numberOfCycles:
        type: integer
        required: false
      rackMaterial:
        type: string
        required: true
      energyStar:
        type: boolean
        required: true