Questions tagged [swagger]

Swagger is a framework implementation for describing, producing, consuming, and visualizing RESTful web services, based on the OpenAPI specification

Filter by
Sorted by
Tagged with
0 votes
1 answer
7 views

OpenAPI spec for abstract classes

I'm using SpringBoot 3.1.3 java17 and I have situation similar to follows. I have a CommonReadOnlyService like this: public class CommonReadOnlyService<T, ID, R extends JpaRepository<T, ID>&...
CoderJammer's user avatar
1 vote
1 answer
383 views

Lockdown failed: TypeError: At intrinsics.Object.groupBy expected boolean not function

lockdown-run.js:17 Lockdown failed: TypeError: At intrinsics.Object.groupBy expected boolean not function lockdown-more.js:99 Protecting intrinsics failed: ReferenceError: harden is not defined (...
PRADYUMN KHANDELWAL's user avatar
1 vote
1 answer
24 views

How to prevent swagger from spreading nested DTO property

I'm creating a query: @Query() query: AnalyticsRequestDTO<G> for my GET endpoint that consist of a DTO that looks like this: export class AnalyticsRequestDTO< G extends GroupableKeys, ...
Aocamilo's user avatar
0 votes
0 answers
14 views

Autorest.PowerShell: build module failed because invalid variable generated

When I want to generate PowerShell module from my swagger I try to run Generate-PowerShellClient.ps1 and see below logs   BSN.IpTables.Cli   Feature/22-add-cli≡  ~1  .\Generate-PowerShellClient....
sorosh_sabz's user avatar
  • 2,356
0 votes
0 answers
10 views

ASP.Net Core and React.js : Swagger gets 404 error

I'm on a new project using ASP.Net core and react app for the first time. I wanted to try endpoints via swagger and followed some of stackoverflow responses to make swagger work. But when i try the ...
Enzo Boudart's user avatar
0 votes
0 answers
6 views

OASDiff circular dependecy issue

I'm currently using OASDiff to track changes in a Swagger REST API, and I've encountered an issue with circular dependencies in my JSON schema. Unfortunately, I can't modify the JSON schema to resolve ...
Darshil Shah's user avatar
0 votes
0 answers
25 views

Can't access External url from Swagger

I configured Swagger in my project and it handles GET, POST and DELETE requests normally. However, in my project, clicking on one of these requests requires redirecting to another web resource, for ...
zlobeen's user avatar
0 votes
0 answers
7 views

How to add swagger security defintion to all of my rpc methods in grpc-gateway

service ActorDefinitionServices { rpc GetActorDefinition(GetActorDefinitionRequest) returns (GetActorDefinitionResponse) { option (google.api.http) ={ get: "/v1/reverseetl/...
Razi Ahmad's user avatar
0 votes
0 answers
9 views

Openapi 6.6.0 / 7 maven plugin for spring does not generate import statement for @JsonIgnoreProperties

In both versions openapi 6.6.0 / 7 maven spring generator with schema having discriminator, generates @JsonIgnoreProperties but the java file does have import statement for com.fasterxml.jackson....
bmk's user avatar
  • 1
0 votes
2 answers
35 views

Trying to integrate Spring Boot and SWAGGER but getting the "org.springframework.beans.factory.UnsatisfiedDependencyException: "

I'm trying to integrate Swagger in spring boot My config <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</...
Goutham's user avatar
  • 39
0 votes
0 answers
10 views

flask_smorest swagger-ui get parameter description

I am using FLASK smores form my RESTapi application an have problem with documentation. I would like to have custom text in description field with name of possible parameters an default one. Swagger @...
Pawel's user avatar
  • 1
0 votes
0 answers
19 views

Getting 401 while calling the API in swagger but not through Postman

We've swagger implemented in our spring boot application using swagger-maven-plugin version 3.1.5 in pom.xml. The scheme is only https, basePath is just / and version is v1 While calling the api in ...
Abhijit's user avatar
  • 25
0 votes
0 answers
20 views

File Upload and Metadata using OpenAPI 3.0 from Swagger UI

I'm trying to migrate from spring boot 2 to spring boot 3 openApi following code(swagger 2) that uploads a file and a metadata string as parameters: @ApiOperation(value = "Upload Document and ...
Maxim Z's user avatar
0 votes
0 answers
10 views

Swagger-ui config overwrite

I have swagger running on my k8 cluster. I'm trying to override the default petshop url with environment variables in my deployment.yaml. This works well with a URL. Only when I try with two URLs as ...
Dennis van Putten's user avatar
0 votes
0 answers
14 views

When deployed on Vercel, my swagger ui shows a blank page (NodeJs NestJS Swagger)

Im having the follow issue, on localhost it works fine, and, on AWS EC2 server too, but when i deply the application on Vercel, the path that should show my Swagger UI (like: localhost:8080/swagger), ...
Edison Matos's user avatar
1 vote
1 answer
11 views

i want to add two Version to config.SwaggerDoc in services.AddSwaggerGen for implemet swagger

I want to add two Versions to the config.SwaggerDoc in services.AddSwaggerGen to implement Swagger for example: services.AddSwaggerGen( config => { ...
elham hassanzadeh's user avatar
0 votes
0 answers
8 views

ApiProperty for unknown key/value pair in NestJS Swagger

I am using Nest (v10). I have a DTO that defines a response: export class ProfileDto { @ApiProperty({ example: 'Michael' }) name: string; @ApiProperty({ example: 'Johnson' }) surname: string; ...
Mike M's user avatar
  • 4,879
1 vote
1 answer
32 views

Generate Swagger/OpenAPI 2.0 yaml spec file from a Spring Boot 3.0 project

I need to generate a Swagger/OpenApi (preferably 2.0) .yaml spec file for an existing Spring Boot 3.0 restful api project. I don't want to have a swagger-ui page because this project isn't meant to be ...
BlueBoy's user avatar
  • 807
-3 votes
0 answers
39 views

NullableValueHandling set to ignore still instantiating object with null values [closed]

I have the following endpoint used to get a person: /// Endpoint signature public Person GetPerson([FromBody] Person person) /// Person class public class Person { [JsonProperty] public ...
turkr's user avatar
  • 37
0 votes
1 answer
11 views

I'm using OpenAPI (Swagger) to generate my node-express code. I'm getting duplicate imports (modal) for this file (invites.ts)

This is the config for swagger ui /schema/config.yaml Invite: type: object x-mongo-schema: true properties: uid: type: string description: The unique identifier of the invite. ...
Harsh Boricha's user avatar
0 votes
1 answer
20 views

How do I provide a definition for my Azure Function C# swagger UI GET parameter

I am working on writing swagger for some azure functions written in C#, but can't figure out how to add an example parameter or a definition for what the parameter should be. My code as written looks ...
Aaron Manill's user avatar
0 votes
1 answer
18 views

Open API v3- get rid of type from schema

we are migrating one of our project from swagger v2 to OpenAPI v3 version and we are facing a scenario where the header has no type. i.e., manually updating the generated swagger file for the header ...
Prathyusha's user avatar
-2 votes
0 answers
23 views

The constraint reference ' length' could not be resolved to a type [closed]

Swagger doesn't run & throws the Error in .NET Core API Project: The constraint reference ' length' could not be resolved to a type. Register the constraint type with 'Microsoft.AspNetCore.Routing....
Abhishek Prasad's user avatar
-1 votes
2 answers
17 views

ASP.NET Core Swagger error: "Fetch error Internal Server Error"

I'm using all the latest Nuget Packages for ASP.NET Core Rest Server with Swagger I cannot find how to fix the error described at the bottom (with code also). I tried: Adding Route attribute Adding a ...
Eric Ouellet's user avatar
0 votes
0 answers
12 views

Nginx + Dotnet Docker - Upstream Connection Closed Prematurely

I am using docker container for my Dotnet WebApi using swagger and PostgreSQL. I am trying to connect nginx with dotnet on port 5083, when I use example.com:5083/swagger/index.html to GET api content, ...
Asit Sonawane's user avatar
0 votes
0 answers
38 views

Get all path variables & query parameters including their type

Is there way how to obtain all path variables & request parameters (query parameters) including their type? I need given request parameters type (and not just String), because I'm forwarding such ...
sasynkamil's user avatar
0 votes
1 answer
12 views

AuthorizationFilterContext can not get content

I am using Microsoft.AspNetCore.Authentication.JwtBearer Microsoft.AspNetCore.Authentication.OpenIdConnect I have written code: [Authorize] [ApiVersion("1.0")] [ApiController] ...
jie xiao's user avatar
0 votes
0 answers
18 views

How to add common headers using springdoc-openapi v2.2.0

I use springdoc-openapi v2.2.0 to generate the swagger document. <dependency> <groupId>org.springdoc</groupId> <artifactId>springdoc-openapi-starter-webmvc-ui</...
ildvzg68472's user avatar
0 votes
1 answer
16 views

Hide specific swagger properties for specific endpoints from a same DTO in NestJs

I have a Nest Js UpdateUserDTO with 6 properties in it, annotated with @ApiProperty(), and I have three different endpoints in my controller. Now I want to use 4 of them for endpoint 1 , 2 of them for ...
M Nouman's user avatar
  • 449
2 votes
0 answers
27 views

Default Param value for Gin-Swagger

I am using gin-swagger to prepare an OpenAPI for my Go project. I have a gorm struct that includes a time.Time parameter called Published. type Book struct { gorm.Model `swaggerignore:"true&...
محمد جعفر نعمة's user avatar
1 vote
1 answer
24 views

OpenAPI: Conditional schema of one parameter depending on value of another

Hi have an OpenAPI specification which contains following: { "/mypath" : { "get": { ... "parameters" : [ { "in": "query&...
S-Man's user avatar
  • 22.6k
1 vote
1 answer
25 views

openAPI polymorphism - getting generated file to extend another schema

so im pretty new to openAPI and trying to get one schema to extend another. I have it working to a certain extent in that I have two objects, a vehicle and a car (which should extend the vehicle ...
J145's user avatar
  • 619
0 votes
1 answer
40 views

Set up Swagger in a Spring Boot project in microservices

I am developing a microservices project consisting of the following applications: -Discovery Server -Gateway -Elemental Service (the main microservice) -Chat Service (microservice that manages a chat ...
Simone Campisi's user avatar
0 votes
0 answers
11 views

FastAPI - Swagger, Is there a way to apply a global dropdown menu for organizing schemas?

Working on Backend with Django, FastAPI, and Swagger. I've been tasked with creating a dropdown list (similar to the one in the image) where I should be able to select schemas related to any of the ...
JA VHM's user avatar
  • 1
0 votes
2 answers
36 views

Broken Site due to Incorrect ASP .NET Core Query Usage?

I'm trying to get my website built with Swagger in ASP .NET Core to work, however, I'm having some trouble (maybe some confusion?) as to how to specify query parameters. This specific API calls seems ...
bob123123123123's user avatar
1 vote
0 answers
20 views

How to add common headers using spring fox 3

I use spring fox 3 to generate the swagger document. <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-boot-starter</...
ildvzg68472's user avatar
0 votes
0 answers
15 views

ERROR 404 WHEN I TRY THIS LINK http://localhost:8080/swagger-ui.html

Im trying to document my spring boot proyect, but when i enter the link http://localhost:8080/swagger-ui.html, the page is white and there is only a 404 error. Im using java 8 and spring boot 2.7.0 ...
Pastelito 7u7's user avatar
0 votes
0 answers
18 views

How to use DTO's decorated with NestJS swagger api in NextJS

I found solution in - How to use NX DTO libraries decorated with NestJS swagger api in frontend frameworks But this solution work fine only with next dev. When I call next build I got error like ...
webivan's user avatar
  • 51
0 votes
1 answer
41 views

Swagger for Nestjs with Azure functions - Not working

We are developing azure functions with nestjs using @nestjs/azure-func-http https://trilon.io/blog/deploy-nestjs-azure-functions The swagger is not loading for the function app. It works only at nest ...
Aneena's user avatar
  • 1
0 votes
0 answers
10 views

swagger open api generator and enums with custom names

i'am using swagger to generate an enum in java in open generator tool , and I have the following swagger : enum: - A : "activated" - D : "deactivated" - R : "...
Ares's user avatar
  • 81
-1 votes
0 answers
26 views

Generating REST API using instaAPI (inmemory) can be saved as generated files?

I was able to setup this instapi using vs2022 preview and it shows the APIs generated It shows as swagger, is there a possibility to have them as generated APIs source code? Both workingapi and ...
sahridhayan's user avatar
0 votes
0 answers
11 views

Fetch error Internal Server Error /swagger.json

i am using hapi-swagger in node project. Swagger using for api documentation. but getting error Fetch error Internal Server Error /swagger.json code i am using for swagger is below const server = ...
Malik Naveed's user avatar
0 votes
0 answers
21 views

API gateway config file to call backend service URL

I'm trying to call a Vertex AI endpoint from an API Gateway, but I'm getting a null response when calling the API Gateway URL. I have the following configuration file: swagger: "2.0" info: ...
k.pavan kumar's user avatar
0 votes
1 answer
40 views

how to define return class with wildcard type parameter in Java spring Swagger?

I have a endpoint that has a return type Summary<Top, ? extends Header> I know that swagger cannot autodetect the type here, but is there a way for me to manually define what are the possible ...
Marko Taht's user avatar
  • 1,450
1 vote
1 answer
17 views

Unable to fetch @CustomRequestParam values from swagger

I am getting below error while running API from swagger: 2023-09-14 14:38:07.208 WARN 45800 --- [nio-8080-exec-4] m.w.r.a.GlobalControllerExceptionHandler : Error = [Missing Required Field(s). ...
Nidhi257's user avatar
  • 772
0 votes
0 answers
32 views

Creating an Azure Logic App Custom Connector from a Swagger/OpenAPI file using .NET SDK [closed]

I am currently working on a project where I need to programmatically create an Azure Logic App Custom Connector using a Swagger/OpenAPI file through the .NET SDK. I have been able to do this manually ...
Lukas's user avatar
  • 383
0 votes
1 answer
22 views

Issue with Swagger (login page of the website is shown)

I am very new to Swagger, so this may be a silly question. I installed Swagger on my .net core 6 web app (with React installed). Basically all of the following Swashbuckle.AspNetCore Swashbuckle....
morteza davari's user avatar
0 votes
1 answer
16 views

How to use reference to joi schema with query parameters in swagger-autogen

I am using swagger-autogen to generate API documentation from Joi validations in my Express.js. I have this validation const createCategoryBodySchema = Joi.object().keys({ parentId: Joi.number()....
Armen Sanoyan's user avatar
0 votes
1 answer
38 views

How to include a list property in swagger codegen?

swagger ignores the ComplexItems property. i need the generated axios model for my client app. public class DummyModel { [Key] public Guid Id { get; set; } [Required] public string ...
Benjamin79's user avatar
0 votes
1 answer
57 views

OpenAPI Swagger Link on Spring Boot 2 Erroring Not Found when it redirects

I have a spring boot 2 java application with adding the swagger OpenAPI. I have added the dependency of: // Swagger "io.swagger.core.v3:swagger-models:2.2.9", ...
Patrick Aquilone's user avatar

1
2 3 4 5
241