良い人ですか?いいえ。!!!!!

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

0
Posted by ≪潟若 c若 2013年12月07日(土) 21:46:13 返信

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

Wiki内検索

フリーエリア

hoge

Wiki内検索

フリーエリア

メンバーのみ編集できます