(schema: { ast: SchemaAST.AST })
| 3 | import type { LiveCatalog, SerializedCatalog } from "./registry"; |
| 4 | |
| 5 | function getSchemaIdentifier(schema: { ast: SchemaAST.AST }): string | undefined { |
| 6 | return SchemaAST.resolveIdentifier(schema.ast); |
| 7 | } |
| 8 | |
| 9 | export function serialize(catalog: LiveCatalog): typeof SerializedCatalog.Type { |
| 10 | const defs: Record<string, JsonSchema> = {}; |