{"openapi": "3.1.0", "info": {"title": "シルギア 年次有給休暇の付与日数API", "version": "1.0.0", "description": "登録不要・無料の年次有給休暇のAPI。労働基準法第39条・労働基準法施行規則第24条の3の付与日数（通常の労働者・比例付与）と、通常か比例付与かを分ける条件、付与日・出勤率・年5日の取得義務・時間単位・時効の決まりを返します。条文から作成し、照合した日を data_version で返します。説明: https://api.shirugear.com/yukyu/ 。v1 の中では項目を足すことはあっても、名前や意味は変えません（知らない項目は無視してください）。", "termsOfService": "https://api.shirugear.com/terms/", "contact": {"name": "アナライズギア株式会社（シルギア）", "url": "https://shirugear.com/contact"}}, "servers": [{"url": "https://api.shirugear.com"}], "paths": {"/yukyu/v1/grant.json": {"get": {"summary": "付与日数の表（通常の労働者・比例付与）と決まり", "operationId": "getGrant", "responses": {"200": {"description": "付与日数の表", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Grant"}}}}, "400": {"description": "URLの形が違う", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "403": {"description": "日本国内以外から", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "404": {"description": "無いファイル", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "405": {"description": "GET/HEAD以外", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}}}, "/yukyu/v1/meta.json": {"get": {"summary": "データの版・条文の版・出典", "operationId": "getMeta", "responses": {"200": {"description": "データの版", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Meta"}}}}, "400": {"description": "URLの形が違う", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "403": {"description": "日本国内以外から", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "404": {"description": "無いファイル", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}, "405": {"description": "GET/HEAD以外", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}}}}}}}}, "components": {"schemas": {"Grant": {"type": "object", "properties": {"name": {"type": "string"}, "stages": {"type": "array", "items": {"type": "object", "properties": {"months": {"type": "integer", "description": "雇入れの日からの継続勤務の月数"}, "label": {"type": "string"}}, "required": ["months", "label"]}, "minItems": 7, "maxItems": 7}, "normal": {"type": "object", "properties": {"days": {"type": "array", "items": {"type": "integer"}, "minItems": 7, "maxItems": 7, "description": "通常の労働者の日数（stages と同じ順）"}}, "required": ["days"]}, "proportional": {"type": "array", "items": {"type": "object", "properties": {"week_days": {"type": "integer", "enum": [1, 2, 3, 4]}, "year_days": {"type": "object", "properties": {"from": {"type": "integer"}, "to": {"type": "integer"}}, "required": ["from", "to"]}, "days": {"type": "array", "items": {"type": "integer"}, "minItems": 7, "maxItems": 7}}, "required": ["week_days", "year_days", "days"]}}, "thresholds": {"type": "object", "properties": {"week_hours": {"type": "number"}, "week_days": {"type": "integer"}, "year_days": {"type": "integer"}, "normal_week_days": {"type": "number"}, "law": {"type": "string"}}, "required": ["week_hours", "week_days", "year_days", "normal_week_days"]}, "rules": {"type": "object", "description": "区分の決め方・付与日・出勤率・年5日の取得義務・時間単位・時効・会社の決まり（文で説明）"}, "data_version": {"type": "string"}}, "required": ["name", "stages", "normal", "proportional", "thresholds", "rules", "data_version"]}, "Meta": {"type": "object", "properties": {"data_version": {"type": "string"}, "checked_at": {"type": "string"}, "files": {"type": "array", "items": {"type": "string"}}, "law": {"type": "object"}, "scope": {"type": "string"}, "sources": {"type": "array", "items": {"type": "object", "properties": {"label": {"type": "string"}, "url": {"type": "string"}}, "required": ["label", "url"]}}}, "required": ["data_version", "checked_at", "files", "law", "scope", "sources"]}, "Error": {"type": "object", "properties": {"error": {"type": "object", "properties": {"status": {"type": "integer"}, "code": {"type": "string", "enum": ["invalid_request", "not_found", "region_not_allowed", "method_not_allowed"]}, "message": {"type": "string"}}, "required": ["status", "code", "message"]}}, "required": ["error"]}}}}
