How can we reference helm values in a static swagger file
i have tried components: securitySchemes: oauth: type: oauth2 description: This API uses OAuth 2 with the implicit grant flow. [More info](https://api.example.com/docs/auth) flows: authorizationCode: authorizationUrl: ${AUTHORIZATION_URL} tokenUrl: ${TOKEN_URL} scopes: {} and also components: securitySchemes: oauth: type: oauth2 description: This API uses OAuth 2 with the implicit grant flow. [More info](https://api.example.com/docs/auth) flows: authorizationCode: authorizationUrl: {{env "AUTHORIZATION_URL" } tokenUrl: {{ env "TOKEN_URL" }} scopes: {} I have container for swagger, both above doesnt seem to work any ideas would be helpful ThanksRepresenting Xml array of strings (or primatives)
It's clear from the documentation that if you have an Array with objects you can represent it in the right way (e.g. <Addresses><Address></Address></Addresses>) by adding:xml:wrapped : true and providing a name to the item scheme. However, what if the array is of primitive type or string? I'm trying to create a SchemaFilter to easily provide the right examples in Swagger when selecting the xml type. I am getting the information for the formatting from xml attributes. For arrays that have objects this is doable as I can easily set the schema name of the object. However, there is no schema for a string so I cannot set the name. The closest I can get is <Addresses><Addresses> </Addresses></Addresses>. Is there a way to work around the setting of the name but still have the same effect of having a different wrapped name?Swagger UI not filling multiple route params
I am implementing Swagger into an ExpressJs API application. In the controller files, we are using nested folders and "const router = require('express').Router({ mergeParams: true });" to inherit path variables from parent folders. When I run my swagger implementation, anything deeper than the parent folder will not dynamically put in the route variables provided from the swagger UI. Example: I will put in the variables "mineID' and "incidentId" from the text boxes in swagger ui, then this is the exact curl request sent in swagger, where you can see that the second route parameter has not been filled: curl -X 'GET' \ 'http://localhost:4900/v2/mines/56677888/incidents/{incidentId}/current' \ Above, you can see how the request did not correctly fill the second param it was given in the Swagger UI. I can confirm that the definition for these variables is correct and the route param name and path name in my definition match correctly. Also, this controller is working successfully in production and has been tested thouroughly. In my implementation of swagger, I am using jsdocs in a seperate file, but in the same folder as the controller code. How might I get these variables to populate correctly? It is working elsewhere in the application and I only need solutions for the swagger implementation, the API code is tested and working fine on its own Any help would be appreciated, this is causing me more trouble than I'd like. Thanks.Multiple path params not working
Hi Folks, Recently I have encountered an issue where I have two path parameters for an api endpoint where both are mandatory, but when we execute the api via swagger and pass the value for them, for 1st param its fetching fine but for 2nd one its returning the name of the paramater. Below are the details. For Example: I have passed 2 values for 2 fields named as budget_name and partition_name as budget1 and partition1 but when I logged(print) them, I got budget1 [which is correct] and {partition1} [not correct its treating field name as value].Pre-Request in swagger
I am configuring Swagger in my project using Python Flask. The API which I am invoking from swagger needs the token bearer and that token bearer can be fetched by invoking other API(/GetToken) ( which need basic auth). I need to automate this process when ever user is invoking a API from swagger the swagger should automatically call /GetToken and set the bearer token. (kind of Pre-request script in postman) I tried searching for any solution in swagger documentation by found None.parsing csv columns in enum on json file from flask-python
i have this code in python. as you can see this function returns sensitive_data (column names, column data) and also returns only (columns names). this columns are sensitive columns of an imported csv. I want to parse those sensitive columns in swagger ui json file in enum section i guess (or whatever). i want to parse them to enum because i want the user to select the column he wants from a dropdown menu the column he prefers. how is this possible? can you provide me a possible json code for this? i use swagger 2.0. thanks. in advanceServer Variables - can it be refrenced?
i am using openapi:3.0.0 i have five servers define in swagger inside it i am using variables specific to servers. something like this servers: - url: https://server1/api/{version} description: server variables: version: description: versioning of api enum: - v1 default: v1 - url: https://server2/api/{version} description: server variables: version: description: versioning of api enum: - v1 default: v1 Can we declare variables once and can we reference in multiple servers? here i am breaking "DRY" by declaring same variables again and again.Can't upload files within a nested object Asp.NET
I'm working with asp.net. Usually when you want to include file data in your http request you can use the interface IFormFile within your input object. For example, if I define the object public class A { public IFormFile file {get; set; } } and then an endpoint: public ActionResult Test([FromForm] A a) {...} it will generate a GUI that lets you upload a file. This is all fine but I'm encountering a case where it has problems. If a define an object B that contains a collection of A: public class A { public IEnumerable<A> objects {get; set; } } then the generated GUI won't let me upload a file for the nested field B.A.File and instead it treats it as a simple string. If anyone has a solution for this it'd help me very much