Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
proper types for assetId
Browse files Browse the repository at this point in the history
  • Loading branch information
hay-kot committed Jan 5, 2024
1 parent c07ae23 commit 50bbb38
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion backend/app/api/static/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2227,7 +2227,7 @@ const docTemplate = `{
"type": "boolean"
},
"assetId": {
"type": "integer"
"type": "string"
},
"description": {
"type": "string"
Expand Down
2 changes: 1 addition & 1 deletion backend/app/api/static/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2220,7 +2220,7 @@
"type": "boolean"
},
"assetId": {
"type": "integer"
"type": "string"
},
"description": {
"type": "string"
Expand Down
2 changes: 1 addition & 1 deletion backend/app/api/static/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ definitions:
archived:
type: boolean
assetId:
type: integer
type: string
description:
type: string
fields:
Expand Down
2 changes: 1 addition & 1 deletion backend/internal/data/repo/repo_items.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/api/openapi-2.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -2220,7 +2220,7 @@
"type": "boolean"
},
"assetId": {
"type": "integer"
"type": "string"
},
"description": {
"type": "string"
Expand Down
2 changes: 1 addition & 1 deletion frontend/lib/api/__test__/user/items.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>]> {
Expand Down
2 changes: 1 addition & 1 deletion frontend/lib/api/types/data-contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export interface ItemSummary {

export interface ItemUpdate {
archived: boolean;
assetId: number;
assetId: string;
description: string;
fields: ItemField[];
id: string;
Expand Down

0 comments on commit 50bbb38

Please sign in to comment.