Hi All,
Im having the following issue, where i try to call multiple data model for
my responses message.
Schema error at
paths./FPDS/balances/casaccount/getCASHBAL/{uinfin}/{ficode}.get.responses[200]is
not exactly one from <#/definitions/response>,<#/definitions/jsonReference>
Jump to line 230
responses:
'200':
description: Successful Response.
headers:
InteractionID:
description: Correlation ID Pair of Request and Response
Message
type: number
Success:
description: Indicator to state whether the request was
successful
type: string
properties:
FI:
"$ref": '#/definitions/FI'
CheckingAcct:
"$ref": '#/definitions/CheckingAcct'
SavingsAcct:
"$ref": '#/definitions/SavingsAcct'
My question is how can i call or retrieve the data models that i wrote
below in my definitions without causing an error in SWAGGER?
definitions:
AuthToken:
description: Authentication Token
type: string
DataFieldProperties:
type: object
properties:
classification:
type: string
maxLength: 1
enum:
- "C"
default: "C"
description: Data classification of data field. Default 'C' -
Confidential.
source:
type: string
maxLength: 1
enum:
- "1"
- "2"
description: Source of data. '1' for Government-verified, '2' for
user provided.
lastupdated:
type: string
format: date
description: Last updated date of data field. See "full-date" in
http://xml2rfc.ietf.org/public/rfc/html/rfc3339.html#anchor14
FI:
type: object
description: Financial Instituion of customer
properties:
AccountID:
type: string
maxLength: 30
description: AccountID of Individual at FI
FIName:
type: string
description: Financial Institution Name
FICode:
type: string
maxLength: 10
description: Financial Institution Name
CheckingAcct:
type: object
description: Customer Checking Account Details
properties:
ProductName:
type: string
maxLength: 30
description: Product Name of the checking account at the FI
example:
ProductCode:
type: string
description: Product Code at the FI
MaskedAccount No:
type: string
description: A masked account number that is use to display to
customer
Current Balance:
type: number
description: Current Balance of account including any pending or in
progress deposits & withdrawls.
example: 3000.00
Available Balance:
type: number
description: Available Amount to withdraw or transfer immediately.
example: 2500.00
Hold Amount:
type: number
description: It represents funds authorized for withdrawl but not
yet withdrawn. Hold amounts are included in the ledger/ book balance but
not available balance.
example: 2800.00
Float Amount:
type: number
description: Total amounts that are not cleared through cheque
collection processs and other activties that are deposited to a checking
account. These funds are unavailable for withdrawl until they are paid by
the drawee bank.
example: 200.00
OverDraft Limit:
type: number
description: Specific Amount allowed to overdraw
example: 1000.00
Available OverDraft Limit:
type: number
description: Amount available under over draft limit amount.
example: 800.00
CCY:
type: string
description: Currency Denominated in this account
example : SGD
Statement Date:
type: string
format: date
description: Date of the last statement (ISO 8601 format ie.
YYYY-MM-DD)
example: 2017-08-14
Account Status:
type: string
description: Current Status of this account (ie. Active, Suspended
or etc)
example: Active
Total Interest Amt:
type: number
description: Total interest in account
example: 380.00
Opening Date:
type: string
format: date
description: Date when the account was opened (ISO 8601 format ie.
YYYY-MM-DD)
example: 2009-09-09
SavingsAcct:
type: object
description: Customer Saving Account Details
properties:
ProductName:
type: string
maxLength: 30
description: Product Name of the checking account at the FI
example: Personal Saving Account
ProductCode:
type: string
description: Product Code at the FI
example: 0500_VC901
MaskedAccount No:
type: string
description: A masked account number that is use to display to
customer
Current Balance:
type: number
description: Current Balance of account including any pending or in
progress deposits & withdrawls.
example: 2000.00
Available Balance:
type: number
description: Available Amount to withdraw or transfer immediately.
example: 1800.00
Hold Amount:
type: number
description: It represents funds authorized for withdrawl but not
yet withdrawn. Hold amounts are included in the ledger/ book balance but
not available balance.
example: 1600.00
Float Amount:
type: number
description: Total amounts that are not cleared through cheque
collection processs and other activties that are deposited to a checking
account. These funds are unavailable for withdrawl until they are paid by
the drawee bank.
example: 200.00
CCY:
type: string
description: Currency Denominated in this account
example: SGD
Statement Date:
type: string
format: date
description: Date of the last statement (ISO 8601 format ie.
YYYY-MM-DD)
example: 2017-08-15
Account Status:
type: string
description: Current Status of this account (ie. Active, Suspended
or etc)
example: Active
Total Interest Amt:
type: number
description: Total interest in account
example: 22.00
Opening Date:
type: string
format: date
description: Date when the account was opened (ISO 8601 format ie.
YYYY-MM-DD)
example: 2001-01-01
--
You received this message because you are subscribed to the Google Groups
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.