proper types for assetId

This commit is contained in:
Hayden 2024-01-05 13:45:39 -06:00
parent c07ae234ff
commit 50bbb38321
No known key found for this signature in database
GPG key ID: 17CF79474E257545
7 changed files with 7 additions and 7 deletions

View file

@ -2227,7 +2227,7 @@ const docTemplate = `{
"type": "boolean"
},
"assetId": {
"type": "integer"
"type": "string"
},
"description": {
"type": "string"

View file

@ -2220,7 +2220,7 @@
"type": "boolean"
},
"assetId": {
"type": "integer"
"type": "string"
},
"description": {
"type": "string"

View file

@ -245,7 +245,7 @@ definitions:
archived:
type: boolean
assetId:
type: integer
type: string
description:
type: string
fields:

View file

@ -68,7 +68,7 @@ type (
ItemUpdate struct {
ParentID uuid.UUID `json:"parentId" extensions:"x-nullable,x-omitempty"`
ID uuid.UUID `json:"id"`
AssetID AssetID `json:"assetId"`
AssetID AssetID `json:"assetId" swaggertype:"string"`
Name string `json:"name"`
Description string `json:"description"`
Quantity int `json:"quantity"`

View file

@ -2220,7 +2220,7 @@
"type": "boolean"
},
"assetId": {
"type": "integer"
"type": "string"
},
"description": {
"type": "string"

View file

@ -9,7 +9,7 @@ import { sharedUserClient } from "../test-utils";
describe("user should be able to create an item and add an attachment", () => {
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.
*/
async function useLocation(api: UserClient): Promise<[LocationOut, () => Promise<void>]> {

View file

@ -147,7 +147,7 @@ export interface ItemSummary {
export interface ItemUpdate {
archived: boolean;
assetId: number;
assetId: string;
description: string;
fields: ItemField[];
id: string;