假设我在 yaml 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"