swagger-2.0 Questions

2

Solved

I would like to denote decimal with 2 places and decimal with 1 place in my api documentation. I'm using swagger 2.0, Is there inbuilt defined type or any other 'round' parameter in the specs, or m...
Gillam asked 7/7, 2017 at 10:2

9

Solved

Swagger UI is not loading, Json is loading as expected but issue exists with supported js, css files.
Towland asked 9/1, 2019 at 10:23

3

I have a variable in yml file startDate: type:string format:date I'm using swagger-generater to generate java code from yml. It's generating a startDate variable as below @JsonProperty("star...
Foregut asked 29/3, 2019 at 21:24

3

Solved

I want to add a documentation to my Node.js API, for this I have a YAML file where I put my definitions, the swagger doc is at localhost:5000/api-doc and working fine. Now I have to add Bearer auth...
Fidelfidela asked 28/4, 2020 at 9:36

3

Solved

type": "array", "items": { "type": "string", "enum": ["MALE","FEMALE","WORKER"] } or type": "array", "items": { "type": "string", }, "enum": ["MALE","FEMALE","WORKER"] ? Nothing in the spe...
Choppy asked 27/4, 2016 at 11:35

7

I'm facing issue with Swagger Integration in Spring Boot. Have a look at the code and error snippet. ------------------POM-------------------- <properties> <java.version>1.8</java.v...
Cohberg asked 20/11, 2021 at 6:50

2

Given the following schema definition (which is a valid way to define required properties): MySchema: type: object required: [property1, property2, property3] properties: property1: type: int...
Boomer asked 8/9, 2016 at 10:30

14

Solved

I've just pulled down the latest Swagger from the Git repo (3.0.19) using: https://github.com/swagger-api/swagger-ui.git and updated my API to use the new version. Ran git describe --tags to confi...
Ferree asked 18/7, 2017 at 2:49

9

Solved

Is there a way i can remove the "basic-error-controller" from springfox swagger-ui? Picture:
Ce asked 5/10, 2015 at 5:39

3

I'm trying to use swagger2 in my project but getting below error. "java.lang.IllegalStateException: Failed to introspect Class [springfox.documentation.swagger2.configuration.Swagger2Documentation...
Binetta asked 21/11, 2019 at 11:43

13

Solved

I have an API reference in a Swagger file. I want to create a very simple mock server, so that when I call e.g.: mymockurl.com/users it will return a predefined JSON (no need to connect to a datab...
Molybdenite asked 13/7, 2016 at 7:1

4

I would like to add an example with Swagger in my method, I have tried a few things, but they didn't work. I have my Interface, where I define the method: @Api(value = "test API") @Reques...
Trochelminth asked 13/7, 2022 at 11:15

7

I wanna change my swagger-ui path from localhost:8080/swagger-ui.html to localhost:8080/myapi/swagger-ui.html in springboot redirect is helpless to me
Munition asked 25/7, 2019 at 2:0

13

I have added Swagger to my Spring Boot 2 application: This is my Swagger config: @Configuration @EnableSwagger2 public class SwaggerConfig { @Bean public Docket api() { // @formatter:off ret...
Tantara asked 12/2, 2018 at 14:56

3

Solved

My goal is to set up a simple API for uploading a file via Google Endpoints. This is my simplified OpenAPI specification which is valid according to Swagger validation: swagger: "2.0" info: titl...
Bag asked 2/7, 2019 at 13:54

4

Is there any way of specifying multiple packages when configuring Swagger 2? BeanConfig beanConfig = new BeanConfig(); beanConfig.setVersion("1.0.0"); beanConfig.setResourcePackage("com.company...
Sharonsharona asked 21/7, 2016 at 10:10

3

Solved

I'm currently playing around with my jersey2 rest service. For a better overview of the given service (description, types and so on) I make heavily use of swagger (swagger-jersey2-jaxrs). So I'm a...
Stickleback asked 27/9, 2016 at 11:58

2

Solved

I would like to format my Swagger API descriptions so that they are not simple paragraphs of text. Preferably, I'd like to add a small table to it. I did not find an online reference about text fo...
Repugnance asked 7/10, 2016 at 18:58

2

Solved

I have a C# Web.API project with Swagger and Swashbuckle. I have a model: public class TimeZoneName { public string zoneName { get; } } I have a controller with methods: public string GetL...
Coble asked 30/11, 2016 at 12:19

5

Solved

I am enable swagger2 by @EnableSwagger2. However, when I try to hit "/swagger-ui.html", it first hit my Authentication Filter. Then, I wrote the following code to bypass the authentication check S...
Resting asked 4/4, 2018 at 19:58

1

Solved

I have Swagger specification for an API that looks something like this: swagger: '2.0' info: title: my-api description: My API version: v1 schemes: - https produces: - application/json paths: ...
Cachinnate asked 13/9, 2022 at 3:20

3

Solved

Problem Unable to convert swagger 2.0 into a format which is being affected by Postman import functionality Generated via /swagger.json|yaml Swagger endpoint exposed via dropwizard jetty using...
Protoplasm asked 22/2, 2018 at 14:22

6

Solved

I'm using http://editor.swagger.io to design an API and I get an error which I don't know how to address: Schema error at paths['/employees/{employeeId}/roles'].get.parameters[0] should NOT have a...
Ambassadoratlarge asked 7/8, 2017 at 14:43

4

I'm running a service, where Swagger UI is accessible at: http://serviceURL/swagger-ui.html However, it is behind a proxy, such as: http://proxyURL/serviceName Generated URLs by Swagger UI ar...
Chastain asked 24/3, 2016 at 11:13

5

Solved

How configure django-rest-swagger to get a HTTPS requests? upd: SSL cert is present and ALL app working with it, but swagger make a http requests.

© 2022 - 2024 — McMap. All rights reserved.