Created
October 23, 2019 09:18
-
-
Save pixie79/0302b59ae7b665f394bc41a518852536 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def walk(f): | |
. as $in | |
| if type == "object" then | |
reduce keys[] as $key | |
( {}; . + { ($key): ($in[$key] | walk(f)) } ) | f | |
elif type == "array" then map( walk(f) ) | f | |
else f | |
end; | |
walk(if type == "object" then . | del(.id) | del(.label) | del(.path) | del(.maxSelectedCountMessage) | del(.isNew) | del(.dataSrc) | del(.disableLimit) | del(.filter) | del(.fuseOptions) | del(.autoAdjust) | del(.offset) | del(.pull) | del(.push) | del(.width) | del(.createdOn) | del(.onvrdisplayactivatelatest) | del(.updatedOn) | del(.access) | del(.className) | del(.content) | del(.refreshOnChange) | del(.tag) | del(.html) | del(.inputMasks) | del(.collapsed) | del(.addAnother) | del(.addAnotherPosition) | del(.dayFirst) | del(.maxDate) | del(.minDate) | del(.as) | del(.case) | del(.inputMasks) | del(.isUploadEnabled) | del(.uploadDir) | del(.uploadOptions) | del(.uploadStorage) | del(.uploadUrl) | del(.inDataGrid) | del(.groupToggle) | del(.rowGroups) | del(.authenticate) | del(.clearOnRefresh) | del(.customOptions) | del(.data) | del(.indexeddb) | del(.lazyLoad) | del(.limit) | del(.minSearch) | del(.readOnlyValue) | del(.searchEnabled) | del(.searchField) | del(.searchThreshold) | del(.selectFields) | del(.selectThreshold) | del(.selectValues) | del(.sort) | del(.template) | del(.valueProperty) | del(.authenticate) | del(.collapsed) | del(.valueProperty) | del(.legend) | del(.groupToggle) | del(.rowGroups) | del(.breadcrumb) | del(.breadcrumbClickable) | del(.buttonSettings) | del(.cancel) | del(.next) | del(.previous) | del(.collapsible) | del(.values) | del(.optionsLabelPosition) | del(.inline) | del(.dataType) | del(.fieldSet) | del(.useLocaleSettings) | del(.inputsLabelPosition) | del(.hideInputLabels) | del(.fields) | del(.defaultOpen) | del(.disableAddingRemovingRows) | del(.enableRowGroups) | del(.hideOnChildrenHidden) | del(.layoutFixed) | del(.reorder) | del(.hideOnChildrenHidden) | del(.customConditional) | del(.dataGridLabel) | del(.nextPage) | del(.logic) | del(.nextPage) | del(.bredcrumb) | del(.attrs) | del(.allowCalculateOverride) | del(.allowMultipleMasks) | del(.alwaysEnabled) | del(.attributes) | del(.autoExpand) | del(.autofocus) | del(.calculateValue) | del(.clearOnHide) | del(.editor) | del(.inputFormat) | del(.inputMask) | del(.mask) | del(.rows) | del(.spellcheck) | del(.wysiwyg) | del(.lockKey) | del(.theme) | del(.title) | del(.tree) | del(.conditional) | del(.customClass) | del(.customDefaultValue) | del(.dbIndex) | del(.defaultValue) | del(.description) | del(.disabled) | del(.encrypted) | del(.errorLabel) | del(.hidden) | del(.hideLabel) | del(.input) | del(.inputType) | del(.labelPosition) | del(.multiple) | del(.persistent) |del(.placeholder) | del(.prefix) |del(.properties) | del(.protected) | del(.redrawOn) | del(.refreshOn) | del(.showCharCount) | del(.showWordCount) | del(.suffix) | del(.tabindex) | del(.tableView) | del(.tooltip) | del(.type) | del(.unique) | del(.validateOn) | del(.links) | del(.tags) | del(.widget) | del(.validate) | del(.overlay) else . end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment