From 37ee8ccfa690ee0a0fa9f2d377ae2b4ed0e4a023 Mon Sep 17 00:00:00 2001 From: Thomas Carmet <8408330+tcarmet@users.noreply.github.com> Date: Wed, 31 Jul 2024 11:55:17 -0700 Subject: [PATCH] Fix the version of github-mock openapi schema (#189) The latest openapi schema has some incompatibility with prism --- bert_e/tests/images/github-mock/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bert_e/tests/images/github-mock/Dockerfile b/bert_e/tests/images/github-mock/Dockerfile index 150c9b56..5fc45921 100644 --- a/bert_e/tests/images/github-mock/Dockerfile +++ b/bert_e/tests/images/github-mock/Dockerfile @@ -15,7 +15,7 @@ RUN curl https://github.com/stoplightio/prism/releases/download/${PRISM_VERSION} WORKDIR /app -RUN curl -O -L https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/ghec/ghec.2022-11-28.json +RUN curl -O -L https://raw.githubusercontent.com/github/rest-api-description/a2f6c1ddb1840778cf7a4119c4446d697f77500e/descriptions/ghec/ghec.2022-11-28.json # There's a misconfiguration in the openapi file, we are going to replace the following strings: # - "server-statistics-actions.yaml" -> "#/components/schemas/server-statistics-actions" @@ -26,4 +26,4 @@ RUN sed -i 's/server-statistics-actions.yaml/#\/components\/schemas\/server-stat ENTRYPOINT [ "prism" ] -CMD ["mock", "ghec.2022-11-28.json", "-h", "0.0.0.0"] \ No newline at end of file +CMD ["mock", "ghec.2022-11-28.json", "-h", "0.0.0.0"]