java在json招摇中<*>符号代表什么?
我有一个关于json招摇过市的问题。我可以知道什么是<*>;符号在json中的代表
这就是我将json-swagger导入在线编辑器后的格式。什么是<*>;真的是什么意思
CrossCurrencyRequest{
items* {
< * >: CurrencyPairRequest{
amount* number
currencyPair* string
decimalPlace integer($int32)
}
}
}
下面是swagger文件中的定义
definitions:
CrossCurrencyRequest:
type: object
required:
- items
properties:
items:
type: object
additionalProperties:
$ref: '#/definitions/CurrencyPairRequest'
title: CrossCurrencyRequest
我有下面给出的样品要求。如何使请求生成“key1”、“key2”等?因为它似乎不是swagger文件中的预定义对象
Sample request:
{
"items": {
"key1": {
"amount": 1000.123456789,
"currencyPair": "USD-SGD",
"decimalPlace": 5
},
"key2": {
"amount": 1000.12345,
"currencyPair": "USD-IDR"
},
"key3": {
"amount": 1000.12345,
"currencyPair": "USD-ZNH"
}
}
}
共 (0) 个答案