Slide 12
Slide 12 text
© 2022 Cookpad Inc. 12
販売者向けの管理画面 {
required: ["raw", "thawed", "farmed"],
properties: {
category_id: { const: "魚介加工品カテゴリの
ID" },
thawed: { "$ref" => "#/definitions/thawed" },
farmed: { "$ref" => "#/definitions/farmed" },
raw: { "$ref" => "#/definitions/raw" },
},
dependencies: {
thawed: {
oneOf: [
{
properties: {
thawed: { const: true }, # 解凍品だった場合、消費期限
quality_guarantee: { "$ref" =>
"#/definitions/quality_guarantee/definitions/expiration" },
},
},
{
properties: {
thawed: { const: false }, # 非解凍品だった場合、保証消費期限
quality_guarantee: { "$ref" =>
"#/definitions/quality_guarantee/definitions/guarantee_expiration" },
},
},
],
},
},
}