moose-lib 0.6.38__py3-none-any.whl → 0.6.40__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of moose-lib might be problematic. Click here for more details.
- moose_lib/dmv2/consumption.py +1 -1
- moose_lib/internal.py +6 -2
- {moose_lib-0.6.38.dist-info → moose_lib-0.6.40.dist-info}/METADATA +1 -1
- {moose_lib-0.6.38.dist-info → moose_lib-0.6.40.dist-info}/RECORD +6 -6
- {moose_lib-0.6.38.dist-info → moose_lib-0.6.40.dist-info}/WHEEL +0 -0
- {moose_lib-0.6.38.dist-info → moose_lib-0.6.40.dist-info}/top_level.txt +0 -0
moose_lib/dmv2/consumption.py
CHANGED
|
@@ -179,7 +179,7 @@ class Api(BaseTypedResource, Generic[U]):
|
|
|
179
179
|
A dictionary representing the JSON schema.
|
|
180
180
|
"""
|
|
181
181
|
from pydantic.type_adapter import TypeAdapter
|
|
182
|
-
return TypeAdapter(self.return_type).json_schema(
|
|
182
|
+
return TypeAdapter(self.return_type()).json_schema(
|
|
183
183
|
ref_template='#/components/schemas/{model}'
|
|
184
184
|
)
|
|
185
185
|
|
moose_lib/internal.py
CHANGED
|
@@ -8,7 +8,7 @@ JSON format expected by the Moose infrastructure management system.
|
|
|
8
8
|
"""
|
|
9
9
|
from importlib import import_module
|
|
10
10
|
from typing import Literal, Optional, List, Any
|
|
11
|
-
from pydantic import BaseModel, ConfigDict, AliasGenerator
|
|
11
|
+
from pydantic import BaseModel, ConfigDict, AliasGenerator, Field
|
|
12
12
|
import json
|
|
13
13
|
from .data_models import Column, _to_columns
|
|
14
14
|
from moose_lib.dmv2 import (
|
|
@@ -125,6 +125,7 @@ class IngestApiConfig(BaseModel):
|
|
|
125
125
|
dead_letter_queue: Optional[str] = None
|
|
126
126
|
version: Optional[str] = None
|
|
127
127
|
metadata: Optional[dict] = None
|
|
128
|
+
json_schema: dict[str, Any] = Field(serialization_alias="schema")
|
|
128
129
|
|
|
129
130
|
class InternalApiConfig(BaseModel):
|
|
130
131
|
"""Internal representation of a API configuration for serialization.
|
|
@@ -320,7 +321,10 @@ def to_infra_map() -> dict:
|
|
|
320
321
|
name=api.config.destination.name
|
|
321
322
|
),
|
|
322
323
|
metadata=getattr(api, "metadata", None),
|
|
323
|
-
dead_letter_queue=api.config.dead_letter_queue.name
|
|
324
|
+
dead_letter_queue=api.config.dead_letter_queue.name,
|
|
325
|
+
json_schema=api._t.model_json_schema(
|
|
326
|
+
ref_template='#/components/schemas/{model}'
|
|
327
|
+
),
|
|
324
328
|
)
|
|
325
329
|
|
|
326
330
|
for name, api in get_apis().items():
|
|
@@ -3,7 +3,7 @@ moose_lib/blocks.py,sha256=_wdvC2NC_Y3MMEnB71WTgWbeQ--zPNHk19xjToJW0C0,3185
|
|
|
3
3
|
moose_lib/commons.py,sha256=FUpRv8D3-LeGcjhcqtDyiimz5izwpCq53h50ydxC_uA,3711
|
|
4
4
|
moose_lib/data_models.py,sha256=PgoFXTzf4C66FlKUowMT4VOrwSRR9_bk36P43ub4LzU,10274
|
|
5
5
|
moose_lib/dmv2-serializer.py,sha256=CL_Pvvg8tJOT8Qk6hywDNzY8MYGhMVdTOw8arZi3jng,49
|
|
6
|
-
moose_lib/internal.py,sha256=
|
|
6
|
+
moose_lib/internal.py,sha256=Mi6Zng5-bsIKbtV9qhoxUV6J9U-mZw0Q0WggiMJ7cXQ,14600
|
|
7
7
|
moose_lib/main.py,sha256=XcVX_sTnt5QbrPXKNLCKZGCvpFpE8oiqSG2S1So9ztI,16713
|
|
8
8
|
moose_lib/query_param.py,sha256=kxcR09BMIsEg4o2qetjKrVu1YFRaLfMEzwzyGsKUpvA,6474
|
|
9
9
|
moose_lib/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -13,7 +13,7 @@ moose_lib/config/config_file.py,sha256=NyjY6YFraBel7vBk18lLkpGaPR1viKMAEv4ZldyfL
|
|
|
13
13
|
moose_lib/config/runtime.py,sha256=h4SXRn4Mlbeh02lKN7HX2Mdp3QzySnZOeSvm8G-B3ko,3857
|
|
14
14
|
moose_lib/dmv2/__init__.py,sha256=3DVAtNMZUoP94CMJBFhuXfYEQXDbQUNKSgg9XnKqae0,2768
|
|
15
15
|
moose_lib/dmv2/_registry.py,sha256=RweMQWHSvhxgSceZ5mfd0NGnJ-49VZORbaFmw-O0bFY,611
|
|
16
|
-
moose_lib/dmv2/consumption.py,sha256=
|
|
16
|
+
moose_lib/dmv2/consumption.py,sha256=f43XPgJn1JLPPEpYbJ1FQ8Efi92YJH7DWa1wb5TY38g,8747
|
|
17
17
|
moose_lib/dmv2/ingest_api.py,sha256=Snek9NGwaJl_BuImSWGtQq91m9D3AJ4qBoGiKZ-9yTQ,2323
|
|
18
18
|
moose_lib/dmv2/ingest_pipeline.py,sha256=2tDM4gCjQMdDRDjvymI5Z1DlkXULx9nY4nG9M3YXpjk,7033
|
|
19
19
|
moose_lib/dmv2/life_cycle.py,sha256=wl0k6yzwU1MJ_fO_UkN29buoY5G6ChYZvfwigP9fVfM,1254
|
|
@@ -33,7 +33,7 @@ tests/__init__.py,sha256=0Gh4yzPkkC3TzBGKhenpMIxJcRhyrrCfxLSfpTZnPMQ,53
|
|
|
33
33
|
tests/conftest.py,sha256=ZVJNbnr4DwbcqkTmePW6U01zAzE6QD0kNAEZjPG1f4s,169
|
|
34
34
|
tests/test_moose.py,sha256=mBsx_OYWmL8ppDzL_7Bd7xR6qf_i3-pCIO3wm2iQNaA,2136
|
|
35
35
|
tests/test_redis_client.py,sha256=d9_MLYsJ4ecVil_jPB2gW3Q5aWnavxmmjZg2uYI3LVo,3256
|
|
36
|
-
moose_lib-0.6.
|
|
37
|
-
moose_lib-0.6.
|
|
38
|
-
moose_lib-0.6.
|
|
39
|
-
moose_lib-0.6.
|
|
36
|
+
moose_lib-0.6.40.dist-info/METADATA,sha256=bdqynFjoaAz0dkJnLlwuRfpKdTLyHijwzPGjrMPZZCc,730
|
|
37
|
+
moose_lib-0.6.40.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
38
|
+
moose_lib-0.6.40.dist-info/top_level.txt,sha256=XEns2-4aCmGp2XjJAeEH9TAUcGONLnSLy6ycT9FSJh8,16
|
|
39
|
+
moose_lib-0.6.40.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|