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

Added displayWhen #41

Closed
wants to merge 1 commit into from
Closed

Added displayWhen #41

wants to merge 1 commit into from

Conversation

ruromero
Copy link

@ruromero ruromero commented Mar 26, 2018

Adapt type to support displayWhen conversion implemented here: openshift/ansible-service-broker#834

Besides, the displayGroup and displayType fields were not being testes and have been added to the schema.

Usage:

displayWhen will render the field if the condition evaluates to true. The condition can refer to a different attribute.name but it should start with _ (underscore) to allow the parser to know it is an attribute.

Example:

			{
				"name": "mediawiki_db_persistent",
				"title": "Mediawiki DB Persistent",
				"type": "boolean",
				"default": true,
				"updatable": true,
				"required": false
			},
			{
				"name": "mediawiki_db_schema",
				"title": "Mediawiki DB Schema",
				"type": "string",
				"default": "mediawiki",
				"updatable": false,
				"required": true,
				"displayWhen": "_mediawiki_db_persistent"
			}

Signed-off-by: Ruben Romero Montes rromerom@redhat.com

Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
@shawn-hurley
Copy link
Contributor

We are closing this PR and tracking the issue in openshift/ansible-service-broker#859

@ruromero ruromero deleted the display_when branch October 4, 2018 09:17
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.

None yet

2 participants