Skip to content

Commit 4353aef

Browse files
add disclaimer comments to taf and metar schemas
1 parent b5c6104 commit 4353aef

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/lib/apis/zodSchemas/metarSchemas.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const UnitsSchema = z.object({
2424
});
2525

2626
/**
27-
* This schema only contains currently used fields. If you wish to use other fields returned by the API add them below.
27+
* This schema only contains currently used fields. If you wish to use other fields returned by the API add them in this file.
2828
*/
2929
export const MetarSchema = z.object({
3030
station: z.string(),
@@ -41,6 +41,6 @@ export const MetarSchema = z.object({
4141
});
4242

4343
/**
44-
* This type only contains currently used fields. If you wish to use other fields returned by the API add them below.
44+
* This type only contains currently used fields. If you wish to use other fields returned by the API add them in this file.
4545
*/
4646
export type Metar = z.infer<typeof MetarSchema>;

src/lib/apis/zodSchemas/tafSchemas.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@ import { z } from 'zod';
22

33
export const ForecastSchema = z.object({ raw: z.string() });
44

5+
/**
6+
* This schema only contains currently used fields. If you wish to use other fields returned by the API add them in this file.
7+
*/
58
export const TafSchema = z.object({
69
raw: z.string(),
710
station: z.string(),
811
forecast: z.array(ForecastSchema),
912
});
10-
13+
/**
14+
* This type only contains currently used fields. If you wish to use other fields returned by the API add them in this file.
15+
*/
1116
export type TAF = z.infer<typeof TafSchema>;

0 commit comments

Comments
 (0)