From ab7ca6739e39afbdd9a6e70bde154fb79d7d482a Mon Sep 17 00:00:00 2001 From: Alex Povel Date: Tue, 20 Sep 2022 19:08:19 +0200 Subject: [PATCH] fix: Use correct encoding when exporting Python models --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index de56b8c..a5be665 100644 --- a/Makefile +++ b/Makefile @@ -41,12 +41,14 @@ depgraph.svg: resume.py: ${RUN} datamodel-codegen \ --url "https://raw.githubusercontent.com/jsonresume/resume-schema/master/schema.json" \ + --encoding utf-8 \ --input-file-type jsonschema \ --output "$@" github.py: ${RUN} datamodel-codegen \ --url "https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/api.github.com/dereferenced/api.github.com.deref.json" \ + --encoding utf-8 \ --input-file-type openapi \ --openapi-scopes paths \ --output "$@"