omnata-plugin-runtime 0.5.2a116__tar.gz → 0.5.2a117__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.5.2a116
3
+ Version: 0.5.2a117
4
4
  Summary: Classes and common runtime components for building and running Omnata Plugins
5
5
  Author: James Weakley
6
6
  Author-email: james.weakley@omnata.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "omnata-plugin-runtime"
3
- version = "0.5.2-a116"
3
+ version = "0.5.2-a117"
4
4
  description = "Classes and common runtime components for building and running Omnata Plugins"
5
5
  authors = ["James Weakley <james.weakley@omnata.com>"]
6
6
  readme = "README.md"
@@ -32,6 +32,7 @@ from .omnata_plugin import (
32
32
  OutboundSyncRequest,
33
33
  DeadlineReachedException,
34
34
  )
35
+ from pydantic import TypeAdapter
35
36
  from .rate_limiting import ApiLimits, RateLimitState
36
37
 
37
38
  # set the logger class to our custom logger so that pydantic errors are handled correctly
@@ -375,7 +376,7 @@ class PluginEntrypoint:
375
376
 
376
377
  def create_billing_events(self, session, event_request: Dict):
377
378
  logger.info("Entered create_billing_events method")
378
- request = BillingEventRequest.model_validate(event_request)
379
+ request = TypeAdapter(BillingEventRequest).validate_python(event_request)
379
380
  events: List[SnowflakeBillingEvent] = self._plugin_instance.create_billing_events(
380
381
  request
381
382
  )