swagger-2.0 Questions

3

While using swagger-editor I create the below YAML that shows an example of the response object. It's properly displaying in the swagger-editor. When I then download the JSON and display it in swag...
Melissiamelita asked 27/1, 2017 at 23:4

2

We are able to use openApi documentation and generate our Java Input classes using the spring swagger-codegen. Also, we can inject the javax.validation annotations when input is generated for commo...

7

Solved

I have a Swagger config like this @EnableSwagger2 @Configuration public class SwaggerConfig { @Bean public Docket api() { List<SecurityScheme> schemeList = new ArrayList<>(); schem...
Shanitashank asked 26/5, 2018 at 17:18

4

I'm building a fuzzer for a REST API that has an OpenAPI (Swagger) definition. I want to test all available path from the OpenAPI definition, generate data to test the servers, analyse responses c...
Croce asked 31/12, 2016 at 13:35

2

I have an enum of other definitions in my Swagger spec: "action": { "title": "Action", "description": "Action to apply to matching requests", "type": "object", "enum": [ {"delayAction": {"$r...
Dashiell asked 19/9, 2016 at 4:27

3

Solved

I'm working in a REST service made with spring-boot, which to this day is documented using springfox-swagger2:2.7.0 (implementation first). The last operation I've added looks like this: @ApiOpera...
Larrylars asked 3/9, 2018 at 10:35

13

I am migrating my project which is based on springMVC to spring boot. it is a multi-module project. I am unable to get the swagger-ui.html up. I have added dispatcher servlet as follows: @Configura...
Preconception asked 23/11, 2018 at 21:14

4

I am trying to add a read-only field for 'House' in this example. The house is another model that I want to be read-only. In this example, the array of Dogs can be set to readOnly without an erro...
Citation asked 18/7, 2018 at 12:34

3

I have an entire API deployed and accessible with Swagger UI. It uses Basic Auth over HTTPS, and one can easily hit the Authorize button and enter credentials and things work great with the nice Tr...
Woden asked 19/7, 2017 at 20:1

4

Solved

I have swagger 2.8.0 and My POJO class is as follows, public class Item { @JsonFormat(pattern="yyyy-MM-dd") private LocalDate date; @JsonFormat(pattern="HH:mm") private LocalTime time; // ...
Thames asked 6/6, 2019 at 5:16

3

Solved

I try to follow these: https://www.dariawan.com/tutorials/spring/documenting-spring-boot-rest-api-springdoc-openapi-3/ How do I deal with annotations like: @ApiModel(value = "Response contain...
Tobacconist asked 11/12, 2019 at 17:46

2

I was provided Swagger 2.0 json files for a RESTful API my project is using. The provider does not have SDK, so I'm using the Swagger files to generate a starting point to use for integrating with ...
Phytology asked 9/3, 2020 at 20:44

20

Solved

Why does springfox-swagger2 UI tell me Unable to infer base url. As far as I know, I am using a typical Swagger spring-boot configuration. As you can see in the screenshot, the swagger-fox url ba...
Lyn asked 22/11, 2017 at 0:38

9

I am trying to use Swagger with Web API. I am just using the "Azure API App" template from the ASP.NET 4.6 templates installed with Visual Studio, which includes the Swashbuckle.Core and the Swagge...
Argo asked 23/1, 2016 at 23:10

3

I just started working on Swagger 2.0 API recently. I am looking for some ways to organize the API documentation. Currently I'm using the @Api(tags = {"Heading1"}) Java annotation to tag ...
Bohn asked 23/1, 2017 at 6:22

5

Solved

How to specify a property as null or a reference? discusses how to specify a property as null or a reference using jsonschema. I'm looking to do the same thing with swagger. To recap the answer to ...
Acidulate asked 1/12, 2016 at 21:10

4

I've added this rows to my .csproj file <Target Name="SwaggerPostBuildTarget" AfterTargets="PostBuildEvent"> <Exec Command="dotnet tool restore"></Exec...

2

Solved

I want to document my project with swagger. I add swagger annotations and io.springfox dependencies to my project but when I run mvn clean package I have a lot of errors: PS D:\parent-project> ...
Hangdog asked 18/9, 2018 at 18:3

2

Solved

I'm trying to implement Swagger on a Java application that has two Application classes due to the fact that one deals with "public" web services and the other deals with "admin" web services. I'm t...
Foolery asked 31/10, 2016 at 20:38

2

I am using Swagger 2 with Springfox. When you click on an endpoint, is there any way to have the Try-it-out mode activated by default, without having to click this button:
Marionmarionette asked 3/5, 2019 at 8:4

16

Solved

My project has Spring Security. Main issue: Not able to access swagger URL at http://localhost:8080/api/v2/api-docs. It says Missing or invalid Authorization header. Screenshot of the browser win...
Paradox asked 7/6, 2016 at 5:25

8

Solved

The Swagger xml comments are not showing in the doc UI, not sure i am missing something here.. atleast someone direct me that this is a bug Step1: Create a new brand new ASP.NET web application We...
Hoxsie asked 27/1, 2021 at 20:44

5

I am building a ASP.NET CORE Web API and using Swagger for the documentation. I have not been able to change the favicon. I have a swagger-ui directory under wwwroot where I have placed my favicon ...

20

Solved

I'm trying to open my self generated swagger specification file my.json with swagger-ui on my local computer. So I downloaded the latest tag v2.1.8-M1 and extracted the zip. Then I went inside the...
Barong asked 22/5, 2015 at 15:22

2

I have a class that looks like this: public class Rule { private RuleType type; //enum private String value; } The enum is: public enum RuleType { TYPE_A, TYPE_B, TYPE_C; } Now each rule ...
Inhospitable asked 31/7, 2018 at 15:21

© 2022 - 2024 — McMap. All rights reserved.