2017-09-21 152 views

回答

0

no built-in "currency" type。您通常会使用type: number具有可选format修饰符来表示数字式的意义:

type: number 
format: currency 

format可以有任意值,所以你可以使用format: currencyformat: decimal或任何你的工具支持。识别给定的format的工具将把该值映射到相应的类型。

0

OpenAPI 2.0标准最接近典型十进制美元价值的类型似乎是类型,格式浮子,这是一个32位浮点格式(见其他在线讨论如here

相关问题