Skip to content

Commit

Permalink
make service body parent id optional (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbraswell authored Jul 21, 2024
1 parent 877e36e commit c65b175
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion openapi.json

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions src/models/ServiceBodyCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface ServiceBodyCreate {
* @type {number}
* @memberof ServiceBodyCreate
*/
parentId: number;
parentId?: number;
/**
*
* @type {string}
Expand Down Expand Up @@ -85,7 +85,6 @@ export interface ServiceBodyCreate {
* Check if a given object implements the ServiceBodyCreate interface.
*/
export function instanceOfServiceBodyCreate(value: object): value is ServiceBodyCreate {
if (!('parentId' in value) || value['parentId'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
if (!('description' in value) || value['description'] === undefined) return false;
if (!('type' in value) || value['type'] === undefined) return false;
Expand All @@ -104,7 +103,7 @@ export function ServiceBodyCreateFromJSONTyped(json: any, ignoreDiscriminator: b
}
return {

'parentId': json['parentId'],
'parentId': json['parentId'] == null ? undefined : json['parentId'],
'name': json['name'],
'description': json['description'],
'type': json['type'],
Expand Down
5 changes: 2 additions & 3 deletions src/models/ServiceBodyUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface ServiceBodyUpdate {
* @type {number}
* @memberof ServiceBodyUpdate
*/
parentId: number;
parentId?: number;
/**
*
* @type {string}
Expand Down Expand Up @@ -85,7 +85,6 @@ export interface ServiceBodyUpdate {
* Check if a given object implements the ServiceBodyUpdate interface.
*/
export function instanceOfServiceBodyUpdate(value: object): value is ServiceBodyUpdate {
if (!('parentId' in value) || value['parentId'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
if (!('description' in value) || value['description'] === undefined) return false;
if (!('type' in value) || value['type'] === undefined) return false;
Expand All @@ -104,7 +103,7 @@ export function ServiceBodyUpdateFromJSONTyped(json: any, ignoreDiscriminator: b
}
return {

'parentId': json['parentId'],
'parentId': json['parentId'] == null ? undefined : json['parentId'],
'name': json['name'],
'description': json['description'],
'type': json['type'],
Expand Down
10 changes: 5 additions & 5 deletions src/models/TokenCredentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ export interface TokenCredentials {
* @type {string}
* @memberof TokenCredentials
*/
password: string;
username: string;
/**
*
* @type {string}
* @memberof TokenCredentials
*/
username: string;
password: string;
}

/**
* Check if a given object implements the TokenCredentials interface.
*/
export function instanceOfTokenCredentials(value: object): value is TokenCredentials {
if (!('password' in value) || value['password'] === undefined) return false;
if (!('username' in value) || value['username'] === undefined) return false;
if (!('password' in value) || value['password'] === undefined) return false;
return true;
}

Expand All @@ -52,8 +52,8 @@ export function TokenCredentialsFromJSONTyped(json: any, ignoreDiscriminator: bo
}
return {

'password': json['password'],
'username': json['username'],
'password': json['password'],
};
}

Expand All @@ -63,8 +63,8 @@ export function TokenCredentialsToJSON(value?: TokenCredentials | null): any {
}
return {

'password': value['password'],
'username': value['username'],
'password': value['password'],
};
}

2 changes: 1 addition & 1 deletion src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/


export const BASE_PATH = "https://latest.aws.bmlt.app/main_server".replace(/\/+$/, "");
export const BASE_PATH = "http://localhost:8000/main_server".replace(/\/+$/, "");

export interface ConfigurationParameters {
basePath?: string; // override base path
Expand Down

0 comments on commit c65b175

Please sign in to comment.