Skip to content

Commit

Permalink
Fix cluster app JSON schema preprocessing (#4613)
Browse files Browse the repository at this point in the history
* Move traverseJSONSchemaObject helper into a separate module

* Use array instead of string for paths in traverseJSONSchemaObject helper

* Add support for additional and pattern properties into traverseJSONSchemaObject helper

* Move preprocessSchema helper into a separate module

* Fix getDefaultValueFromInternals path

* Fix schema preprocessing

* Move transformArraysIntoObjects helper into a separate module
  • Loading branch information
gusevda authored May 28, 2024
1 parent ac3b3d4 commit 92fbee2
Show file tree
Hide file tree
Showing 22 changed files with 2,138 additions and 1,738 deletions.
7 changes: 2 additions & 5 deletions src/components/MAPI/apps/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,10 @@ import * as metav1 from 'model/services/mapi/metav1';
import * as releasev1alpha1 from 'model/services/mapi/releasev1alpha1';
import { Cache, mutate } from 'swr';
import ErrorReporter from 'utils/errors/ErrorReporter';
import {
DeepPartial,
isValidURL,
traverseJSONSchemaObject,
} from 'utils/helpers';
import { DeepPartial, isValidURL } from 'utils/helpers';
import { HttpClientFactory } from 'utils/hooks/useHttpClientFactory';
import { IOAuth2Provider } from 'utils/OAuth2/OAuth2';
import { traverseJSONSchemaObject } from 'utils/schema';
import { compare } from 'utils/semver';
import { VersionImpl } from 'utils/Version';

Expand Down
Loading

0 comments on commit 92fbee2

Please sign in to comment.