question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Modify yaml loaded config

See original GitHub issue

Q&A (please complete the following information)

  • OS: N/A
  • Browser: N/A
  • Version: N/A
  • Method of installation: dist assets
  • Swagger-UI version: Honestly not sure - this is code I didn’t setup
  • Swagger/OpenAPI version: Swagger 2

Content & configuration

I’ve got a site loading it’s config via the url parameter and a yml file:

Swagger-UI configuration options:

SwaggerUI({
url: "../assets/api/something.yml",
     })

How can we help?

The YML file defines a host as something.com. I need to - interactively - change the host. If I have the returned instance of SwaggerUI, is there an API to modify that value?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cfjedimastercommented, Aug 22, 2018

I wanted to thank you for this - I’m a bit side tracked so I may not get back to this, but I appreciate you taking the time to help me!

0reactions
shockeycommented, Aug 28, 2018

Closing due to inactivity.

This is simply to keep our issue tracker clean - feel free to comment if there are any further thoughts or concerns, and we’ll be happy to reopen this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I update yaml with multiple config - Stack Overflow
I am able to open the file using yaml. load_all But how can I modify and dump data into same file. There is...
Read more >
Configuration.yaml - Home Assistant
The easiest option to edit configuration.yaml is to use the Studio Code Server add-on. This add-on runs VS Code, which offers live syntax...
Read more >
YAML for Configuration Files - Data Crayon
This means that configuration files can be shared between scripts/programs, and they can be modified without needing to modify source code. In [ ......
Read more >
Writing and Reading YAML config file in Python - TutsWiki
Learn how to write and read YAML config files in Python using pyyaml module. ... We can read the data using yaml.load() method...
Read more >
Edit the YAML configuration - Axway Documentation Portal
ES Explorer can be used with some limitations to view, navigate, and edit a YAML configuration. To connect to a YAML configuration, enter...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found