Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e59d5b0487
Fetching contributors…

Cannot retrieve contributors at this time

178 lines (171 sloc) 6.576 kb
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;
Jump to Line
Something went wrong with that request. Please try again.