apibuilder-js
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -31,3 +31,3 @@ import { ApiBuilderAttributeConfig } from './ApiBuilderAttribute'; | ||
readonly plural: string; | ||
readonly discriminator: string | undefined; | ||
readonly discriminator: string; | ||
readonly description: string | undefined; | ||
@@ -34,0 +34,0 @@ readonly deprecation: ApiBuilderDeprecationConfig | undefined; |
@@ -73,3 +73,3 @@ "use strict"; | ||
get: function () { | ||
return this.config.discriminator; | ||
return this.config.discriminator || 'discriminator'; | ||
}, | ||
@@ -76,0 +76,0 @@ enumerable: true, |
@@ -25,2 +25,3 @@ import { ApiBuilderAttributeConfig } from './ApiBuilderAttribute'; | ||
readonly type: import("./ApiBuilderType").ApiBuilderType; | ||
readonly typeName: string; | ||
readonly description: string | undefined; | ||
@@ -27,0 +28,0 @@ readonly deprecation: ApiBuilderDeprecationConfig | undefined; |
@@ -20,2 +20,9 @@ "use strict"; | ||
}); | ||
Object.defineProperty(ApiBuilderUnionType.prototype, "typeName", { | ||
get: function () { | ||
return this.config.type; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
Object.defineProperty(ApiBuilderUnionType.prototype, "description", { | ||
@@ -22,0 +29,0 @@ get: function () { |
{ | ||
"name": "apibuilder-js", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "A reference implementation of API Builder for JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -85,3 +85,3 @@ import { map } from 'lodash'; | ||
get discriminator() { | ||
return this.config.discriminator; | ||
return this.config.discriminator || 'discriminator'; | ||
} | ||
@@ -88,0 +88,0 @@ |
@@ -36,2 +36,6 @@ import { ApiBuilderAttributeConfig } from './ApiBuilderAttribute'; | ||
get typeName() { | ||
return this.config.type; | ||
} | ||
get description() { | ||
@@ -38,0 +42,0 @@ return this.config.description; |
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
289668
9097