1
假設我有一個YAML的OpenAPI定義OpenAPI的再利用部分不定義一個新的
definitions:
User:
description: "User"
type: "object"
properties:
firstname:
type: "string"
lastname:
type: "string"
password:
type: "string"
email:
type: "string"
username:
type: "string"
這個定義如果在參數規格,我需要一個定義的特定字段我怎麼能是指他們沒有定義另一種模式如下?
definitions:
UserLogin:
description: "User"
type: "object"
properties:
password:
type: "string"
email:
type: "string"