diff --git a/openapi.yaml b/openapi.yaml index 657348b0..4629ff81 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -6488,6 +6488,10 @@ paths: responses: '200': description: Current weather retrieved successfully + content: + application/json: + schema: + $ref: '#/components/schemas/WeatherApiObjectResponse' /modules/weatherapi/forecast: get: @@ -6536,6 +6540,10 @@ paths: responses: '200': description: Location search results retrieved successfully + content: + application/json: + schema: + $ref: '#/components/schemas/WeatherApiObjectResponse' /departments/weather: get: @@ -6566,6 +6574,7 @@ paths: type: array items: $ref: '#/components/schemas/DepartmentWeatherTimelineEntry' + $ref: '#/components/schemas/DepartmentWeatherTimelineResponse' /modules/entra/users: get: @@ -8336,6 +8345,27 @@ components: $ref: '#/components/schemas/DepartmentWeatherStatus' required: [time, weather, washes, hours, status] + WeatherApiObjectResponse: + allOf: + - $ref: '#/components/schemas/ModuleConfigEnvelopeBase' + - type: object + properties: + data: + type: object + additionalProperties: true + required: [data] + + DepartmentWeatherTimelineResponse: + allOf: + - $ref: '#/components/schemas/ModuleConfigEnvelopeBase' + - type: object + properties: + data: + type: array + items: + $ref: '#/components/schemas/DepartmentWeatherTimelineEntry' + required: [data] + ModuleConfigEntry: type: object properties: