examples/address-book/address-book.schema.yaml in kwalify-0.1.0 vs examples/address-book/address-book.schema.yaml in kwalify-0.2.0

- old
+ new

@@ -1,43 +1,43 @@ ## ## Kwalify schema example for address book ## -## $Release: 0.1.0 $ +## $Release: 0.2.0 $ ## copyright(c) 2005 kuwata-lab all rights reserved. ## ## -## NOTE: 'type: string' is omitted in this example because 'string' is default type. +## NOTE: 'type: str' is omitted in this example because 'str' is default type. ## type: seq required: yes sequence: - type: map required: yes mapping: "name": - #type: string + type: str required: yes "email": - #type: string + type: str pattern: /@/ "tel": - #type: string + type: str pattern: /^\d+-\d+-\d+$/ "birth": type: date "age": - type: integer + type: int "zip": - #type: string + type: str pattern: /^\d+-\d+$/ "addr": - #type: string + type: str "blood": - #type: string + type: str enum: - A - B - O - AB "memo": - type: object + type: any