Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swagger-config.yaml configuration is overriden by the defaults #5148

Closed
segevfiner opened this issue Jan 31, 2019 · 6 comments · May be fixed by codingfragments/tvh-guide#134
Closed

swagger-config.yaml configuration is overriden by the defaults #5148

segevfiner opened this issue Jan 31, 2019 · 6 comments · May be fixed by codingfragments/tvh-guide#134

Comments

@segevfiner
Copy link
Contributor

Q&A (please complete the following information)

  • OS: Windows 10.0.17763.253 x64
  • Browser: Firefox
  • Version: 64.0.2
  • Method of installation: npm run dev
  • Swagger-UI version: abf3496
  • Swagger/OpenAPI version: any

Describe the bug you're encountering

swagger-config.yaml is being overriden by default configuration:

let mergedConfig = deepExtend({}, localConfig, constructorConfig, fetchedConfig || {}, queryConfig)

constructorConfig is filled with the defaults.

To reproduce...

Steps to reproduce the behavior:

  1. Change anything in swagger-config.yaml and check ui.getSystem().getConfigs().

Expected behavior

swagger-config.yaml changes the defaults but is overridden by other config mechanisms.

@shockey
Copy link
Contributor

shockey commented Mar 6, 2019

Fair point.

Once upon a time, swagger-config.yaml was the place for our defaults, but we slipped into index.js over time.

Would be happy to see a PR that solves this!

@char0n
Copy link
Member

char0n commented Apr 25, 2024

@glowcloud please remove the system config option source.

@char0n
Copy link
Member

char0n commented Apr 25, 2024

We have to be cautious about that fact that using swagger-config.yaml is part of core/plugins/config. Part of this issue is to also determine what part of this plugin we can remove (ideally entire plugin) and remove it.

@char0n
Copy link
Member

char0n commented Apr 25, 2024

Related to #9818

@char0n
Copy link
Member

char0n commented Apr 25, 2024

Update: cannot remove entire configs plugin, only parts of it.

@char0n
Copy link
Member

char0n commented Apr 25, 2024

Addressed in #9875

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants