diff --git a/.gitignore b/.gitignore index 74689b7d4..cafc064dc 100644 --- a/.gitignore +++ b/.gitignore @@ -35,4 +35,5 @@ /test-framework/node_modules /test-framework/.yalc +/test-framework/dist /.tmp diff --git a/package.json b/package.json index 0fbdb4fea..080286781 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ }, "dependencies": { "@types/jsonld": "^1.5.0", - "json2typescript": "^1.2.3", + "json2typescript": "~1.2.3", "jsonld": "^1.8.0", "rxjs": "~6.4.0" } diff --git a/src/index.ts b/src/index.ts index 73e16e060..1a923d068 100644 --- a/src/index.ts +++ b/src/index.ts @@ -127,7 +127,7 @@ export { CreateListValue } from "./models/v2/resources/values/create/create-list export { CreateTextValueAsString, CreateTextValueAsXml } from "./models/v2/resources/values/create/create-text-value"; export { CreateUriValue } from "./models/v2/resources/values/create/create-uri-value"; export { CreateTimeValue } from "./models/v2/resources/values/create/create-time-value"; -export { CreateGeonameValue } from './models/v2/resources/values/create/create-geoname-value'; +export { CreateGeonameValue } from "./models/v2/resources/values/create/create-geoname-value"; export { ListNodeV2 } from "./models/v2/lists/list-node-v2"; diff --git a/src/models/v2/resources/values/create/create-interval-value.ts b/src/models/v2/resources/values/create/create-interval-value.ts index 79d2c7e20..6077e5d7c 100644 --- a/src/models/v2/resources/values/create/create-interval-value.ts +++ b/src/models/v2/resources/values/create/create-interval-value.ts @@ -1,9 +1,10 @@ -import { JsonProperty } from "json2typescript"; +import { JsonObject, JsonProperty } from "json2typescript"; import { Constants } from "../../../Constants"; import { DecimalConverter } from "../../../custom-converters/decimal-converter"; import { IBaseIntervalValue } from "../type-specific-interfaces/base-interval-value"; import { CreateValue } from "./create-value"; +@JsonObject("CreateIntervalValue") export class CreateIntervalValue extends CreateValue implements IBaseIntervalValue { @JsonProperty(Constants.IntervalValueHasStart, DecimalConverter) diff --git a/test-framework/yalc.lock b/test-framework/yalc.lock index a360950c4..7f4b2b697 100644 --- a/test-framework/yalc.lock +++ b/test-framework/yalc.lock @@ -2,7 +2,7 @@ "version": "v1", "packages": { "@knora/api": { - "signature": "95f3f3ae3dd4d1cd18ce448b73f1cc98", + "signature": "ab66976f6d0f1b87bf6ad06f3f314072", "file": true } }