mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-22 08:35:43 +00:00
proper types for assetId
This commit is contained in:
parent
c07ae234ff
commit
50bbb38321
7 changed files with 7 additions and 7 deletions
|
@ -2227,7 +2227,7 @@ const docTemplate = `{
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"assetId": {
|
"assetId": {
|
||||||
"type": "integer"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
|
|
@ -2220,7 +2220,7 @@
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"assetId": {
|
"assetId": {
|
||||||
"type": "integer"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
|
|
@ -245,7 +245,7 @@ definitions:
|
||||||
archived:
|
archived:
|
||||||
type: boolean
|
type: boolean
|
||||||
assetId:
|
assetId:
|
||||||
type: integer
|
type: string
|
||||||
description:
|
description:
|
||||||
type: string
|
type: string
|
||||||
fields:
|
fields:
|
||||||
|
|
|
@ -68,7 +68,7 @@ type (
|
||||||
ItemUpdate struct {
|
ItemUpdate struct {
|
||||||
ParentID uuid.UUID `json:"parentId" extensions:"x-nullable,x-omitempty"`
|
ParentID uuid.UUID `json:"parentId" extensions:"x-nullable,x-omitempty"`
|
||||||
ID uuid.UUID `json:"id"`
|
ID uuid.UUID `json:"id"`
|
||||||
AssetID AssetID `json:"assetId"`
|
AssetID AssetID `json:"assetId" swaggertype:"string"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
Quantity int `json:"quantity"`
|
Quantity int `json:"quantity"`
|
||||||
|
|
|
@ -2220,7 +2220,7 @@
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"assetId": {
|
"assetId": {
|
||||||
"type": "integer"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { sharedUserClient } from "../test-utils";
|
||||||
describe("user should be able to create an item and add an attachment", () => {
|
describe("user should be able to create an item and add an attachment", () => {
|
||||||
let increment = 0;
|
let increment = 0;
|
||||||
/**
|
/**
|
||||||
* useLocatio sets up a location resource for testing, and returns a function
|
* useLocation sets up a location resource for testing, and returns a function
|
||||||
* that can be used to delete the location from the backend server.
|
* that can be used to delete the location from the backend server.
|
||||||
*/
|
*/
|
||||||
async function useLocation(api: UserClient): Promise<[LocationOut, () => Promise<void>]> {
|
async function useLocation(api: UserClient): Promise<[LocationOut, () => Promise<void>]> {
|
||||||
|
|
|
@ -147,7 +147,7 @@ export interface ItemSummary {
|
||||||
|
|
||||||
export interface ItemUpdate {
|
export interface ItemUpdate {
|
||||||
archived: boolean;
|
archived: boolean;
|
||||||
assetId: number;
|
assetId: string;
|
||||||
description: string;
|
description: string;
|
||||||
fields: ItemField[];
|
fields: ItemField[];
|
||||||
id: string;
|
id: string;
|
||||||
|
|
Loading…
Reference in a new issue