1
0
mirror of synced 2025-12-19 18:14:56 -05:00

tools: update schema_generator to use latest version of cdk (#30673)

This commit is contained in:
Sajarin
2023-09-25 10:28:31 -04:00
committed by GitHub
parent 2da621a7a1
commit 5a2a3b81b7
2 changed files with 8 additions and 2 deletions

View File

@@ -43,13 +43,19 @@ class NoRequiredObj(Object):
if self._properties:
schema["properties"] = self._properties_to_schema(self._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
class NoRequiredSchemaBuilder(SchemaBuilder):
EXTRA_STRATEGIES = (NoRequiredObj,)
def __init__(self):
super().__init__(schema_uri='http://json-schema.org/draft-07/schema#')
def infer_schemas():
default_folder = os.path.join(os.getcwd(), "schemas")

View File

@@ -5,7 +5,7 @@
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"]