Skip to content

Commit

Permalink
Merge pull request #186 from bucha/3.0
Browse files Browse the repository at this point in the history
Added  regex_priority to 0.14 scheme
  • Loading branch information
PGBI committed Nov 17, 2018
2 parents 8eb904f + c842a4f commit e93365a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/kong-schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,7 @@ var schemas = {
type: 'array',
items: {
type: 'string',
enum: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'],
enum: ['HEAD', 'GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'],
},
description: "A list of HTTP methods that match this Route. At least one of hosts, paths, or methods must be set."
},
Expand All @@ -1829,6 +1829,12 @@ var schemas = {
},
description: "A list of paths that match this Route. At least one of hosts, paths, or methods must be set."
},
regex_priority: {
required: false,
type: 'number',
default: '0',
description: "Determines the relative order of this Route against others when evaluating regex paths. Routes with higher numbers will have their regex paths evaluated first. Defaults to 0."
},
strip_path: {
required: false,
type: 'boolean',
Expand Down

0 comments on commit e93365a

Please sign in to comment.