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"