Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade openapi spec v1071 and ndc-rest v0.2.0 #4

Merged
merged 2 commits into from
Jun 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM ghcr.io/hasura/ndc-rest:v0.1.3
FROM ghcr.io/hasura/ndc-rest:v0.2.0

COPY ./config /config
12 changes: 5 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
STRIPE_VERSION ?= v1027
NDC_REST_VERSION ?= v0.1.3
NDC_REST_VERSION ?= v0.2.0
UID ?= $(shell id -u)
GID ?= $(shell id -g)

.PHONY: build-schema
build-schema:
docker run -v ./config:/home/config -u $(UID):$(GID) --rm ghcr.io/hasura/ndc-rest:$(NDC_REST_VERSION) convert \
-f https://raw.githubusercontent.com/stripe/openapi/$(STRIPE_VERSION)/openapi/spec3.json \
--trim-prefix /v1 --spec openapi3 \
--env-prefix STRIPE \
-o /home/config/schema.json
go install github.com/hasura/ndc-rest-schema@$(NDC_REST_VERSION)
ndc-rest-schema convert \
-c schema/config.yaml \
-o config/schema.json

.PHONY: update-deps
update-deps:
Expand Down
2 changes: 1 addition & 1 deletion config/config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
files:
- path: schema.json
- file: schema.json
spec: ndc
Loading