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

Add: Environment module support YAML format #319 #1652

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

marbad1994
Copy link

Added support for YAML in environment form, it's possible to choose YAML for extra vars and JSON for Environment or any combination you like. It's completely written in frontend. Whatever format you choose it will end up as json and sent to the database. It's not really best practice everywhere, I made decision to rather forgo that than to rip up the backend, database, etc. This is functionality that is really needed so I went with it. The ugliest part of the code which I am a bit torn about is the parseErrorString function. It will just string replace JSON to YAML when needed but it wouldn't completely wrong to let it say JSON since that is actually what the backend receives.

This solves: #319 and also #1141, it wasn't my intention to fix #1141 as well, there was just no way around it.
So if this pull request get's merged this pull request #1651 is obsolete.

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

Successfully merging this pull request may close these issues.

Extra variables validation error
1 participant