Top "Swagger" questions

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

How to define a property that can be string or null in OpenAPI (Swagger)?

I have JSON schema file where one of the properties is defined as either string or null: "type":["string", "null"] …

swagger openapi
How do I get started with swagger-ui

What is swagger-ui and what is the use of it? Are there any good resources to get started with swagger-ui? …

restful-url swagger swagger-ui swagger-node-express
Define a response object with an array in YAML using Swagger Editor

I'm working on an API definition in Swagger Editor with YAML. I am trying to represent the following response body: { …

swagger swagger-editor
Swagger UI shows error (validation) when deployed

I have the swagger ui embedded in my application. And when I run my node application locally the UI works …

swagger swagger-ui
Swagger complex response model with dynamic key value hash maps

I'm struggling with the syntax of swagger to describe a response type. What I'm trying to model is a hash …

hashmap swagger swagger-2.0 swagger-editor
swagger 2 spring boot generate yml file

I'm new to swagger, contracts, and working on Spring boot (gradle) project where we are just starting with dealing with …

spring spring-boot yaml swagger swagger-2.0
Swagger default value for parameter

How do I define default value for property in swagger generated from following API? public class SearchQuery { public string OrderBy { …

c# asp.net-core swagger asp.net-core-2.0 swashbuckle
How do you add a swagger comment to the "Request and Response Model"?

You can add a comment on the methods like the example below but what about adding comments to the request …

c# asp.net-core swagger swashbuckle
Convert JSON to JSON Schema draft 4 compatible with Swagger 2.0

I've been given some JSON files generated by a REST API with plenty of properties. I've created a Swagger 2.0 definition …

json swagger jsonschema swagger-2.0
Why `additionalProperties` is the way to represent Dictionary/Map in Swagger/OpenAPI 2.0

Although I have seen the examples in the OpenAPI spec: type: object additionalProperties: $ref: '#/definitions/ComplexModel' it isn't obvious …

dictionary hash mapping swagger openapi