Questions tagged [stoplight]
19 questions
3
votes
1 answer
Convert Stoplight OpenAPI 3.1 to 3.0
I have a use case where I need to covert OpenAPI from 3.1 to 3.0 due to a compatibility issue with Azure. Has anyone worked on this use case? Your help will be appreicated

Batman 21
- 53
- 6
1
vote
1 answer
Copying files using Docker Compose
I am new to Docker Compose, and I was trying modify an example on serving multiple OpenAPI documents using Stoplight Prism. I have the file I want to copy under the directory /reference/Offers/Offers-APIs.v1.json, and in the project's root…

qli
- 25
- 3
1
vote
0 answers
Stoplight prism returning null when referencing a .json file in .yaml using $ref
I have a .yaml file, api_spec.yaml, and it's up and running. Inside, there's one endpoint (paths:) where I'm trying to refer to the entire request_payload.json file, stored in the same directory as api_spec.yaml.
/users:
get:
summary:…

qli
- 25
- 3
1
vote
0 answers
How to insert a custom flow chart at the end of the overview page in Stoplight elements documentation?
I have a backend API providing data for documentation in OpenAPI JSON format. This is how the API data looks right now:
{
"openapi": "3.0.0",
"info": {
"title": "Express API docs :D",
"version": "1.0.0",
…

Light Yagami
- 961
- 1
- 9
- 29
1
vote
0 answers
Spectral Lint whole project (all YAML/JSON files) in IntelliJ
I am working on spectral linting tool to linting the API (YAML/JSON). I want to lint all the files (YAML/JSON) which are available in the project using IntelliJ. Please share the details to setup and process if anyone worked on Spectral Linting…

VEER SINGH
- 11
- 1
1
vote
1 answer
How to use web components in vuepress
I'm trying to integrate Stoplight to our vuepress site. We are doing this by adding a web component called elements-api which is provided by stoplight.
Here is what I have done so far.
APIStopLight.vue
…

Pavindu
- 2,684
- 6
- 44
- 77
1
vote
0 answers
Postman Authorization with petstore swagger and Prism
I've been testing out stoplight prism https://stoplight.io/open-source/prism/ and using a https://petstore.swagger.io/ doc to run my mocks
I'm able to use the GET method for /pet and get mocked results back using Prism.
The swagger is requesting me…

me-me
- 5,139
- 13
- 50
- 91
1
vote
2 answers
How to configure/define file upload in POST req in Stoplight Studio - for OpenAPI documentation
[Please bear with me, I'm completely new to APIs, OpenAPI and Stoplight Studio.]
BACKGROUND FOR THE QUESTION
I am using Stoplight Studio to implement OpenAPI documentation for a POST request, which involves a file upload.
This is what my FormData…

red_wolf
- 77
- 13
1
vote
0 answers
Custom rule for application/problem+json using Stoplight Spectral CLI
I'm trying to make a custom rule based on the unkown-error-format that can be found here here. Using this Open API document as an example:
openapi-generated.yaml
openapi: 3.0.3
info:
title: API
version: 1.0.0
servers:
- url:…

pedroddvale
- 11
- 3
0
votes
0 answers
Reverse proxy using nginx- use docker run to route multiple user ports to a single container port (need a nginx.conf file configuration )
This is my first question on stack overflow..
So, basically I have a repo where in I have multiple API'S JSON files let's say Offers and Continuity.
I created Offers.Dockerfile and Continuity.Dockerfile (posted Offers.Dockerfile content below)
So, I…

Varsha Reddy
- 1
- 1
0
votes
0 answers
Is it possible to revert discard changes since last version in stoplight studio
I press discard changes since last version in stoplight studio and all my methods disappeared. Is it possible to revert this action?

HomeBake
- 31
- 4
0
votes
1 answer
How to manage properties of the generated definition.yaml file through bash commands or flags in the apictl init command for WSO2 platform?
I'm currently discovering wso2 platform possibilities. I'd like to make an api on stoplight and initialize it through apictl on api manager. I'd like to change my endpoints and other properties.
I found out in apictl init --help that there is a flag…

Oryctes
- 1
- 2
0
votes
0 answers
Can i use the stoplight default resolver to choose the SECOND value instead of the first?
I am using spotlight's default resolver like this:
model = mergeAllOf(model, {
resolvers: {
defaultResolver: mergeAllOf.options.resolvers.title,
},
It works, but it picks up the first instance of the values it…

Linda
- 36
- 1
0
votes
1 answer
Hi, I'm building a swagger 2.0 API in Stoplight. I am having trouble referencing a model that is defined in 'definitions' and exists a model
The referenced data model (Body Parameters) is not visible in the UI html. I tried it in Swagger Hub with the same negative results.
Here is the troublesome segment from the API yaml:
parameters
-in: body
schema:
$ref:…

keibir01
- 1
- 1
0
votes
0 answers
Webpack fails to build stoplight prism client
I know this is not related to stoplight or webpack directly but something to do with a package called json-schema-faker which fails to build. Here's how to reproduce. A basic js script to initialise the stoplight client and make a request.
import {…

dina
- 937
- 1
- 12
- 29