Sha256: 19a97be2f43b6edd573916d1c91fdd8b7361f2d9df6758f79e88c782fea08918

Contents?: true

Size: 1.11 KB

Versions: 7

Compression:

Stored size: 1.11 KB

Contents

###
### Kwalify schema example for invoice
###
### $Rev$
### $Release: 0.7.2 $
### copyright(c) 2005-2010 kuwata-lab all rights reserved.
###

type:      map
classname: Invoice
required:  yes
mapping:
 "invoice":  { type: int, required: yes, unique: yes }
 "date":     { type: date, required: yes }
 "bill-to":  &customer
    type:      map
    required:  yes
    mapping:
     "given":      { type: str, required: yes }
     "family":     { type: str, required: yes }
     "address":
        type:      map
        required:  yes
        mapping:
         "lines":  { type: str }
         "city":   { type: str }
         "state":  { type: str }
         "postal": { type: int }
 "ship-to":   *customer
 "product":
    type:      seq
    required:  yes
    sequence:
      - type:      map
        required:  yes
        mapping:
         "sku":         { type: str, required: yes, pattern: '/^[A-Z0-9]+$/' }
         "quantity":    { type: int, required: yes }
         "description": { type: str }
         "price":       { type: float }
 "tax":      { type: float }
 "total":    { type: float, required: yes }
 "comments": { type: str }

Version data entries

7 entries across 5 versions & 3 rubygems

Version Path
dc-kwalify-1.0.0 examples/invoice/invoice.schema.yaml
dc-kwalify-0.7.2 examples/invoice/invoice.schema.yaml
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/kwalify-0.7.2/examples/invoice/invoice.schema.yaml
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/kwalify-0.7.2/examples/invoice/invoice.schema.yaml
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/kwalify-0.7.2/examples/invoice/invoice.schema.yaml
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/kwalify-0.7.2/examples/invoice/invoice.schema.yaml
kwalify-0.7.2 examples/invoice/invoice.schema.yaml