diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a33aacb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +# 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 +ADD . . + +RUN poetry install +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..6879e38 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], + "lint": NotRequired[Sequence[str]], "max_len": NotRequired[int], "name": NotRequired[str], "notes": NotRequired[str],