Skip to content

Commit 343aa23

Browse files
committed
Facility Category ids now return integers instead of strings
1 parent e13d895 commit 343aa23

12 files changed

Lines changed: 27 additions & 48 deletions

openapi/components/schemas/FacilityCategory.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
type: object
22
properties:
33
id:
4-
type: string
5-
pattern: ^([0-9]{1,3})$
4+
type: integer
65
description: The id for the category.
7-
example: '1'
6+
example: 1
87
name:
98
type: string
109
description: The name of the category.

openapi/components/schemas/FacilityCategoryGroup.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
type: object
22
properties:
33
id:
4-
type: string
5-
pattern: ^([0-9]{1,3})$
4+
type: integer
65
description: The id for the group.
7-
example: '1'
6+
example: 1
87
name:
98
type: string
109
description: The name of the group.

openapi/components/schemas/FacilityCategorySubgroup.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
type: object
22
properties:
33
id:
4-
type: string
5-
pattern: ^([0-9]{1,3})$
4+
type: integer
65
description: The id for the subgroup.
7-
example: '1'
6+
example: 1
87
name:
98
type: string
109
description: The name of the subgroup.

src/gen/schemas/facilityCategory.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
"type": "object",
33
"properties": {
44
"id": {
5-
"type": "string",
6-
"pattern": "^([0-9]{1,3})$",
5+
"type": "integer",
76
"description": "The id for the category.",
8-
"example": "1"
7+
"example": 1
98
},
109
"name": {
1110
"type": "string",
@@ -28,10 +27,9 @@
2827
"type": "object",
2928
"properties": {
3029
"id": {
31-
"type": "string",
32-
"pattern": "^([0-9]{1,3})$",
30+
"type": "integer",
3331
"description": "The id for the group.",
34-
"example": "1"
32+
"example": 1
3533
},
3634
"name": {
3735
"type": "string",
@@ -50,10 +48,9 @@
5048
"type": "object",
5149
"properties": {
5250
"id": {
53-
"type": "string",
54-
"pattern": "^([0-9]{1,3})$",
51+
"type": "integer",
5552
"description": "The id for the subgroup.",
56-
"example": "1"
53+
"example": 1
5754
},
5855
"name": {
5956
"type": "string",

src/gen/schemas/facilityCategoryGroup.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
"type": "object",
33
"properties": {
44
"id": {
5-
"type": "string",
6-
"pattern": "^([0-9]{1,3})$",
5+
"type": "integer",
76
"description": "The id for the group.",
8-
"example": "1"
7+
"example": 1
98
},
109
"name": {
1110
"type": "string",
@@ -24,10 +23,9 @@
2423
"type": "object",
2524
"properties": {
2625
"id": {
27-
"type": "string",
28-
"pattern": "^([0-9]{1,3})$",
26+
"type": "integer",
2927
"description": "The id for the subgroup.",
30-
"example": "1"
28+
"example": 1
3129
},
3230
"name": {
3331
"type": "string",

src/gen/schemas/facilityCategorySubgroup.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
"type": "object",
33
"properties": {
44
"id": {
5-
"type": "string",
6-
"pattern": "^([0-9]{1,3})$",
5+
"type": "integer",
76
"description": "The id for the subgroup.",
8-
"example": "1"
7+
"example": 1
98
},
109
"name": {
1110
"type": "string",

src/gen/types/FacilityCategory.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ import type { FacilityCategoryGroup } from "./FacilityCategoryGroup";
88
export type FacilityCategory = {
99
/**
1010
* @description The id for the category.
11-
* @pattern ^([0-9]{1,3})$
12-
* @type string
11+
* @type integer
1312
*/
14-
id: string;
13+
id: number;
1514
/**
1615
* @description The name of the category.
1716
* @type string

src/gen/types/FacilityCategoryGroup.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ import type { FacilityCategorySubgroup } from "./FacilityCategorySubgroup";
88
export type FacilityCategoryGroup = {
99
/**
1010
* @description The id for the group.
11-
* @pattern ^([0-9]{1,3})$
12-
* @type string
11+
* @type integer
1312
*/
14-
id: string;
13+
id: number;
1514
/**
1615
* @description The name of the group.
1716
* @type string

src/gen/types/FacilityCategorySubgroup.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
export type FacilityCategorySubgroup = {
77
/**
88
* @description The id for the subgroup.
9-
* @pattern ^([0-9]{1,3})$
10-
* @type string
9+
* @type integer
1110
*/
12-
id: string;
11+
id: number;
1312
/**
1413
* @description The name of the subgroup.
1514
* @type string

src/gen/zod/facilityCategoryGroupSchema.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ import { facilityCategorySubgroupSchema } from "./facilityCategorySubgroupSchema
77
import { z } from "zod";
88

99
export const facilityCategoryGroupSchema = z.object({
10-
id: z
11-
.string()
12-
.regex(/^([0-9]{1,3})$/)
13-
.describe("The id for the group."),
10+
id: z.number().int().describe("The id for the group."),
1411
name: z.string().describe("The name of the group."),
1512
description: z.nullable(z.string().describe("The description of the group.")),
1613
subgroups: z.array(z.lazy(() => facilityCategorySubgroupSchema)),

0 commit comments

Comments
 (0)