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

metadata:
  outcome: "success"
 
data_types:
  org.onap.tosca.checker.SomeBaseDataType:
    properties:
      firstName:
        type: string
        required: true
      lastName:
        type: string
        required: true

  org.onap.tosca.checker.SomeDataType:
    derived_from: org.onap.tosca.checker.SomeBaseDataType
    properties:
      streetNo:
        type: integer
        required: true
      streetName:
        type: string
        required: true
      state:
        type: string
        constraints:
          - valid_values: [AK,AL,AR,AZ,CA,CO,CT,DE,FL,GA,HI,IA,ID,IL,IN,KS,KY,LA,MA,MD,ME,MI,MN,MO,MS,MT,NC,ND,NE,NH,NJ,NM,NV,NY,OH,OK,OR,PA,RI,SC,SD,TN,TX,UT,VA,VT,WA,WI,WV,WY]