Skip to content

Commit e37ec22

Browse files
committed
Make time parameter mandatory in getWeather operation
1 parent d991f80 commit e37ec22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typespec/main.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Weather {
2424

2525
@get
2626
@route("/weather")
27-
op getWeather(@query location: string, @query date?: plainDate, @query time?: plainTime): {
27+
op getWeather(@query location: string, @query date?: plainDate, @query time: plainTime): {
2828
@statusCode statusCode: 200;
2929
@body result: WeatherResult;
3030
};

0 commit comments

Comments
 (0)