Questions tagged [swagger-3.0]
121 questions
0
votes
0 answers
In/Out Headers in Swagger v3
I have the latest Springboot application 3.0.4 with WebFlux. I added Swagger UI (v3):
org.springdoc
springdoc-openapi-starter-webflux-ui
2.0.4
…

Max Grigoriev
- 1,021
- 2
- 13
- 29
0
votes
0 answers
How to get an image response in Swagger 3.0
Image response is not coming from swagger,
/Legends/icons:
get:
tags:
- Legend Controller
summary: Get legend icon
description: Proxy for icon request for legends which use one.
operationId: GetLegendIcon
…

user2902919
- 1
- 1
- 2
0
votes
1 answer
Type javax.servlet.http.HttpServletRequest not present, with gradle springfox-swagger2: 3.0
I'm trying to Implement swagger in my spring boot project. I searched on internet and found that springfox 3.0 might not compatible with spring boot 3.0. I tried with the older versions as well. But I'm not able to do that.
I'm using gradle.
ERROR…

M Nouman
- 437
- 1
- 5
- 22
0
votes
0 answers
support same path with different params in swagger 3.0.3
**I have two params
basePath/{a}:
POST
basePath/{b}
GET
But swagger yaml is NOT RECOGNISING path 2 says get not allowed
cannot change url , any other way ?**
Tried rearranging the paths , but apparently swagger sorts the path alphabetically and…

N_M
- 16
- 1
0
votes
1 answer
Swagger UI getting 403 (openapi v3)
I'm using springdoc-openapi-ui for API documentation
org.springdoc
springdoc-openapi-ui
1.6.14
And, following Spring Boot security config.
.
.
public…

himansage
- 1
- 2
0
votes
0 answers
Why swagger truncates long string query parameters? And how can I fix that?
I have an api-part (written in .net) of an application where there is a post-method in the controller that accepts a string value.I am trying to send a request in Swagger with a long string (544743 characters), but in my method I only received a…
0
votes
0 answers
is OpenAPIDeserializer.java memory efficient to parse json node into OpenAPI
I am reading very small yaml files (3 kb to 330 kb) , converting into the JsoneNode and then converting it into OpenAPI objects, while I am deploying my code on a k8 setup, I can see huge memory spike like 500-600 MB during the below code run:…

Vaibhav
- 169
- 6
0
votes
0 answers
swagger3 default value of request header
I have a problem using springboot2.7.3 to integrate swagger3.0.0
I'm trying to set the request header to include a default value, but it didn't work anyway, can you help me?
Below is my configuration:
List…

ProSayJ
- 1
0
votes
1 answer
Swagger yaml file items must be an object error
I converted my jsonschema that works in the script to YAML format for swagger documentation. The issue is that in line 8 (-type: string) swagger shows error: should be object, 'items' must be an object.
type: object
properties:
…

anderex92
- 29
- 4
0
votes
1 answer
Failing to run Java Springboot app with Swagger3
I'm running a SpringBoot (2.2.2.RELEASE) java application with springfox.boot.starter:3.0.0 and when I run it locally from within my Eclipse IDE it works well. The problem is that when I package it as Docker image and run the container then when I…

Shvalb
- 1,835
- 2
- 30
- 60
0
votes
2 answers
Swagger 3 Required Global Request Parameter
I am using Spring Boot 2.5.4 with Swagger 3. I have added one Global Request Parameter as type header and required=true in Swagger Config file .
Swagger UI is correctly showing the required request header in all APIs but the problem is that it's…

Ladu anand
- 646
- 2
- 8
- 30
0
votes
0 answers
Java Spring Boot OpenApi 3 - How to add @Schema for RequestBody?
@PostMapping(produces = "application/json", consumes = "application/json")
public ResponseEntity addBook(
@RequestBody(description = "Book to add.", required = true,
content = @Content(
…

Sam
- 79
- 1
- 12
0
votes
0 answers
Swagger - OpenAPI 3.0 : Defining additionalProperties in RequestBody to represent JSON
I have a REST API which accepts application/json in RequestBody. The keys in the json is not predefined. So I have used additionalProperties in swagger to define this JSON. Also, this json may hold JSONArray also.
The problem is, when…

user3364183
- 11
- 1
0
votes
1 answer
How to generate model class for object with additionalProperties using OpenAPI code generator
I am using additionalPropertes in my OpenAPI definition to refer a map object. The part of my OAS is given below:
Configuration:
title: Configuration Info
type: object
additionalProperties:
type: string
description: The config…

Vithursa Mahendrarajah
- 1,194
- 2
- 15
- 28
0
votes
1 answer
How to describe nested request body in OpenAPI (Swagger) syntax?
I need to describe REST (json) api with OpenAPI (Swagger) syntax. I have stuck at the point when I need to describe nested request body. Please suggest how to make it, lets use as example the next nested request body:
{
"pauses" : [
{"name"…

Владислав Загородний
- 45
- 5