Skip to content

Commit

Permalink
Metadata: Allow temporarily for additional fields (#29018)
Browse files Browse the repository at this point in the history
* Update orchestrator

* remove test
  • Loading branch information
bnchrch committed Aug 3, 2023
1 parent 38412dc commit 0fabbaf
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@

from __future__ import annotations

from typing import Optional

from pydantic import BaseModel, Extra, Field
from typing_extensions import Literal


class AirbyteInternal(BaseModel):
class Config:
extra = Extra.forbid
extra = Extra.allow

field_sl: Literal[100, 200, 300] = Field(..., alias="_sl")
field_ql: Literal[100, 200, 300, 400, 500, 600] = Field(..., alias="_ql")
field_sl: Optional[Literal[100, 200, 300]] = Field(None, alias="_sl")
field_ql: Optional[Literal[100, 200, 300, 400, 500, 600]] = Field(None, alias="_ql")
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ class Config:

class AirbyteInternal(BaseModel):
class Config:
extra = Extra.forbid
extra = Extra.allow

field_sl: Literal[100, 200, 300] = Field(..., alias="_sl")
field_ql: Literal[100, 200, 300, 400, 500, 600] = Field(..., alias="_ql")
field_sl: Optional[Literal[100, 200, 300]] = Field(None, alias="_sl")
field_ql: Optional[Literal[100, 200, 300, 400, 500, 600]] = Field(None, alias="_ql")


class JobTypeResourceLimit(BaseModel):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ class Config:

class AirbyteInternal(BaseModel):
class Config:
extra = Extra.forbid
extra = Extra.allow

field_sl: Literal[100, 200, 300] = Field(..., alias="_sl")
field_ql: Literal[100, 200, 300, 400, 500, 600] = Field(..., alias="_ql")
field_sl: Optional[Literal[100, 200, 300]] = Field(None, alias="_sl")
field_ql: Optional[Literal[100, 200, 300, 400, 500, 600]] = Field(None, alias="_ql")


class JobTypeResourceLimit(BaseModel):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ class Config:

class AirbyteInternal(BaseModel):
class Config:
extra = Extra.forbid
extra = Extra.allow

field_sl: Literal[100, 200, 300] = Field(..., alias="_sl")
field_ql: Literal[100, 200, 300, 400, 500, 600] = Field(..., alias="_ql")
field_sl: Optional[Literal[100, 200, 300]] = Field(None, alias="_sl")
field_ql: Optional[Literal[100, 200, 300, 400, 500, 600]] = Field(None, alias="_ql")


class JobTypeResourceLimit(BaseModel):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ class Config:

class AirbyteInternal(BaseModel):
class Config:
extra = Extra.forbid
extra = Extra.allow

field_sl: Literal[100, 200, 300] = Field(..., alias="_sl")
field_ql: Literal[100, 200, 300, 400, 500, 600] = Field(..., alias="_ql")
field_sl: Optional[Literal[100, 200, 300]] = Field(None, alias="_sl")
field_ql: Optional[Literal[100, 200, 300, 400, 500, 600]] = Field(None, alias="_ql")


class SuggestedStreams(BaseModel):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
title: AirbyteInternal
description: Fields for internal use only
type: object
additionalProperties: false
required:
- _sl
- _ql
additionalProperties: true
properties:
_sl:
type: integer
Expand Down
2 changes: 1 addition & 1 deletion airbyte-ci/connectors/metadata_service/lib/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "metadata-service"
version = "0.1.2"
version = "0.1.3"
description = ""
authors = ["Ben Church <ben@airbyte.io>"]
readme = "README.md"
Expand Down

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0fabbaf

Please sign in to comment.