Skip to content

Commit

Permalink
Add missing decorator (#173)
Browse files Browse the repository at this point in the history
* fix (interval value): add missing decorator

* fix (package.json): version of json2typescript
  • Loading branch information
tobiasschweizer authored Apr 14, 2020
1 parent 6520ea6 commit 80eb89d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@

/test-framework/node_modules
/test-framework/.yalc
/test-framework/dist
/.tmp
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion test-framework/yalc.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"version": "v1",
"packages": {
"@knora/api": {
"signature": "95f3f3ae3dd4d1cd18ce448b73f1cc98",
"signature": "ab66976f6d0f1b87bf6ad06f3f314072",
"file": true
}
}
Expand Down

0 comments on commit 80eb89d

Please sign in to comment.