tools: update schema_generator to use latest version of cdk (#30673)
This commit is contained in:
@@ -43,13 +43,19 @@ class NoRequiredObj(Object):
|
|||||||
if self._properties:
|
if self._properties:
|
||||||
schema["properties"] = self._properties_to_schema(self._properties)
|
schema["properties"] = self._properties_to_schema(self._properties)
|
||||||
if self._pattern_properties:
|
if self._pattern_properties:
|
||||||
schema["patternProperties"] = self._properties_to_schema(self._pattern_properties)
|
schema["patternProperties"] = self._properties_to_schema(
|
||||||
|
self._pattern_properties)
|
||||||
|
|
||||||
|
schema["additionalProperties"] = True
|
||||||
return schema
|
return schema
|
||||||
|
|
||||||
|
|
||||||
class NoRequiredSchemaBuilder(SchemaBuilder):
|
class NoRequiredSchemaBuilder(SchemaBuilder):
|
||||||
EXTRA_STRATEGIES = (NoRequiredObj,)
|
EXTRA_STRATEGIES = (NoRequiredObj,)
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
super().__init__(schema_uri='http://json-schema.org/draft-07/schema#')
|
||||||
|
|
||||||
|
|
||||||
def infer_schemas():
|
def infer_schemas():
|
||||||
default_folder = os.path.join(os.getcwd(), "schemas")
|
default_folder = os.path.join(os.getcwd(), "schemas")
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
from setuptools import find_packages, setup
|
from setuptools import find_packages, setup
|
||||||
|
|
||||||
MAIN_REQUIREMENTS = ["airbyte_cdk==0.1.60", "genson==1.2.2"]
|
MAIN_REQUIREMENTS = ["airbyte_cdk==0.51.18", "genson==1.2.2"]
|
||||||
|
|
||||||
TEST_REQUIREMENTS = ["pytest"]
|
TEST_REQUIREMENTS = ["pytest"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user