raml-definition-system
Advanced tools
Comparing version 0.0.38 to 0.0.39
@@ -258,3 +258,3 @@ "use strict"; | ||
if (a.arguments[0] == "statusCodes") { | ||
f.withOftenKeys(khttp.statusCodes.map(function (x) { return x.code; })); | ||
f.withOftenKeys(khttp.statusCodes.filter(function (statusCode) { return statusCode.code.indexOf("x") < 0; }).map(function (x) { return x.code; })); | ||
f.setValueDocProvider(function (name) { | ||
@@ -261,0 +261,0 @@ var s = _.find(khttp.statusCodes, function (x) { return x.code == name; }); |
{ | ||
"name": "raml-definition-system", | ||
"version": "0.0.38", | ||
"version": "0.0.39", | ||
"main": "dist/definitionSystem.js", | ||
@@ -17,3 +17,3 @@ "scripts": { | ||
"know-your-http-well": "^0.2.0", | ||
"raml-typesystem": "0.0.44", | ||
"raml-typesystem": "0.0.45", | ||
"ts-structure-parser": "0.0.10", | ||
@@ -20,0 +20,0 @@ "underscore": "^1.8.3" |
@@ -169,13 +169,3 @@ import MetaModel = require("../metamodel") | ||
] | ||
repeat:boolean | ||
$repeat=[ | ||
MetaModel.requireValue("fieldOrParam",true), | ||
MetaModel.description("The repeat attribute specifies that the parameter can be repeated. " + | ||
"If the parameter can be used multiple times, the repeat parameter value MUST be set to 'true'. " + | ||
"Otherwise, the default value is 'false' and the parameter may not be repeated."), | ||
MetaModel.defaultBooleanValue(false), | ||
MetaModel.hide() | ||
] | ||
required: boolean | ||
@@ -351,8 +341,8 @@ $required=[ | ||
patternProperties:TypeDeclaration[]; | ||
$patternProperties=[ | ||
MetaModel.description("JSON schema style syntax for declaring key restricted maps"), | ||
MetaModel.markdownDescription("JSON schema style syntax for declaring key restricted maps. See [[raml-10-spec-map-types|Map Types]]."), | ||
MetaModel.valueDescription("An object whose properties map regular expressions (which are regarded as defining ranges for property names) to types of properties expressed as Inline type declaration or typename.") | ||
] | ||
// patternProperties:TypeDeclaration[]; | ||
// $patternProperties=[ | ||
// MetaModel.description("JSON schema style syntax for declaring key restricted maps"), | ||
// MetaModel.markdownDescription("JSON schema style syntax for declaring key restricted maps. See [[raml-10-spec-map-types|Map Types]]."), | ||
// MetaModel.valueDescription("An object whose properties map regular expressions (which are regarded as defining ranges for property names) to types of properties expressed as Inline type declaration or typename.") | ||
// ] | ||
@@ -359,0 +349,0 @@ discriminator:string |
@@ -262,3 +262,3 @@ /// <reference path="../typings/main.d.ts" /> | ||
if (a.arguments[0]=="statusCodes"){ | ||
f.withOftenKeys(khttp.statusCodes.map(x=>x.code)) | ||
f.withOftenKeys(khttp.statusCodes.filter(statusCode => statusCode.code.indexOf("x") < 0).map(x=>x.code)) | ||
f.setValueDocProvider((name:string)=>{ | ||
@@ -265,0 +265,0 @@ var s= _.find(khttp.statusCodes,x=>x.code==name); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1640417
47268
+ Addedraml-typesystem@0.0.45(transitive)
- Removedraml-typesystem@0.0.44(transitive)
Updatedraml-typesystem@0.0.45