Describe the bug
After adding some fields to a (working) record, the generated code fails out of the blue. It fails silently with no error casting or reason. Code generation seems ok (no significant warnings or errors). I have pinpointed the failing reason in the swagger file to be when a record contains more than 30 fields, then the generated code will not return anything from that record.
To Reproduce
Working swagger code
{
"openapi": "3.0.1",
"info": {
"title": "MOrdreAPI",
"version": "637744809542676228"
},
"paths": {
"/FileIO/firms/{frmNo}/orders/{ordNo}/note": {
"get": {
"tags": [
"FileIO"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "ordNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "noteNm",
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "hash",
"in": "query",
"schema": {
"type": "integer",
"format": "int64"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/StringResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/StringResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/StringResult"
}
}
}
}
}
}
},
"/FileIO/firms/{frmNo}/orders/{ordNo}/orderlines/{lnNo}/note": {
"get": {
"tags": [
"FileIO"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "ordNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "lnNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "noteNm",
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "hash",
"in": "query",
"schema": {
"type": "integer",
"format": "int64"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/StringResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/StringResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/StringResult"
}
}
}
}
}
}
},
"/Order/textTypes": {
"get": {
"tags": [
"Order"
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/StringInt32IDictionaryResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/StringInt32IDictionaryResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/StringInt32IDictionaryResult"
}
}
}
}
}
}
},
"/Order/firmCountries": {
"get": {
"tags": [
"Order"
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/Int32IEnumerableResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/Int32IEnumerableResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/Int32IEnumerableResult"
}
}
}
}
}
}
},
"/Order/firms": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "ctry",
"in": "query",
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/FrmIEnumerableResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/FrmIEnumerableResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/FrmIEnumerableResult"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/texts": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "txtTp",
"in": "query",
"schema": {
"$ref": "#/components/schemas/TextTp"
}
},
{
"name": "lang",
"in": "query",
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/TxtIEnumerableResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/TxtIEnumerableResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/TxtIEnumerableResult"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/units": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/UnitIEnumerableResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/UnitIEnumerableResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/UnitIEnumerableResult"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/products": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/ProdIEnumerableResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProdIEnumerableResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/ProdIEnumerableResult"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/products/{prodNo}": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "prodNo",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/ProdResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProdResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/ProdResult"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/offices": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/R10IEnumerableResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/R10IEnumerableResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/R10IEnumerableResult"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/offices/{rNo}": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "rNo",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/R10IEnumerableResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/R10IEnumerableResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/R10IEnumerableResult"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/sections": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "r10",
"in": "query",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/R1IEnumerableResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/R1IEnumerableResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/R1IEnumerableResult"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/sections/{rNo}": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "rNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/R1Result"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/R1Result"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/R1Result"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/customers/{custNo}": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "custNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/ActorCustomerResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/ActorCustomerResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/ActorCustomerResult"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/actors/{actNo}/deliveryAddresses": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "actNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/ActorDeliveryAddressIEnumerableResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/ActorDeliveryAddressIEnumerableResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/ActorDeliveryAddressIEnumerableResult"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/actors/{actNo}/contactPersons": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "actNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/ActorContactPersonIEnumerableResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/ActorContactPersonIEnumerableResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/ActorContactPersonIEnumerableResult"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/offices/{r10}/work": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "r10",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/WorkResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/WorkResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/WorkResult"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"ActorContactPerson": {
"type": "object",
"properties": {
"frmNo": {
"type": "integer",
"format": "int32"
},
"actNo": {
"type": "integer",
"format": "int32"
},
"nm": {
"type": "string",
"nullable": true
},
"ad1": {
"type": "string",
"nullable": true
},
"ad2": {
"type": "string",
"nullable": true
},
"pNo": {
"type": "string",
"nullable": true
},
"ad4": {
"type": "string",
"nullable": true
},
"pArea": {
"type": "string",
"nullable": true
},
"mobPh": {
"type": "string",
"nullable": true
},
"phone": {
"type": "string",
"nullable": true
},
"mailAd": {
"type": "string",
"nullable": true
},
"ctry": {
"type": "integer",
"format": "int32"
},
"noteNm": {
"type": "string",
"nullable": true
},
"noteHash": {
"type": "integer",
"format": "int64",
"nullable": true,
"readOnly": true
}
},
"additionalProperties": false
},
"ActorContactPersonIEnumerableResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ActorContactPerson"
},
"nullable": true
}
},
"additionalProperties": false
},
"ActorCustomer": {
"type": "object",
"properties": {
"frmNo": {
"type": "integer",
"format": "int32"
},
"actNo": {
"type": "integer",
"format": "int32"
},
"nm": {
"type": "string",
"nullable": true
},
"ad1": {
"type": "string",
"nullable": true
},
"ad2": {
"type": "string",
"nullable": true
},
"ad4": {
"type": "string",
"nullable": true
},
"pNo": {
"type": "string",
"nullable": true
},
"pArea": {
"type": "string",
"nullable": true
},
"mobPh": {
"type": "string",
"nullable": true
},
"phone": {
"type": "string",
"nullable": true
},
"mailAd": {
"type": "string",
"nullable": true
},
"ctry": {
"type": "integer",
"format": "int32"
},
"noteNm": {
"type": "string",
"nullable": true
},
"noteHash": {
"type": "integer",
"format": "int64",
"nullable": true,
"readOnly": true
},
"custNo": {
"type": "integer",
"format": "int32"
},
"crSusp": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
"ActorCustomerResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"$ref": "#/components/schemas/ActorCustomer"
}
},
"additionalProperties": false
},
"ActorDeliveryAddress": {
"type": "object",
"properties": {
"frmNo": {
"type": "integer",
"format": "int32"
},
"actNo": {
"type": "integer",
"format": "int32"
},
"nm": {
"type": "string",
"nullable": true
},
"ad1": {
"type": "string",
"nullable": true
},
"ad2": {
"type": "string",
"nullable": true
},
"ad4": {
"type": "string",
"nullable": true
},
"pNo": {
"type": "string",
"nullable": true
},
"pArea": {
"type": "string",
"nullable": true
},
"mobPh": {
"type": "string",
"nullable": true
},
"phone": {
"type": "string",
"nullable": true
},
"mailAd": {
"type": "string",
"nullable": true
},
"ctry": {
"type": "integer",
"format": "int32"
},
"noteNm": {
"type": "string",
"nullable": true
},
"noteHash": {
"type": "integer",
"format": "int64",
"nullable": true,
"readOnly": true
}
},
"additionalProperties": false
},
"ActorDeliveryAddressIEnumerableResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ActorDeliveryAddress"
},
"nullable": true
}
},
"additionalProperties": false
},
"Frm": {
"type": "object",
"properties": {
"frmNo": {
"type": "integer",
"format": "int32"
},
"nm": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"FrmIEnumerableResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Frm"
},
"nullable": true
}
},
"additionalProperties": false
},
"Int32IEnumerableResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
},
"nullable": true
}
},
"additionalProperties": false
},
"Ord": {
"type": "object",
"properties": {
"frmNo":{
"type": "integer",
"format": "int32"
},
"ordNo": {
"type": "integer",
"format": "int32"
},
"r1": {
"type": "string",
"nullable": true
},
"r2": {
"type": "string",
"nullable": true
},
"r10": {
"type": "string",
"nullable": true
},
"r11": {
"type": "string",
"nullable": true
},
"empNo": {
"type": "integer",
"format": "int32"
},
"rsp": {
"type": "integer",
"format": "int32"
},
"custNo": {
"type": "integer",
"format": "int32"
},
"nm": {
"type": "string",
"nullable": true
},
"ctry": {
"type": "integer",
"format": "int32"
},
"delAd1": {
"type": "string",
"nullable": true
},
"delAd2": {
"type": "string",
"nullable": true
},
"delAd4": {
"type": "string",
"nullable": true
},
"delPArea": {
"type": "string",
"nullable": true
},
"cfDelDt": {
"type": "integer",
"format": "int32"
},
"gr": {
"type": "integer",
"format": "int32"
},
"gr2": {
"type": "integer",
"format": "int32"
},
"gr6": {
"type": "integer",
"format": "int32"
},
"ourRef": {
"type": "string",
"nullable": true
},
"yrRef": {
"type": "string",
"nullable": true
},
"csOrdNo": {
"type": "string",
"nullable": true
},
"label": {
"type": "string",
"nullable": true
},
"inf": {
"type": "string",
"nullable": true
},
"inf2": {
"type": "string",
"nullable": true
},
"inf3": {
"type": "string",
"nullable": true
},
"inf4": {
"type": "string",
"nullable": true
},
"inf5": {
"type": "string",
"nullable": true
},
"inf6": {
"type": "string",
"nullable": true
},
"noteNm": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"OrdLn": {
"type": "object",
"properties": {
"frmNo": {
"type": "integer",
"format": "int32"
},
"ordNo": {
"type": "integer",
"format": "int32"
},
"lnNo": {
"type": "integer",
"format": "int32"
},
"prodNo": {
"type": "string",
"nullable": true
},
"descr": {
"type": "string",
"nullable": true
},
"r1": {
"type": "integer",
"format": "int32"
},
"cfDelDt": {
"type": "integer",
"format": "int32"
},
"durDt": {
"type": "integer",
"format": "int32"
},
"noteNm": {
"type": "string",
"nullable": true
},
"noteHash": {
"type": "integer",
"format": "int64",
"nullable": true,
"readOnly": true
}
},
"additionalProperties": false
},
"Prod": {
"type": "object",
"properties": {
"prodNo": {
"type": "string",
"nullable": true
},
"descr": {
"type": "string",
"nullable": true
},
"prodTp3": {
"type": "integer",
"format": "int32"
},
"prodGr": {
"type": "integer",
"format": "int32"
},
"prodPrG2": {
"type": "integer",
"format": "int32"
},
"stSaleUn": {
"type": "integer",
"format": "int32"
},
"webPg2": {
"type": "string",
"nullable": true
},
"r3": {
"type": "integer",
"format": "int32"
},
"r4": {
"type": "integer",
"format": "int32"
},
"procMt": {
"type": "integer",
"format": "int32"
},
"excPrint": {
"type": "integer",
"format": "int32"
},
"editPref": {
"type": "integer",
"format": "int32"
},
"edFmt": {
"type": "integer",
"format": "int32"
},
"specFunc": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
"ProdIEnumerableResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Prod"
},
"nullable": true
}
},
"additionalProperties": false
},
"ProdResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"$ref": "#/components/schemas/Prod"
}
},
"additionalProperties": false
},
"R1": {
"type": "object",
"properties": {
"rNo": {
"type": "integer",
"format": "int32"
},
"r10": {
"type": "string",
"nullable": true
},
"nm": {
"type": "string",
"nullable": true
},
"mailAd": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"R10": {
"type": "object",
"properties": {
"rNo": {
"type": "string",
"nullable": true
},
"nm": {
"type": "string",
"nullable": true
},
"mailAd": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"R10IEnumerableResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/R10"
},
"nullable": true
}
},
"additionalProperties": false
},
"R1IEnumerableResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/R1"
},
"nullable": true
}
},
"additionalProperties": false
},
"R1Result": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"$ref": "#/components/schemas/R1"
}
},
"additionalProperties": false
},
"StringInt32IDictionaryResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"type": "object",
"additionalProperties": {
"type": "integer",
"format": "int32"
},
"nullable": true
}
},
"additionalProperties": false
},
"StringResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"TextTp": {
"enum": [
16,
21,
48,
53
],
"type": "integer",
"format": "int32"
},
"Txt": {
"type": "object",
"properties": {
"txtNo": {
"type": "integer",
"format": "int32"
},
"txt": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"TxtIEnumerableResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Txt"
},
"nullable": true
}
},
"additionalProperties": false
},
"Unit": {
"type": "object",
"properties": {
"un": {
"type": "integer",
"format": "int32"
},
"descr": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"UnitIEnumerableResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Unit"
},
"nullable": true
}
},
"additionalProperties": false
},
"Work": {
"type": "object",
"properties": {
"ords": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Ord"
},
"nullable": true
},
"ordLns": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OrdLn"
},
"nullable": true
}
},
"additionalProperties": false
},
"WorkResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"$ref": "#/components/schemas/Work"
}
},
"additionalProperties": false
}
}
}
}
Failing swagger code:
{
"openapi": "3.0.1",
"info": {
"title": "MOrdreAPI",
"version": "637747295269157904"
},
"paths": {
"/FileIO/firms/{frmNo}/orders/{ordNo}/note": {
"get": {
"tags": [
"FileIO"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "ordNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "noteNm",
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "hash",
"in": "query",
"schema": {
"type": "integer",
"format": "int64"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/StringResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/StringResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/StringResult"
}
}
}
}
}
}
},
"/FileIO/firms/{frmNo}/orders/{ordNo}/orderlines/{lnNo}/note": {
"get": {
"tags": [
"FileIO"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "ordNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "lnNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "noteNm",
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "hash",
"in": "query",
"schema": {
"type": "integer",
"format": "int64"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/StringResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/StringResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/StringResult"
}
}
}
}
}
}
},
"/Order/textTypes": {
"get": {
"tags": [
"Order"
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/StringInt32IDictionaryResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/StringInt32IDictionaryResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/StringInt32IDictionaryResult"
}
}
}
}
}
}
},
"/Order/firmCountries": {
"get": {
"tags": [
"Order"
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/Int32IEnumerableResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/Int32IEnumerableResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/Int32IEnumerableResult"
}
}
}
}
}
}
},
"/Order/firms": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "ctry",
"in": "query",
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/FrmIEnumerableResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/FrmIEnumerableResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/FrmIEnumerableResult"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/texts": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "txtTp",
"in": "query",
"schema": {
"$ref": "#/components/schemas/TextTp"
}
},
{
"name": "lang",
"in": "query",
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/TxtIEnumerableResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/TxtIEnumerableResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/TxtIEnumerableResult"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/units": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/UnitIEnumerableResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/UnitIEnumerableResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/UnitIEnumerableResult"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/products": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/ProdIEnumerableResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProdIEnumerableResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/ProdIEnumerableResult"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/products/{prodNo}": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "prodNo",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/ProdResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProdResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/ProdResult"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/offices": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/R10IEnumerableResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/R10IEnumerableResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/R10IEnumerableResult"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/offices/{rNo}": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "rNo",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/R10IEnumerableResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/R10IEnumerableResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/R10IEnumerableResult"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/sections": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "r10",
"in": "query",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/R1IEnumerableResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/R1IEnumerableResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/R1IEnumerableResult"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/sections/{rNo}": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "rNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/R1Result"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/R1Result"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/R1Result"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/customers/{custNo}": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "custNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/ActorCustomerResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/ActorCustomerResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/ActorCustomerResult"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/actors/{actNo}/deliveryAddresses": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "actNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/ActorDeliveryAddressIEnumerableResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/ActorDeliveryAddressIEnumerableResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/ActorDeliveryAddressIEnumerableResult"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/actors/{actNo}/contactPersons": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "actNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/ActorContactPersonIEnumerableResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/ActorContactPersonIEnumerableResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/ActorContactPersonIEnumerableResult"
}
}
}
}
}
}
},
"/Order/firms/{frmNo}/offices/{r10}/work": {
"get": {
"tags": [
"Order"
],
"parameters": [
{
"name": "frmNo",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "r10",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/WorkResult"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/WorkResult"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/WorkResult"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"ActorContactPerson": {
"type": "object",
"properties": {
"frmNo": {
"type": "integer",
"format": "int32"
},
"actNo": {
"type": "integer",
"format": "int32"
},
"nm": {
"type": "string",
"nullable": true
},
"ad1": {
"type": "string",
"nullable": true
},
"ad2": {
"type": "string",
"nullable": true
},
"ad4": {
"type": "string",
"nullable": true
},
"pNo": {
"type": "string",
"nullable": true
},
"pArea": {
"type": "string",
"nullable": true
},
"mobPh": {
"type": "string",
"nullable": true
},
"phone": {
"type": "string",
"nullable": true
},
"mailAd": {
"type": "string",
"nullable": true
},
"ctry": {
"type": "integer",
"format": "int32"
},
"noteNm": {
"type": "string",
"nullable": true
},
"noteHash": {
"type": "integer",
"format": "int64",
"nullable": true,
"readOnly": true
}
},
"additionalProperties": false
},
"ActorContactPersonIEnumerableResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ActorContactPerson"
},
"nullable": true
}
},
"additionalProperties": false
},
"ActorCustomer": {
"type": "object",
"properties": {
"frmNo": {
"type": "integer",
"format": "int32"
},
"actNo": {
"type": "integer",
"format": "int32"
},
"nm": {
"type": "string",
"nullable": true
},
"ad1": {
"type": "string",
"nullable": true
},
"ad2": {
"type": "string",
"nullable": true
},
"ad4": {
"type": "string",
"nullable": true
},
"pNo": {
"type": "string",
"nullable": true
},
"pArea": {
"type": "string",
"nullable": true
},
"mobPh": {
"type": "string",
"nullable": true
},
"phone": {
"type": "string",
"nullable": true
},
"mailAd": {
"type": "string",
"nullable": true
},
"ctry": {
"type": "integer",
"format": "int32"
},
"noteNm": {
"type": "string",
"nullable": true
},
"noteHash": {
"type": "integer",
"format": "int64",
"nullable": true,
"readOnly": true
},
"custNo": {
"type": "integer",
"format": "int32"
},
"crSusp": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
"ActorCustomerResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"$ref": "#/components/schemas/ActorCustomer"
}
},
"additionalProperties": false
},
"ActorDeliveryAddress": {
"type": "object",
"properties": {
"frmNo": {
"type": "integer",
"format": "int32"
},
"actNo": {
"type": "integer",
"format": "int32"
},
"nm": {
"type": "string",
"nullable": true
},
"ad1": {
"type": "string",
"nullable": true
},
"ad2": {
"type": "string",
"nullable": true
},
"ad4": {
"type": "string",
"nullable": true
},
"pNo": {
"type": "string",
"nullable": true
},
"pArea": {
"type": "string",
"nullable": true
},
"mobPh": {
"type": "string",
"nullable": true
},
"phone": {
"type": "string",
"nullable": true
},
"mailAd": {
"type": "string",
"nullable": true
},
"ctry": {
"type": "integer",
"format": "int32"
},
"noteNm": {
"type": "string",
"nullable": true
},
"noteHash": {
"type": "integer",
"format": "int64",
"nullable": true,
"readOnly": true
}
},
"additionalProperties": false
},
"ActorDeliveryAddressIEnumerableResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ActorDeliveryAddress"
},
"nullable": true
}
},
"additionalProperties": false
},
"Frm": {
"type": "object",
"properties": {
"frmNo": {
"type": "integer",
"format": "int32"
},
"nm": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"FrmIEnumerableResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Frm"
},
"nullable": true
}
},
"additionalProperties": false
},
"Int32IEnumerableResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"type": "array",
"items": {
"type": "integer",
"format": "int32"
},
"nullable": true
}
},
"additionalProperties": false
},
"Ord": {
"type": "object",
"properties": {
"frmNo": {
"type": "integer",
"format": "int32"
},
"ordNo": {
"type": "integer",
"format": "int32"
},
"r1": {
"type": "string",
"nullable": true
},
"r2": {
"type": "string",
"nullable": true
},
"r10": {
"type": "string",
"nullable": true
},
"r11": {
"type": "string",
"nullable": true
},
"empNo": {
"type": "integer",
"format": "int32"
},
"rsp": {
"type": "integer",
"format": "int32"
},
"custNo": {
"type": "integer",
"format": "int32"
},
"nm": {
"type": "string",
"nullable": true
},
"ctry": {
"type": "integer",
"format": "int32"
},
"delAd1": {
"type": "string",
"nullable": true
},
"delAd2": {
"type": "string",
"nullable": true
},
"delAd4": {
"type": "string",
"nullable": true
},
"delPArea": {
"type": "string",
"nullable": true
},
"cfDelDt": {
"type": "integer",
"format": "int32"
},
"gr": {
"type": "integer",
"format": "int32"
},
"gr2": {
"type": "integer",
"format": "int32"
},
"gr6": {
"type": "integer",
"format": "int32"
},
"ourRef": {
"type": "string",
"nullable": true
},
"yrRef": {
"type": "string",
"nullable": true
},
"csOrdNo": {
"type": "string",
"nullable": true
},
"label": {
"type": "string",
"nullable": true
},
"inf": {
"type": "string",
"nullable": true
},
"inf2": {
"type": "string",
"nullable": true
},
"inf3": {
"type": "string",
"nullable": true
},
"inf4": {
"type": "string",
"nullable": true
},
"inf5": {
"type": "string",
"nullable": true
},
"inf6": {
"type": "string",
"nullable": true
},
"noteNm": {
"type": "string",
"nullable": true
},
"noteHash": {
"type": "integer",
"format": "int64",
"nullable": true,
"readOnly": true
}
},
"additionalProperties": false
},
"OrdLn": {
"type": "object",
"properties": {
"frmNo": {
"type": "integer",
"format": "int32"
},
"ordNo": {
"type": "integer",
"format": "int32"
},
"lnNo": {
"type": "integer",
"format": "int32"
},
"prodNo": {
"type": "string",
"nullable": true
},
"descr": {
"type": "string",
"nullable": true
},
"r1": {
"type": "integer",
"format": "int32"
},
"cfDelDt": {
"type": "integer",
"format": "int32"
},
"durDt": {
"type": "integer",
"format": "int32"
},
"noteNm": {
"type": "string",
"nullable": true
},
"noteHash": {
"type": "integer",
"format": "int64",
"nullable": true,
"readOnly": true
}
},
"additionalProperties": false
},
"Prod": {
"type": "object",
"properties": {
"prodNo": {
"type": "string",
"nullable": true
},
"descr": {
"type": "string",
"nullable": true
},
"prodTp3": {
"type": "integer",
"format": "int32"
},
"prodGr": {
"type": "integer",
"format": "int32"
},
"prodPrG2": {
"type": "integer",
"format": "int32"
},
"stSaleUn": {
"type": "integer",
"format": "int32"
},
"webPg2": {
"type": "string",
"nullable": true
},
"r3": {
"type": "integer",
"format": "int32"
},
"r4": {
"type": "integer",
"format": "int32"
},
"procMt": {
"type": "integer",
"format": "int32"
},
"excPrint": {
"type": "integer",
"format": "int32"
},
"editPref": {
"type": "integer",
"format": "int32"
},
"edFmt": {
"type": "integer",
"format": "int32"
},
"specFunc": {
"type": "integer",
"format": "int32"
}
},
"additionalProperties": false
},
"ProdIEnumerableResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Prod"
},
"nullable": true
}
},
"additionalProperties": false
},
"ProdResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"$ref": "#/components/schemas/Prod"
}
},
"additionalProperties": false
},
"R1": {
"type": "object",
"properties": {
"rNo": {
"type": "integer",
"format": "int32"
},
"r10": {
"type": "string",
"nullable": true
},
"nm": {
"type": "string",
"nullable": true
},
"mailAd": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"R10": {
"type": "object",
"properties": {
"rNo": {
"type": "string",
"nullable": true
},
"nm": {
"type": "string",
"nullable": true
},
"mailAd": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"R10IEnumerableResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/R10"
},
"nullable": true
}
},
"additionalProperties": false
},
"R1IEnumerableResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/R1"
},
"nullable": true
}
},
"additionalProperties": false
},
"R1Result": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"$ref": "#/components/schemas/R1"
}
},
"additionalProperties": false
},
"StringInt32IDictionaryResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"type": "object",
"additionalProperties": {
"type": "integer",
"format": "int32"
},
"nullable": true
}
},
"additionalProperties": false
},
"StringResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"TextTp": {
"enum": [
16,
21,
48,
53
],
"type": "integer",
"format": "int32"
},
"Txt": {
"type": "object",
"properties": {
"txtNo": {
"type": "integer",
"format": "int32"
},
"txt": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"TxtIEnumerableResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Txt"
},
"nullable": true
}
},
"additionalProperties": false
},
"Unit": {
"type": "object",
"properties": {
"un": {
"type": "integer",
"format": "int32"
},
"descr": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
},
"UnitIEnumerableResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Unit"
},
"nullable": true
}
},
"additionalProperties": false
},
"Work": {
"type": "object",
"properties": {
"ords": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Ord"
},
"nullable": true
},
"ordLns": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OrdLn"
},
"nullable": true
}
},
"additionalProperties": false
},
"WorkResult": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string",
"nullable": true
},
"data": {
"$ref": "#/components/schemas/Work"
}
},
"additionalProperties": false
}
}
}
}
The only difference between those two is in line 1241 to 1246 in the non-working one:
,
"noteHash": {
"type": "integer",
"format": "int64",
"nullable": true,
"readOnly": true
}
where that section is omitted in the working swagger file, and is the 31'st field in that Ord
record.
Expected behavior
Read the data as the working one
Library version used:
pubspec.yaml:
name: mwork
description: A new Flutter project.
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.0.3+3
environment:
sdk: ">=2.15.0-116.0.dev <3.0.0"
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
msal_js: ^2.14.0
aad_oauth: ^0.3.0
provider: ^6.0.1
path_to_regexp: ^0.4.0
quiver: ^3.0.0
introduction_screen: ^2.1.0
intl: ^0.17.0
socket_io_client: ^2.0.0-beta.4-nullsafety.0
flutter:
sdk: flutter
#--jwt--- makes it possible to analyze jwt
jwt_decode: ^0.3.1
#---Swagger changes---
chopper: ^4.0.4
json_annotation: ^4.4.0
#---Google Maps---
google_maps_flutter: ^2.1.1
google_maps_flutter_web: ^0.3.2
#---Location data (GPS)---
location: ^4.3.0
#---Get---
get: ^4.3.8
#---Settings / preferences ---
flutter_settings_screens: ^0.3.2-null-safety
#---Camera function---
camera: ^0.9.4+5
path_provider: ^2.0.7
path: ^1.8.0
#---Floor functionality---
floor: ^1.2.0
#---Drift functionality---
drift: ^1.0.1
sqlite3_flutter_libs: ^0.5.0
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
#---Icons---
flutter_icons:
android: "launcher_icon"
ios: true
image_path: "assets/icons/logo_round.png"
adaptive_icon_background: "#666666"
dev_dependencies:
flutter_test:
sdk: flutter
#---swagger changes---
build_runner: ^2.1.5
chopper_generator: ^4.0.3
json_serializable: ^6.1.1
swagger_dart_code_generator: ^2.2.7
#---Launcher icons---
flutter_launcher_icons: ^0.9.2
#---floor generators---
floor_generator: ^1.2.0
#---drift generators---
drift_dev: ^1.0.2
# The "flutter_lints" package below contains a set of recommended lints to
# encourage good coding practices. The lint set provided by the package is
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^1.0.0
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/icons/
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
Additional context
Add any other context about the problem here.
bug