Category "openapi"

OpenAPI: "request should have required property 'body'"

I am building out a new endpoint in my application which uses express-openapi-validator as validator middleware. /* index.ts */ import * as OpenApiValidator fr

How to integrate OpenAPI into Azure API Management using Azure DevOps CI & CD pipeline

I have created an Azure API Management instance. I want to integrate OpenAPI into Azure API Management using Azure DevOps CI & CD pipelines. For each releas

I'm testing with go openAPI

I'm testing with OpenApi and as an example with https://github.com/d-vignesh/Todo-App-with-OpenAPI but if i run this, i get the following error: .\main.go:9:77:

OpenApi enum with multiple values

I am new to OpenApi and want to define my api with an api.yaml (OpenApi version 3.0.1). My problem is the generated enum just contains the name and not the valu

nSwag Client: Is there a better/easier approach to affect PropertyNameCaseInsensitive?

We are attempting to integrate System.Text.Json into our REST API and rest clients, previously using Newtonsoft. We are using nswag CSharpClientGenerator.Genera

Java SpringBoot OpenApi @ApiResponse shows wrong return object

I'm using OpenApi 3 in my SpringBoot project in order to generate a Swagger html page. The dependency in POM.xml : <dependency> <groupId&g

AWS API Gateway: Why setting "application/json" mapping template for GET request is required for MOCK integration to work?

I'm setting up a mock integration for GET requests with AWS API Gateway, and wonder why it only works when the application/json request template is specified. T

useAbstractionForFiles OpenAPI WebClient not working

I am using OpenAPI generator (Gradle plugin version 5.4.0) to generate a few API calls. One of said calls, revolves a file download from an external service i.e

NestJs Swagger: How to define Api Property for dynamic classes

I have below class export class DocumentsSteps { @ApiProperty({type: ???}) [type: string]: DocumentStep; } How should I define ApiProperty type?

Preferred way to convert openapi 3 document (json or yaml) to markdown, adoc or any other static format

I try to find an easy way in java to convert an openapi 3 document (json or yaml) in a static format like markdown, html or adoc. Searching around I've found a

Cognito User Pool Authorizer defined in openapi without hardcoded values

I have a API Gateway Rest Api resource defined with this template: AWSTemplateFormatVersion: '2010-09-09' Description: "Api gateway" Resources: ApiGateway:

Can I use variables in OpenAPI securitySchema? [duplicate]

This is what I want to do: "components": { "securitySchemes": { "azure_auth": { "type": "oauth2", "description": "

Can I enforce query parameter order in OpenApi?

The reason is for CDN cache entries. Those are specific strings used as cache keys and to invalidate them they need to match. Preferably, I'd like to enforce th

Custom openapi schema with rust, rocket and okapi

I am developing an API with Rust, using Rocket as main framework. To create the Swagger docs I use Okapi, which allows me to create the docs automatically. use

Golang struct to Json schema

Hi I need to infer a json schema (github.com/go-openapi/spec.Schema) from a struct : type Testcase struct { Id string `json:"id,omitempty"`

Is there a tool to manage in house extensions to third party OpenAPI specifications?

I'm using a SaaS platform and have used their OpenAPI spec to generate a Python client to interact with the services programmatically. They have some gaps in th

Separate FastApi documentation into sections

Currently the OpenAPI documentation looks like this: Is it possible to separate it into multiple sections? For example, 2 sections, one being the "books" secti

Google API Gateway: Authorization Header not forwarded

I have a google cloud api gateway deployed to send requests to a cloud run service. The cloud run service hosts a laravel docker container image and to authenti

Override default auth in SAM templates and Open API

I have made a SAM template that deploys a mix of public and authenticated endpoints. The default auth is oauth. For public endpoints, I use overrides to make it

How to do multiple (simultaneous) versions of APIs with OpenAPI and express-openapi?

Re: https://www.npmjs.com/package/express-openapi#getting-started On many projects I've been worked on (in other technologies) we would always support multiple