cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
michowl
Microsoft
Microsoft

swagger json upload returns error: expects title field

Recieving this message when uploading my json swagger def:

 

An error occured while converting swagger file to WADL file. Error: 'Swagger document does not include required title field'. Your API may not work with apps.

 

I would expect that the title it wants is in info.title which is where swashbuckle's default config placed it.

 

partial of swagger:

{
	"swagger":"2.0",
	"info":
	{
		"version":"v1",
		"title":"My API Title"
	},
	"host":"**removed**",
	"schemes":["https"],
	"paths":{
...[paths removed for brevity]...
	},
	"securityDefinitions":
	{
		"AAD":{
			"type":"oauth2",
			"flow":"implicit",
			"authorizationUrl":"**removed**",
			"scopes":{}
		}
	}
}
11 REPLIES 11
SinanE
Power Apps
Power Apps

Sorry for the inconvenience, we are investigating the issue. If you proceed uploading your file despite this warning, does your custom API work as expected?

 

Thanks.

Yes, the swagger works fine and is usable by both PowerApps and Flow.

mcorning
Responsive Resident
Responsive Resident

i started seeing this error on friday (never before then, and i've been using PowerApps continuously for months) and only after i upgraded PowerApps Studio to 2.0.592.

 

i was unable to use my new custom api after seeing this error. here's what happens when i load the connection in PowerApps Studio.

 

No wadlUrl is specified for this Api. This usually indicates there was an error when converting the Swagger associated with this api to a WADL file.

apiId: /providers/microsoft.powerapps/apis/shared_getgeocodedaddress.5f70024346a22042f4.5fe80ee8a2e1929382

 

 

Session ID: f7dbbf31-4919-03df-0259-88dfc10c8741

 

so it appears there's a relationship between the (missing?) title property and the wadlurl. btw, i have and have always had a title property in the info object of swagger.

 

Was this swagger working fine before?

 

The issue with validation at the time of custom api creation might be hiding actual Swagger errors. We are working on fixing that currently to make sure validation is back in place.

 

Meanwhile, please feel free to send me a private message attaching your swagger json file and I can get that checked up.

 

mcorning
Responsive Resident
Responsive Resident

i would if i had your private email. <g/>

 

i sent everything to archana earlier today.

The fix is live now. Custom api creation should only show actual swagger issues.

mcorning
Responsive Resident
Responsive Resident

i am testing things these days using the simple swagger for default azure functions as http triggers.

 

here is the bulk of the swagger (it still returns the infamous missing title field error).

{
  "swagger": "2.0",
  "info": {
    "version": "2.0.2",
    "title": "deletedToProtectTheGuilty"
  },
  "host": "deletedToProtectTheGuilty.azurewebsites.net",
  "schemes": [
    "https"
  ],
  "paths": {
    "/api/helloName": {
      "get": {
        "description": "Provides a BVT for setting up custom apis and using them in PowerApps.",
        "operationId": "SayHello",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "description": "code",
            "default": "aL6v06/7LM/rBQRk7uolCLUHJaQtLMyxNMs0NJL3ZVFRPM71w1UvMg==",
            "type": "string"
          },
          {
            "name": "Name",
            "in": "query",
            "required": true,
            "type": "string"
          }
        ],
        "responses": {
          "200": {
            "description": "Name",
            "schema": {
              "title": "Hello [Name].",
              "type": "string"
            }
          }
        }
      }
    }
  }
}

 

can you repro on your side?

 

^m

We cannot repro the issue, your swagger should be working. Could you try in a prviate window or clear your browser cache and try again?

mcorning
Responsive Resident
Responsive Resident

interesting...i have not yet seen the error...but the browser is still rendering

"Parsing swagger file..."

 

i'll try everything again and see what happens.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (74,325)