Skip to content

Commit

Permalink
Fix the version of github-mock openapi schema
Browse files Browse the repository at this point in the history
The latest openapi schema has some incompatibility with prism
  • Loading branch information
tcarmet authored Jul 31, 2024
1 parent 6a5352c commit 15d7791
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bert_e/tests/images/github-mock/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"]
CMD ["mock", "ghec.2022-11-28.json", "-h", "0.0.0.0"]

0 comments on commit 15d7791

Please sign in to comment.