diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1c55b05 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,30 @@ +# a Dockerfile to containerize the build of ocsf-validator +# +# To build a container: +# +# docker build -t ocsf-validator:latest . +# +# To use it to validate a schema +# +# docker run --rm -v $PWD:/schema ocsf-validator:latest /schema +# + +FROM python:3.11.9-alpine3.19 + +RUN apk add --no-cache poetry nodejs npm + +WORKDIR /src + +# install stuff that doesn't change much +ADD poetry.lock pyproject.toml . +RUN poetry install --no-root + +# pull in the rest of the code +ADD . . +RUN poetry install --only-root +RUN poetry run black . +RUN poetry run isort . +RUN poetry run pyright ocsf_validator +RUN poetry run pytest + +ENTRYPOINT ["poetry", "run", "python", "-m", "ocsf_validator"] diff --git a/ocsf_validator/types.py b/ocsf_validator/types.py index 227e071..6b75132 100644 --- a/ocsf_validator/types.py +++ b/ocsf_validator/types.py @@ -50,6 +50,7 @@ class OcsfDeprecationInfo(TypedDict): "enum": NotRequired[Dict[str, OcsfEnumMember]], "group": NotRequired[str], "is_array": NotRequired[bool], + "suppress_checks": NotRequired[Sequence[str]], "max_len": NotRequired[int], "name": NotRequired[str], "notes": NotRequired[str],