|
| 1 | +from data_platform_catalogue.entities import ( |
| 2 | + AccessInformation, |
| 3 | + Chart, |
| 4 | + Column, |
| 5 | + ColumnRef, |
| 6 | + CustomEntityProperties, |
| 7 | + Database, |
| 8 | + DataSummary, |
| 9 | + DomainRef, |
| 10 | + Entity, |
| 11 | + EntityRef, |
| 12 | + Governance, |
| 13 | + OwnerRef, |
| 14 | + Table, |
| 15 | + TagRef, |
| 16 | + UsageRestrictions, |
| 17 | +) |
| 18 | + |
| 19 | + |
| 20 | +class MetadataSpecificationService: |
| 21 | + def __init__(self): |
| 22 | + self.context = self._get_context() |
| 23 | + |
| 24 | + def _get_context(self): |
| 25 | + return { |
| 26 | + "h1_value": "Metadata Specification", |
| 27 | + "entities": { |
| 28 | + "Table": Table.model_json_schema(), |
| 29 | + "Database": Database.model_json_schema(), |
| 30 | + "Chart": Chart.model_json_schema(), |
| 31 | + "CustomEntityProperties": CustomEntityProperties.model_json_schema(), |
| 32 | + "UsageRestrictions": UsageRestrictions.model_json_schema(), |
| 33 | + "AccessInformation": AccessInformation.model_json_schema(), |
| 34 | + "EntityRef": EntityRef.model_json_schema(), |
| 35 | + "Governance": Governance.model_json_schema(), |
| 36 | + "OwnerRef": OwnerRef.model_json_schema(), |
| 37 | + "DomainRef": DomainRef.model_json_schema(), |
| 38 | + "Column": Column.model_json_schema(), |
| 39 | + "ColumnRef": ColumnRef.model_json_schema(), |
| 40 | + "TagRef": TagRef.model_json_schema(), |
| 41 | + "DataSummary": DataSummary.model_json_schema(), |
| 42 | + "Entity": Entity.model_json_schema(), |
| 43 | + }, |
| 44 | + } |
0 commit comments