config-schema: switch schema type and separate out SchemaViewer

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-04-05 18:27:59 +02:00
parent e75795ac0f
commit 079b3e025b
6 changed files with 51 additions and 13 deletions
+2 -1
View File
@@ -15,6 +15,7 @@
*/
import { createDevApp } from '@backstage/dev-utils';
import { Schema } from 'jsonschema';
import React from 'react';
import Observable from 'zen-observable';
import { configSchemaApiRef } from '../src/api';
@@ -30,7 +31,7 @@ createDevApp()
factory: () => ({
schema$: () =>
new Observable<ConfigSchemaResult>(sub =>
sub.next({ schema: exampleSchema }),
sub.next({ schema: (exampleSchema as unknown) as Schema }),
),
}),
})