From 3c81e54b606385ea8d41b3c4f078bb1e5578ce71 Mon Sep 17 00:00:00 2001 From: Steven Bal Date: Thu, 6 Mar 2025 12:25:28 +0100 Subject: [PATCH] :memo: [maykinmedia/open-api-framework#115] Regenerate schema to add translated messages --- bin/generate_schema.sh | 3 ++- src/openapi.yaml | 28 ++++++++++++++-------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/bin/generate_schema.sh b/bin/generate_schema.sh index 8cedc8cb..a4d0fb09 100755 --- a/bin/generate_schema.sh +++ b/bin/generate_schema.sh @@ -13,4 +13,5 @@ fi echo "Generating OAS schema" src/manage.py spectacular \ - --file ${OUTPUT_FILE:-./src/openapi.yaml} + --file ${OUTPUT_FILE:-./src/openapi.yaml} \ + --lang="nl-nl" diff --git a/src/openapi.yaml b/src/openapi.yaml index e8699984..8321a45c 100644 --- a/src/openapi.yaml +++ b/src/openapi.yaml @@ -238,7 +238,7 @@ paths: type: string enum: - application/json - description: Content type van de verzoekinhoud. + description: Inhoudstype van de request body. required: true tags: - abonnement @@ -392,7 +392,7 @@ paths: schema: type: string format: uuid - description: Unique resource identifier (UUID4) + description: Unieke resource identificatie (UUID4) required: true tags: - abonnement @@ -535,14 +535,14 @@ paths: type: string enum: - application/json - description: Content type van de verzoekinhoud. + description: Inhoudstype van de request body. required: true - in: path name: uuid schema: type: string format: uuid - description: Unique resource identifier (UUID4) + description: Unieke resource identificatie (UUID4) required: true tags: - abonnement @@ -703,14 +703,14 @@ paths: type: string enum: - application/json - description: Content type van de verzoekinhoud. + description: Inhoudstype van de request body. required: true - in: path name: uuid schema: type: string format: uuid - description: Unique resource identifier (UUID4) + description: Unieke resource identificatie (UUID4) required: true tags: - abonnement @@ -869,7 +869,7 @@ paths: schema: type: string format: uuid - description: Unique resource identifier (UUID4) + description: Unieke resource identificatie (UUID4) required: true tags: - abonnement @@ -1156,7 +1156,7 @@ paths: type: string enum: - application/json - description: Content type van de verzoekinhoud. + description: Inhoudstype van de request body. required: true tags: - kanaal @@ -1312,7 +1312,7 @@ paths: schema: type: string format: uuid - description: Unique resource identifier (UUID4) + description: Unieke resource identificatie (UUID4) required: true tags: - kanaal @@ -1457,14 +1457,14 @@ paths: type: string enum: - application/json - description: Content type van de verzoekinhoud. + description: Inhoudstype van de request body. required: true - in: path name: uuid schema: type: string format: uuid - description: Unique resource identifier (UUID4) + description: Unieke resource identificatie (UUID4) required: true tags: - kanaal @@ -1627,14 +1627,14 @@ paths: type: string enum: - application/json - description: Content type van de verzoekinhoud. + description: Inhoudstype van de request body. required: true - in: path name: uuid schema: type: string format: uuid - description: Unique resource identifier (UUID4) + description: Unieke resource identificatie (UUID4) required: true tags: - kanaal @@ -1795,7 +1795,7 @@ paths: type: string enum: - application/json - description: Content type van de verzoekinhoud. + description: Inhoudstype van de request body. required: true tags: - notificaties