Kwalifyのスキーマ定義
package Angelos::Config::Schema; sub config { my $schema = { type => 'map', mapping => { components => { type => 'map', mapping => { model => { type => 'seq', sequence => [ { type => 'map', mapping => { module => { type => 'str', required => 1, }, config => { type => 'any', }, }, }, ], }, controller => { type => 'seq', sequence => [ { type => 'map', mapping => { module => { type => 'str', required => 1, }, config => { type => 'any', }, }, }, ], }, view => { type => 'seq', sequence => [ { type => 'map', mapping => { module => { type => 'str', required => 1, }, config => { type => 'any', }, }, }, ], }, } }, plugins => { type => 'map', mapping => { model => { type => 'seq', sequence => [ { type => 'map', mapping => { module => { type => 'str', required => 1, }, config => { type => 'any', }, }, }, ], }, controller => { type => 'seq', sequence => [ { type => 'map', mapping => { module => { type => 'str', required => 1, }, config => { type => 'any', }, }, }, ], }, view => { type => 'seq', sequence => [ { type => 'map', mapping => { module => { type => 'str', required => 1, }, config => { type => 'any', }, }, }, ], }, engine => { type => 'seq', sequence => [ { type => 'map', mapping => { module => { type => 'str', required => 1, }, config => { type => 'any', }, }, }, ], }, } }, mixins => { type => 'map', mapping => { model => { type => 'seq', sequence => [ { type => 'map', mapping => { module => { type => 'str', required => 1, }, config => { type => 'any', }, }, }, ], }, controller => { type => 'seq', sequence => [ { type => 'map', mapping => { module => { type => 'str', required => 1, }, config => { type => 'any', }, }, }, ], }, view => { type => 'seq', sequence => [ { type => 'map', mapping => { module => { type => 'str', required => 1, }, config => { type => 'any', }, }, }, ], }, debug => { type => 'seq', sequence => [ { type => 'map', mapping => { module => { type => 'str', required => 1, }, config => { type => 'any', }, }, }, ], }, } }, middlewares => { type => 'seq', sequence => [ { type => 'map', mapping => { module => { type => 'str', required => 1, }, config => { type => 'any', }, }, }, ], }, }, }; $schema; } sub routes { # TODO define routes schema } 1;
タグ
このページへのコメント
Angelos::Config::Schema - 鐃夙わ申鐃緒申鐃殉わ申鐃述¥申鐃緒申鐃緒申鐃緒申鐃緒申任鐃 - Seesaa Wiki鐃淑ワ申鐃緒申鐃緒申鐃緒申 for 鐃緒申鐃殉¥申鐃夙フワ申鐃緒申 ≪潟若 c若 http://www.pslcbi.com/moncler2014.html