|
13 | 13 | # along with this program. If not, see <http://www.gnu.org/licenses/>.
|
14 | 14 | import logging
|
15 | 15 | from datetime import datetime, timedelta
|
16 |
| -from typing import Annotated, List, Literal, Optional, AsyncIterator, Dict |
| 16 | +from typing import Annotated, List, Literal, Optional, AsyncIterator, Dict, Union |
17 | 17 |
|
18 | 18 | from fastapi import APIRouter, Body, Depends, Form, Path, Query, Request
|
19 | 19 | from fastapi.responses import JSONResponse, Response
|
@@ -174,7 +174,7 @@ async def model(
|
174 | 174 | aggregate_roots_only: bool = Query(default=True, description="Include only aggregate roots."),
|
175 | 175 | with_properties: bool = Query(default=True, description="Include properties."),
|
176 | 176 | with_relatives: bool = Query(default=True, description="Include property kinds."),
|
177 |
| - with_metadata: bool = Query(default=True, description="Include property kinds."), |
| 177 | + with_metadata: Union[bool, List[str]] = Query(default=True, description="Include property kinds."), |
178 | 178 | flat: bool = Query(default=True, description="Return a flat list of kinds."),
|
179 | 179 | ) -> List[Json]:
|
180 | 180 | return await inventory().client.model(
|
|
0 commit comments