{"openapi": "3.1.0", "info": {"title": "シルギア 法定相続分・遺留分API", "version": "1.0.0", "description": "登録不要・無料の法定相続分・遺留分のAPI。民法の相続の順位・法定相続分・代襲相続・半血の兄弟姉妹・遺留分の決まりと、基本の組み合わせ37通りの早見表を分数の文字で返します。照合した日を data_version で返します。説明: https://api.shirugear.com/sozokubun/ 。v1 の中では項目を足すことはあっても、名前や意味は変えません（知らない項目は無視してください）。", "termsOfService": "https://api.shirugear.com/terms/", "contact": {"name": "アナライズギア株式会社（シルギア）", "url": "https://shirugear.com/contact"}}, "servers": [{"url": "https://api.shirugear.com"}], "paths": {"/sozokubun/v1/shares.json": {"get": {"summary": "決まりと早見表", "operationId": "getShares", "responses": {"200": {"description": "決まりと早見表", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Shares"}}}}, "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"}}}}}}}, "/sozokubun/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": {"Heir": {"type": "object", "properties": {"role": {"type": "string", "enum": ["spouse", "child", "ascendant", "sibling"]}, "label": {"type": "string"}, "share": {"type": "string", "description": "法定相続分（\"1/4\" などの分数の文字）"}, "reserved": {"type": "string", "description": "遺留分（\"0\" は無し）"}}, "required": ["role", "label", "share", "reserved"]}, "Row": {"type": "object", "properties": {"spouse": {"type": "boolean"}, "kind": {"type": ["string", "null"], "enum": ["children", "parents", "grandparents", "siblings", null]}, "count": {"type": "integer"}, "heirs": {"type": "array", "items": {"$ref": "#/components/schemas/Heir"}}}, "required": ["spouse", "kind", "count", "heirs"]}, "Shares": {"type": "object", "properties": {"name": {"type": "string"}, "rules": {"type": "object", "description": "順位・法定相続分・遺留分の決まり（文と分数の文字）"}, "table": {"type": "array", "items": {"$ref": "#/components/schemas/Row"}}, "data_version": {"type": "string"}}, "required": ["name", "rules", "table", "data_version"]}, "Meta": {"type": "object", "properties": {"data_version": {"type": "string"}, "checked_at": {"type": "string"}, "files": {"type": "array", "items": {"type": "string"}}, "law": {"type": "object"}, "counts": {"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", "counts", "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"]}}}}
