By all means (and I appreciate you taking the time to look at this).
Remember the following points.
Pasting this into then json schema validator will give no errors
Pasting it into Postman gives “complaints” about invalid property (2 messages)
Pasting it onto editor swagger gives 3 errors.
As I’ve mentioned before, if you see anything that makes you wonder why I’m doing it one way or the other, keep in mind that I’d never heard of Swagger 3 months ago.
{
"swagger": "2.0",
"info": {
"title": "xxx.Bank.MFBank.Securities",
"version": "1.0.0",
"description": "Get securities"
},
"host": "ourhost",
"basePath": "/our/url",
"schemes": [
"https"
],
"paths": {
"/": {
"post": {
"tags": ["JPB172"],
"summary": "",
"description": "endpoint desc",
"produces": ["application/json"],
"parameters": [
{
"name": "campaign_identity",
"in": "query",
"description": "ID-KAMPANJ - campaign identity",
"required": true,
"type": "integer",
"maximum": 9999,
"minimum": 0
},
{
"name": "approved_process_date",
"in": "query",
"description": "DA-GODKAND - process date approved",
"required": true,
"type": "string",
"maxLength": 10,
"minLength": 10
},
{
"name": "approved_process_time",
"in": "query",
"description": "TI-GODKAND - process time approved",
"required": true,
"type": "string",
"maxLength": 8,
"minLength": 8
},
{
"name": "amount_loan",
"in": "query",
"description": "BL-LANEBELOPP - loan amount",
"required": true,
"type": "integer",
"maximum": 999999999,
"minimum": 0
},
{
"name": "granted_amortization_period",
"in": "query",
"description": "TI-LAN-AMORT - granted amortization period",
"required": true,
"type": "integer",
"maximum": 999,
"minimum": 0
},
{
"name": "solve_client_credits",
"in": "query",
"description": "BL-LAN-LOSA - solve client credits",
"required": true,
"type": "integer",
"maximum": 999999999,
"minimum": 0
},
{
"name": "service_accountno_ica",
"in": "query",
"description": "ID-KONTONR-SERV - service accountno ica",
"required": true,
"type": "string",
"maxLength": 11,
"minLength": 11
},
{
"name": "loan_object",
"in": "query",
"description": "KD-SY-LAN - loan object",
"required": true,
"type": "string",
"maxLength": 2,
"minLength": 2
},
{
"name": "resident_code",
"in": "query",
"description": "KD-BOENDE - resident code",
"required": true,
"type": "string",
"maxLength": 2,
"minLength": 2
},
{
"name": "resident_expences",
"in": "query",
"description": "SU-BOENDE-KOSTN - resident expences",
"required": true,
"type": "integer",
"maximum": 999999,
"minimum": 0
},
{
"name": "number_of_children",
"in": "query",
"description": "KD-ANTAL-BARN - number of children",
"required": true,
"type": "string",
"maxLength": 2,
"minLength": 2
},
{
"name": "child_expences",
"in": "query",
"description": "BL-UNDERH-KOSTN - child expences",
"required": true,
"type": "integer",
"maximum": 999999,
"minimum": 0
},
{
"name": "monthly_alimony",
"in": "query",
"description": "BL-UNDERH-INK - monthly alimony",
"required": true,
"type": "integer",
"maximum": 999999,
"minimum": 0
},
{
"name": "electronic_identified_flag",
"in": "query",
"description": "FL-EL-IDENT - electronic identified flag",
"required": true,
"type": "string",
"maxLength": 1,
"minLength": 1
},
{
"name": "skuld_list",
"in": "query",
"description": "Contains up to 3 JPB172-SKULD",
"type": "array",
"maxItems": 3,
"minItems": 0,
"items": {
"property": {
"name": "code_type_of_loan",
"description": "KD-SKULD - code type of loan",
"required": true,
"type": "string",
"maxLength": 2,
"minLength": 2
},
"property": {
"name": "amount_current_debt",
"description": "SU-SKULD - amount current debt",
"required": true,
"type": "integer",
"maxLength": 99999999,
"minLength": 0
}
}
},
{
"name": "pers-list",
"in": "query",
"description": "Contains up to 2 JPB172-PERS-IN",
"type": "array",
"maxItems": 2,
"minItems": 0,
"items": {
"property": {
"name": "personal_number",
"description": "ID-PERSNR - personal number",
"required": true,
"type": "string",
"maxLength": 12,
"minLength": 12
},
"property": {
"name": "task_timestamp",
"description": "TI-UPPGIFT - task timestamp",
"required": true,
"type": "string",
"maxLength": 26,
"minLength": 26
},
"property": {
"name": "first_name",
"description": "BE-FNAMN - customer's first name",
"required": true,
"type": "string",
"maxLength": 15,
"minLength": 15
},
"property": {
"name": "last_name",
"description": "BE-ENAMN - customer's last name",
"required": true,
"type": "string",
"maxLength": 27,
"minLength": 27
},
"property": {
"name": "street_address",
"description": "AD-UTDELN - street address",
"required": true,
"type": "string",
"maxLength": 35,
"minLength": 35
},
"property": {
"name": "zip_code",
"description": "ID-POSTNR - zip code",
"required": true,
"type": "integer",
"maximum": 99999,
"minimum": 0
},
"property": {
"name": "postal_address",
"description": "AD-POSTSTN - postal address",
"required": true,
"type": "string",
"maxLength": 20,
"minLength": 20
},
"property": {
"name": "co_attn_name",
"description": "BE-NAMN-CO-ATT - co_attn_name",
"required": true,
"type": "string",
"maxLength": 35,
"minLength": 35
},
"property": {
"name": "home-phone_number",
"description": "AD-TELENR - home phone number",
"required": true,
"type": "string",
"maxLength": 15,
"minLength": 15
},
"property": {
"name": "cell-phone_number",
"description": "AD-MOBILNR - cell phone number",
"required": true,
"type": "string",
"maxLength": 15,
"minLength": 15
},
"property": {
"name": "email_address",
"description": "AD-EMAIL - email address",
"required": true,
"type": "string",
"maxLength": 80,
"minLength": 80
},
"property": {
"name": "code_authentication",
"description": "KD-AUTENT-KUND - code authentication",
"required": true,
"type": "string",
"maxLength": 2,
"minLength": 2
},
"property": {
"property": "code_occupation",
"description": "KD-SYSSELSATTNING - code occupation",
"required": true,
"type": "string",
"maxLength": 2,
"minLength": 2
},
"property": {
"name": "monthly_income",
"description": "BL-INKOMST - monthly income",
"required": true,
"type": "integer",
"maximum": 999999999,
"minimum": 0
},
"property": {
"name": "code_loan_protection",
"description": "KD-LANESKYDD - code loan protection",
"required": true,
"type": "string",
"maxLength": 1,
"minLength": 1
},
"property": {
"name": "political_exposed",
"description": "FL-PEP - political exposed",
"required": true,
"type": "string",
"maxLength": 1,
"minLength": 1
},
"property": {
"name": "code_marital_status",
"description": "KD-CIVILSTAND - code marital status",
"required": true,
"type": "string",
"maxLength": 1,
"minLength": 1
},
"property": {
"name": "employer",
"description": "BE-ARBETSGIVARE - employer",
"required": true,
"type": "string",
"maxLength": 50,
"minLength": 50
},
"property": {
"name": "employer_phone_no",
"description": "AD-TELENR-A - employer_phone_no",
"required": true,
"type": "string",
"maxLength": 15,
"minLength": 15
},
"property": {
"name": "year_of_employment",
"description": "DA-ANST-AAAA - year of employment",
"required": true,
"type": "integer",
"maximum": 9999,
"minimum": 0
},
"property": {
"name": "resident_country_code",
"description": "KD-LAND-BOSATT - resident country code",
"required": true,
"type": "string",
"maxLength": 2,
"minLength": 2
},
"property": {
"name": "currency_code",
"description": "KD-VALUTA - currency code",
"required": true,
"type": "string",
"maxLength": 3,
"minLength": 3
}
}
}
],
"responses": {
"200": {
be s "description": "If the value in the argument passed in is
valid, a response will ent back",
"schema": {
"$ref": "#/definitions/JPB172_response"
}
}
},
"x-auth-type": "Application & Application User",
"x-throttling-tier": "Unlimited"
}
}
},
"definitions": {
"JPB172_response": {
"type": "object",
"properties": {
"assignment_number": {
"description": "ID-ARENDE - assignment number",
"type": "integer",
"maximum": 999999999,
"minimum": 0
},
"resolution_code": {
"description": "KD-BESLUT - resolution code",
"type": "string",
"maxLength": 1,
"minLength": 1
},
"resolution_reason-code": {
"description": "KD-BESLUT-ORSAK - resolution reason code",
"type": "integer",
"maximum": 999,
"minimum": 0
},
"employment_code": {
"description": "KD-ANSTALLD - emoloyment code",
"type": "string",
"maxLength": 1,
"minLength": 1
},
"campaign_identity_response": {
"description": "ID-KAMPANJ-UT - campaign identity response",
"type": "integer",
"maximum": 9999,
"minimum": 0
},
"credit_code_head": {
"description": "KD-KRE-STYR - credit code head",
"type": "string",
"maxLength": 6,
"minLength": 6
},
"PERS-list": {
"description": "Contains up to 2 JPB172-PERS-UT",
"type": "array",
"maxItems": 2,
"minItems": 0,
"items": {
"type": "object",
"properties": {
"personal_number": {
"description": "ID-PERSNR - personal number",
"type": "string",
"maxLength": 10,
"minLength": 10
},
"personal_number_century": {
"description": "ID-PERSNR-SEKEL - personal number century",
"type": "integer",
"maximum": 99,
"minimum": 0
},
"first_name": {
"description": "BE-FNAMN - customer's first name",
"type": "string",
"maxLength": 15,
"minLength": 15
},
"last_name": {
"description": "BE-ENAMN - customer's last name",
"type": "string",
"maxLength": 27,
"minLength": 27
},
"street_address": {
"description": "AD-UTDELN - street address",
"type": "string",
"maxLength": 35,
"minLength": 35
},
"zip_code": {
"description": "ID-POSTNR - zip code",
"type": "integer",
"maximum": 99999,
"minimum": 0
},
"postal_address": {
"description": "AD-POSTSTN - postal address",
"type": "string",
"maxLength": 20,
"minLength": 20
},
"reduced_income_amount": {
"description": "BL-INK-REDUCERAD - reduced income amount",
"type": "integer",
"maximum": 999999999,
"minimum": 0
},
"assignment_number_hash": {
"description": "ID-ARENDE-HASH - assignment number hash",
"type": "string",
"maxLength": 70,
"minLength": 70
},
"monthly_alimony": {
"description": "BL-UNDERH-INK - monthly alimony",
"type": "integer",
"maximum": 999999,
"minimum": 0
},
"child_expences": {
"description": "BL-UNDERH-KOSTN - child expences",
"type": "integer",
"maximum": 999999,
"minimum": 0
},
"amortization_means": {
"description": "BE-AMORT - amortization means",
"type": "string",
"maxLength": 20,
"minLength": 20
}
}
}
}
}
}
}
}