Skip to content

Commit

Permalink
SHIBUI-704 Adding dynamic http provider type
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Nov 6, 2018
1 parent 3485ee5 commit d80f0db
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
7 changes: 5 additions & 2 deletions ui/src/app/metadata/provider/model/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import { FileBackedHttpMetadataProviderWizard } from './file-backed-http.provider.form';
import { FileBackedHttpMetadataProviderEditor } from './file-backed-http.provider.form';
import { DynamicHttpMetadataProviderWizard, DynamicHttpMetadataProviderEditor } from './dynamic-http.provider.form';

export const MetadataProviderWizardTypes = [
FileBackedHttpMetadataProviderWizard
FileBackedHttpMetadataProviderWizard,
DynamicHttpMetadataProviderWizard
];

export const MetadataProviderEditorTypes = [
FileBackedHttpMetadataProviderEditor
FileBackedHttpMetadataProviderEditor,
DynamicHttpMetadataProviderEditor
];

export * from './file-backed-http.provider.form';
Expand Down
7 changes: 6 additions & 1 deletion ui/src/app/wizard/model/wizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,15 @@ export interface WizardStep {
export interface WizardFieldset {
type: string;
class?: string[];
fields: string[];
fields: (string | WizardFieldsubset)[];
}

export interface WizardValue {
key: string;
value: any;
}

export interface WizardFieldsubset {
parent: string;
children: string[];
}
1 change: 0 additions & 1 deletion ui/src/app/wizard/reducer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export const getSplitSchema = (schema: any, step: WizardStep) => {
if (schema.definitions) {
s.definitions = schema.definitions;
}

if (required && required.length) {
s.required = required;
}
Expand Down
6 changes: 6 additions & 0 deletions ui/src/assets/schema/provider/metadata-provider.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
"FileBackedHttpMetadataResolver"
],
"description": "value.file-backed-http-metadata-provider"
},
{
"enum": [
"DynamicHttpMetadataResolver"
],
"description": "value.dynamic-http-metadata-provider"
}
]
}
Expand Down

0 comments on commit d80f0db

Please sign in to comment.