feat: replace CordraPy with http requests

This commit is contained in:
daniel
2025-06-29 14:47:43 +02:00
parent cc06e1eace
commit 53cbb53178
6 changed files with 111 additions and 102 deletions

View File

@@ -59,8 +59,8 @@ async def list_cordra_schemas() -> str:
# Extract the names from the schema objects
schema_names = []
for schema in schemas:
if isinstance(schema, dict) and 'name' in schema:
schema_names.append(schema['name'])
if isinstance(schema, dict) and 'content' in schema and 'name' in schema['content']:
schema_names.append(schema['content']['name'])
result = {
"schemas": schema_names,