raml-definition-system
Advanced tools
Comparing version 0.0.84 to 0.0.85
@@ -8,9 +8,9 @@ "use strict"; | ||
function handleTypeAnnotation(a, rangeType) { | ||
if (a.name == 'MetaModel.declaresSubTypeOf') { | ||
if (a.name == 'MetaModel.declaresSubTypeOf') { //FIXME should be handled in same way as method annotations | ||
rangeType.getAdapter(services.RAMLService).setExtendedTypeName(a.arguments[0]); | ||
} | ||
if (a.name == 'MetaModel.nameAtRuntime') { | ||
if (a.name == 'MetaModel.nameAtRuntime') { //FIXME should be handled in same way as method annotations | ||
rangeType.setNameAtRuntime(a.arguments[0]); | ||
} | ||
if (a.name == 'MetaModel.description') { | ||
if (a.name == 'MetaModel.description') { //FIXME should be handled in same way as method annotations | ||
rangeType.withDescription(a.arguments[0]); | ||
@@ -21,16 +21,16 @@ } | ||
} | ||
if (a.name == 'MetaModel.requireValue') { | ||
if (a.name == 'MetaModel.requireValue') { //FIXME should be handled in same way as method annotations | ||
rangeType.getAdapter(services.RAMLService).withContextRequirement("" + a.arguments[0], "" + a.arguments[1]); | ||
} | ||
if (a.name == 'MetaModel.referenceIs') { | ||
if (a.name == 'MetaModel.referenceIs') { //FIXME should be handled in same way as method annotations | ||
rangeType.getAdapter(services.RAMLService).withReferenceIs("" + a.arguments[0]); | ||
} | ||
//MetaModel.referenceIs | ||
if (a.name == 'MetaModel.actuallyExports') { | ||
if (a.name == 'MetaModel.actuallyExports') { //FIXME should be handled in same way as method annotations | ||
rangeType.getAdapter(services.RAMLService).withActuallyExports("" + a.arguments[0]); | ||
} | ||
if (a.name == 'MetaModel.convertsToGlobalOfType') { | ||
if (a.name == 'MetaModel.convertsToGlobalOfType') { //FIXME should be handled in same way as method annotations | ||
rangeType.getAdapter(services.RAMLService).withConvertsToGlobal("" + a.arguments[0]); | ||
} | ||
if (a.name == 'MetaModel.allowAny') { | ||
if (a.name == 'MetaModel.allowAny') { //FIXME should be handled in same way as method annotations | ||
rangeType.getAdapter(services.RAMLService).withAllowAny(); | ||
@@ -41,12 +41,12 @@ } | ||
} | ||
if (a.name == 'MetaModel.alias') { | ||
if (a.name == 'MetaModel.alias') { //FIXME should be handled in same way as method annotations | ||
rangeType.getAdapter(services.RAMLService).addAlias("" + a.arguments[0]); | ||
} | ||
if (a.name == 'MetaModel.consumesRefs') { | ||
if (a.name == 'MetaModel.consumesRefs') { //FIXME should be handled in same way as method annotations | ||
rangeType.getAdapter(services.RAMLService).setConsumesRefs(true); | ||
} | ||
if (a.name == 'MetaModel.canInherit') { | ||
if (a.name == 'MetaModel.canInherit') { //FIXME should be handled in same way as method annotations | ||
rangeType.getAdapter(services.RAMLService).withCanInherit("" + a.arguments[0]); | ||
} | ||
if (a.name == 'MetaModel.definingPropertyIsEnough') { | ||
if (a.name == 'MetaModel.definingPropertyIsEnough') { //FIXME should be handled in same way as method annotations | ||
rangeType.getAdapter(services.RAMLService).definingPropertyIsEnough("" + a.arguments[0]); | ||
@@ -53,0 +53,0 @@ } |
"use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
} | ||
return function (d, b) { | ||
@@ -7,0 +10,0 @@ extendStatics(d, b); |
"use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
} | ||
return function (d, b) { | ||
@@ -7,0 +10,0 @@ extendStatics(d, b); |
{ | ||
"name": "raml-definition-system", | ||
"version": "0.0.84", | ||
"version": "0.0.85", | ||
"main": "dist/definitionSystem.js", | ||
@@ -17,3 +17,3 @@ "scripts": { | ||
"know-your-http-well": "0.5.0", | ||
"raml-typesystem": "0.0.89", | ||
"raml-typesystem": "0.0.90", | ||
"ts-structure-parser": "0.0.17", | ||
@@ -20,0 +20,0 @@ "underscore": "1.9.1" |
Sorry, the diff of this file is not supported yet
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 not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
33343
1175244
+ Addedraml-typesystem@0.0.90(transitive)
- Removedraml-typesystem@0.0.89(transitive)
Updatedraml-typesystem@0.0.90