config-schema

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-08-19 13:17:56 +02:00
parent 71ce2d1c62
commit c16fcd21de
5 changed files with 12 additions and 12 deletions
+6 -10
View File
@@ -11,28 +11,18 @@ import { Observable } from '@backstage/types';
import { RouteRef } from '@backstage/core-plugin-api';
import { Schema } from 'jsonschema';
// Warning: (ae-missing-release-tag) "ConfigSchemaApi" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export interface ConfigSchemaApi {
// Warning: (ae-forgotten-export) The symbol "ConfigSchemaResult" needs to be exported by the entry point index.d.ts
//
// (undocumented)
schema$(): Observable<ConfigSchemaResult>;
}
// Warning: (ae-missing-release-tag) "configSchemaApiRef" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const configSchemaApiRef: ApiRef<ConfigSchemaApi>;
// Warning: (ae-missing-release-tag) "ConfigSchemaPage" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const ConfigSchemaPage: () => JSX.Element;
// Warning: (ae-missing-release-tag) "configSchemaPlugin" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const configSchemaPlugin: BackstagePlugin<
{
@@ -42,6 +32,12 @@ export const configSchemaPlugin: BackstagePlugin<
{}
>;
// @public (undocumented)
export interface ConfigSchemaResult {
// (undocumented)
schema?: Schema;
}
// @public
export class StaticSchemaLoader implements ConfigSchemaApi {
constructor(options?: { url?: string });
+1 -1
View File
@@ -15,5 +15,5 @@
*/
export { configSchemaApiRef } from './types';
export type { ConfigSchemaApi } from './types';
export type { ConfigSchemaApi, ConfigSchemaResult } from './types';
export { StaticSchemaLoader } from './StaticSchemaLoader';
+3
View File
@@ -18,14 +18,17 @@ import { Schema } from 'jsonschema';
import { createApiRef } from '@backstage/core-plugin-api';
import { Observable } from '@backstage/types';
/** @public */
export interface ConfigSchemaResult {
schema?: Schema;
}
/** @public */
export interface ConfigSchemaApi {
schema$(): Observable<ConfigSchemaResult>;
}
/** @public */
export const configSchemaApiRef = createApiRef<ConfigSchemaApi>({
id: 'plugin.config-schema',
});
+2
View File
@@ -20,6 +20,7 @@ import {
createRoutableExtension,
} from '@backstage/core-plugin-api';
/** @public */
export const configSchemaPlugin = createPlugin({
id: 'config-schema',
routes: {
@@ -27,6 +28,7 @@ export const configSchemaPlugin = createPlugin({
},
});
/** @public */
export const ConfigSchemaPage = configSchemaPlugin.provide(
createRoutableExtension({
name: 'ConfigSchemaPage',
-1
View File
@@ -208,7 +208,6 @@ const ALLOW_WARNINGS = [
'plugins/catalog-import',
'plugins/cicd-statistics',
'plugins/circleci',
'plugins/config-schema',
'plugins/cost-insights',
'plugins/dynatrace',
'plugins/explore',