Skip to content

Instantly share code, notes, and snippets.

@fteychene
Created October 18, 2024 10:06
Show Gist options
  • Save fteychene/7e4d0d6dbc048128ee4df09779cc84b1 to your computer and use it in GitHub Desktop.
Save fteychene/7e4d0d6dbc048128ee4df09779cc84b1 to your computer and use it in GitHub Desktop.
{
"openapi": "3.0.1",
"info": {
"title": "App",
"version": "1.0"
},
"paths": {
"/weatherforecast": {
"get": {
"tags": [
"App"
],
"operationId": "GetWeatherForecast",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/WeatherForecast"
}
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"WeatherForecast": {
"type": "object",
"properties": {
"date": {
"type": "string",
"format": "date"
},
"temperatureC": {
"type": "integer",
"format": "int32"
},
"summary": {
"type": "string",
"nullable": true
},
"temperatureF": {
"type": "integer",
"format": "int32",
"readOnly": true
}
},
"additionalProperties": false
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment