ContributionsMost RecentMost LikesSolutionsDeclare an API as private in the definition file Is there a way to declare an API as private within the Swagger 2.0 definition file or can it only be set to private when publishing it? Re: Definition not created for Map<<String,Object>> Thanks so much. I should have realized that earlier, but I thought there was a chance you might have seen something like this before. Re: Definition not created for Map<<String,Object>> Hi, Yes, we are generating the definitions from existing Java code in the Spring Boot framework. Since this is a Spring app, we are using springfox-swagger-ui and springfox-swagger2, both are version 2.9.2. I got around the validation issues by manually editing the files until they pass validation, but I'd rather not do this all the time. Is this enough information for you? Tom Definition not created for Map<<String,Object>> I'm new to Swagger and I have a problem with a definition file generated for one of our services. The endpoint returns a List<Map<String,Object>> where the Object represents columns in a database record. The Swagger definition file defines the response object as: "responses":{ "200":{ "description":"OK", "schema":{ "type":"array", "items":{ "$ref":"#/definitions/Map«string,object»" } } }, "401":{ "description":"Unauthorized" }, "403":{ "description":"Forbidden" }, "404":{ "description":"Not Found" } }, The $ref definition is not found in the definition file and the file fails validation when validated with swagger-cli. The error message is: Error resolving $ref pointer "example.json#/definitions/Map«string,object»". Token "Map«string,object»" does not exist. Our site admins will not allow definition files that fail this validation to our local SwaggerHub, so this is holding up publishing the API. Does anyone have ideas how to solve this problem and why that token is not created? Solved