cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
mob
Level: Powered On

JSON UPLOAD DOES NOT WORK: Required property "items" is not present or not a JSON object

we use swagger, and we have a json that works perfectly with swagge (it is also written that the swagger is valid with the green sign at the bottom of the page).

 

But this same json, cannot be uploaded to the powerapps, it says:

powererror.jpg

 

An error occured while converting swagger file to WADL file. Error: 'Required property "items" is not present or not a JSON object at JSON path definitions.HundeVersicherung-typeRequest.properties.input'. Your API may not work with apps.

 

 

what is the problem?

here is my problematic swagger:

 

"HundeVersicherung-typeRequest": {
"title": "HundeVersicherung-typeRequest",
"type": "object",
"properties": {
"worksheetName": {
"type": "string"
},
"input": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"AnzHunde": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "number"
}
}
}
}
},
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"Gotsatz": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"Selbstbeteiligung": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"Nutzung": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"Hundehalterschutz": {
"type": "boolean"
}
}
}
]
},
"output": {
"type": "array",
"items": {
"type": "object",
"properties": {
"TextEinzel": {
"type": "string"
},
"BetragEinzel": {
"type": "number"
},
"TextAggregiert": {
"type": "string"
},
"BetragAggregiert": {
"type": "number"
}
}
}
}
}
}

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: JSON UPLOAD DOES NOT WORK: Required property "items" is not present or not a JSON obje

Hi mob,

 

I am not familiar with API part, but just from your Swagger, I think the issue here should be related with the 

 "items": [
{
"type": "object",

Part. 

If you specify the '"Type", then  

The value MUST be one of the Primitives, array or a model's id.

Please refer to the following article (at github) and see if it would help:

Swagger RESTful API Documentation Specification

Regards

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 REPLY 1
Community Support Team
Community Support Team

Re: JSON UPLOAD DOES NOT WORK: Required property "items" is not present or not a JSON obje

Hi mob,

 

I am not familiar with API part, but just from your Swagger, I think the issue here should be related with the 

 "items": [
{
"type": "object",

Part. 

If you specify the '"Type", then  

The value MUST be one of the Primitives, array or a model's id.

Please refer to the following article (at github) and see if it would help:

Swagger RESTful API Documentation Specification

Regards

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 49 members 4,260 guests
Please welcome our newest community members: