Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit 4841b75

Browse files
committed
PATCH: add id to Public Organization Serializer
1 parent ccbfe5a commit 4841b75

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

docs/PublicOrganization.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7+
**id** | **Number** | | [optional] [readonly]
78
**name** | **String** | Name of the organization |
89
**logo** | **String** | | [optional] [readonly]
910

src/model/PublicOrganization.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ class PublicOrganization {
4949
if (data) {
5050
obj = obj || new PublicOrganization();
5151

52+
if (data.hasOwnProperty('id')) {
53+
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
54+
}
5255
if (data.hasOwnProperty('name')) {
5356
obj['name'] = ApiClient.convertToType(data['name'], 'String');
5457
}
@@ -62,6 +65,11 @@ class PublicOrganization {
6265

6366
}
6467

68+
/**
69+
* @member {Number} id
70+
*/
71+
PublicOrganization.prototype['id'] = undefined;
72+
6573
/**
6674
* Name of the organization
6775
* @member {String} name

test/model/PublicOrganization.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@
5454
//expect(instance).to.be.a(bimdata.PublicOrganization);
5555
});
5656

57+
it('should have the property id (base name: "id")', function() {
58+
// uncomment below and update the code to test the property id
59+
//var instane = new bimdata.PublicOrganization();
60+
//expect(instance).to.be();
61+
});
62+
5763
it('should have the property name (base name: "name")', function() {
5864
// uncomment below and update the code to test the property name
5965
//var instane = new bimdata.PublicOrganization();

0 commit comments

Comments
 (0)