openapi Questions
3
Solved
My Application is Sping MVC not boot.
I'm using springdoc-openapi-ui 1.4.4
also, I added the following imports to one of my @configuration class;
org.springdoc.core.SpringDocConfigProperties.class...
Bifurcate asked 28/8, 2020 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
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
2
Is there a way to describe a json-lines with OpenAPI?
Besides the fact that there seems to be no MIME type for it yet, I'm wondering if it's possible to describe such a response.
In theory my respo...
Twobyfour asked 9/9, 2021 at 19:28
11
I'm having trouble getting this to work. I've started with a working SpringBoot (v2.2.2) app with a working @RestController. To get springdoc to work I've included the following dependency in my po...
Farseeing asked 26/1, 2020 at 19:19
3
I have three path variables for an API. I want to mask one input on Swagger UI with *****.
How can I do this when using Springdoc OpenAPI?
Otha asked 5/10, 2020 at 4:34
5
Solved
I'm trying to hide the entire schemas section of the FastAPI generated swagger docs. I've checked the docs and tried this but the schema section still shows.
@Schema(hidden=True)
class theSchema(...
2
Solved
I have written an web service definition as an OpenAPI document. The openapi-generator-maven-plugin I'm using always generates a whole project with poms and gradle build scripts, but I only need th...
Ottoottoman asked 8/4, 2021 at 6:17
2
Solved
I noticed that in OpenAPI Path Items and some other constructs you have both summary and description fields, what is the difference between those, and what is the purpose of each? For me, they seem...
3
Solved
I have a Django project and I am using Django REST framework. I am using drf-spectacular
for OpenAPI representation, but I think my problem is not tied to this package, it's seems a more generic Op...
Transgression asked 10/7, 2020 at 8:25
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
4
Solved
I am adding swagger UI to my Spring boot application. When I try to access the swagger-ui.html. I get the 404 error.
Config class :
@Configuration
public class SwaggerConfig {
@Bean
public OpenA...
Richella asked 12/12, 2022 at 20:20
5
I have a .NET 5 API using OpenApi.
Is it possible to hide all API endpoints in swagger but the login one until user is authorized with a JWT Bearer Token?
This is the code I use in startup.cs
servi...
Charleton asked 25/1, 2021 at 10:20
2
Solved
I am unable to get OpenAPI spec Swagger "external refs" to work because Swagger rendering gives me an exception.
I must have this to make editing giant swagger documents more manageable s...
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
4
Solved
How to I define in OpenAPI/Swagger if a field is optional or required and what is the default?
1
I'm using Swagger as documentation of my API so that others can use this to build other services reliant on this. I would like to still show the endpoints that are not implemented yet on the UI so ...
Moujik asked 10/12, 2018 at 12:23
5
Solved
How to enable "Authorize" button in springdoc-openapi-ui (OpenAPI 3.0 /swagger-ui.html) for Bearer Token Authentication, for example JWT.
What annotations have to be added to Spring @Controller an...
1
Let's assume I have this definition in my openapi.yml (this is just a madeup example to depict the issue I have):
components:
schemas:
Address:
type: object
properties:
name:
type: string
zi...
Bharal asked 4/10, 2021 at 19:41
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
Solved
I upgraded to Spring boot 3.0.7 and am trying to get my Open API (swagger) working again, with these dependencies (per springdoc):
<dependency>
<groupId>org.springdoc</groupId>
...
Merrilee asked 24/5, 2023 at 15:56
2
Solved
I have the following OpenAPI definition:
swagger: "2.0"
info:
version: 1.0.0
title: Simple API
description: A simple API to learn how to write OpenAPI Specification
schemes:
- https
host: no...
Ventricle asked 18/7, 2018 at 16:57
2
Solved
I want to use a class from a library as a type of a property. Say it is foo.lib.Foo.
What is the right way to properly define it as a type of the property?
SomeDto:
type: object
properties:
foo:...
5
After reading these 2 posts here on Stackoverflow:
How to Solved ErrorException : Required @OA\PathItem() not found
Can't generate API documentation in l5-swagger
I still get an error Required ...
Conference asked 2/3, 2022 at 13:33
2
I am integrate the OpenAPI with my project, when I access the url: http://127.0.0.1:11014/swagger-ui/index.html, shows error like this:
Unable to render this definition
The provided definition does...
Landmark asked 3/6, 2022 at 6:29
© 2022 - 2025 — McMap. All rights reserved.