Actually no. The only place `null` is a valid value is as a value of extension. 
Having it anywhere else in the definition is invalid and will break tooling.

 

 

 

From: <[email protected]> on behalf of Andy Philpotts 
<[email protected]>
Reply-To: "[email protected]" 
<[email protected]>
Date: Thursday, October 19, 2017 at 11:42
To: Swagger <[email protected]>
Subject: Re: Fetching resource list, Please wait

 

I'm sorry, I intentionally posted a partial JSON, as it is very long, it is 
well formed, I attached the file

 

null is valid in some contexts, and I see it used in places were there are no 
parameters

 

Also, as a comparison, I created an almost empty toy project, and Swagger 
worked just fine there, so it is something with my Web API I suspect

 

I just need guidance on how to dig further, where is the JSON

On Thursday, October 19, 2017 at 2:24:19 PM UTC-4, Ron wrote:

That doesn’t look good at all. `null` is not a valid value, and that’s a 
partial JSON.

 

 

From: <[email protected]> on behalf of Andy Philpotts 
<[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Thursday, October 19, 2017 at 09:14
To: Swagger <[email protected]>
Subject: Fetching resource list, Please wait

 

Running on Windows, in Visual Studio, using the nuget SwashBuckle 5.6.0

 

When I visit the swagger UI I see the main window, but the only content is this 
message

 

    "fetching resource list: http://localhost:53649/swagger/docs/v1; Please 
wait."

 

The javascript console says "Unable to get property 'parameters' of undefined 
or null reference" swagger-ui-min-js (8,1384)

 

The URL mentioned does have data that looks good, so where to I go next to 
diagnose this?

 

{
    "swagger": "2.0",
    "info": {
        "version": "v1",
        "title": "Logical Ink Web API",
        "description": null,
        "termsOfService": null,
        "contact": null,
        "license": null,
        "vendorExtensions": {}
    },
    "host": "localhost:53649",
    "basePath": null,
    "schemes": ["http"],
    "consumes": null,
    "produces": null,
    "paths": {
        "/api/ApplicationInstance/{id}": {
            "$ref": null,
            "get": {
                "tags": ["ApplicationInstance"],
                "summary": "Get an application (smart-set) by id, include it's 
forms and templates as well as\r\nany instances that used the particular visit 
id",
                "description": null,
                "externalDocs": null,
                "operationId": "ApplicationInstance_Get",
                "consumes": [],
                "produces": ["application/json", "text/json"],
                "parameters": [{
                    "$ref": null,
                    "name": "id",

-- 
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.

-- 
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.


-- 
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.

Reply via email to